From 23c6a48aead86633e02ef1db82600b463401a5b8 Mon Sep 17 00:00:00 2001 From: Matthias Mair <matmair@live.de> Date: Mon, 7 Feb 2022 01:56:29 +0100 Subject: [PATCH] update publisher ref --- _includes/partial/publisher_ref.html | 4 ++++ _includes/plugin_card.html | 2 +- _includes/publisher_ref.html | 4 ---- _layouts/plugin.html | 2 +- blog.html | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 _includes/partial/publisher_ref.html delete mode 100644 _includes/publisher_ref.html diff --git a/_includes/partial/publisher_ref.html b/_includes/partial/publisher_ref.html new file mode 100644 index 00000000..a1b97e53 --- /dev/null +++ b/_includes/partial/publisher_ref.html @@ -0,0 +1,4 @@ +{% assign publisher_ref = site.publishers | where: 'short_name', include.pub | first %} +<a href="{{ publisher_ref.url | relative_url }}" class="custom-underline-blue"> +by <span class="inline-flex"><img src="https://github.com/{{ include.pub }}.png?size=40" alt="mdo" class="self-center w-5 h-5 rounded-full mx-1"> {{ include.pub }}</span> +</a> \ No newline at end of file diff --git a/_includes/plugin_card.html b/_includes/plugin_card.html index d5b46e22..2c3d87fe 100644 --- a/_includes/plugin_card.html +++ b/_includes/plugin_card.html @@ -11,7 +11,7 @@ <h3 class="mb-0">{{ plugin.name }}</h3> <div class="mb-1 text-muted"> {% if plugin.published_on %}{{ plugin.published_on | date_to_string }} - {% endif %} - {% include publisher_ref.html pub=plugin.publisher %} + {% include partial/publisher_ref.html pub=plugin.publisher %} </div> <p class="mb-auto">{{ plugin.excerpt | mardownify | remove: '<p>' | remove: '</p>' }}</p> <a href="{{ plugin.url | relative_url }}" class="stretched-link" aria-label="open plugin details"></a> diff --git a/_includes/publisher_ref.html b/_includes/publisher_ref.html deleted file mode 100644 index 19d663d5..00000000 --- a/_includes/publisher_ref.html +++ /dev/null @@ -1,4 +0,0 @@ -{% assign publisher_ref = site.publishers | where: 'short_name', include.pub | first %} -<a href="{{ publisher_ref.url | relative_url }}" class="link-secondary"> - <p class="text-muted">by <img src="https://github.com/{{ include.pub }}.png?size=40" alt="mdo" class="rounded-circle" width="20" height="20"> {{ include.pub }}</p> -</a> \ No newline at end of file diff --git a/_layouts/plugin.html b/_layouts/plugin.html index 22860d26..f72203bc 100644 --- a/_layouts/plugin.html +++ b/_layouts/plugin.html @@ -2,7 +2,7 @@ layout: default --- <h1>{{ page.name }}</h1> -{% include publisher_ref.html pub=page.publisher %} +{% include partial/publisher_ref.html pub=page.publisher %} <div class="row g-5"> <div class="col-md-8"> diff --git a/blog.html b/blog.html index 0085c0ec..ce2e3138 100644 --- a/blog.html +++ b/blog.html @@ -13,7 +13,7 @@ title: Blog <a href="{{ post.url | relative_url }}">{{ post.title }}</a> </h2> <span class="leading-relaxed mb-8">{{ post.excerpt }}</span> - {% include publisher_ref.html pub=post.publisher %} + {% include partial/publisher_ref.html pub=post.publisher %} </div> </div> {% endfor %}