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 %} + +by mdo {{ include.pub }} + \ 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 @@

{{ plugin.name }}

{% 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 %}

{{ plugin.excerpt | mardownify | remove: '

' | remove: '

' }}

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 %} - -

by mdo {{ include.pub }}

-
\ 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 ---

{{ page.name }}

-{% include publisher_ref.html pub=page.publisher %} +{% include partial/publisher_ref.html pub=page.publisher %}
diff --git a/blog.html b/blog.html index 0085c0ec..ce2e3138 100644 --- a/blog.html +++ b/blog.html @@ -13,7 +13,7 @@ title: Blog {{ post.title }} {{ post.excerpt }} - {% include publisher_ref.html pub=post.publisher %} + {% include partial/publisher_ref.html pub=post.publisher %}
{% endfor %}