From 68a5da3a24bb8a1c10afc31295187c0dd2e04abd Mon Sep 17 00:00:00 2001 From: Matthias Mair <code@mjmair.com> Date: Sun, 29 Jan 2023 22:44:08 +0100 Subject: [PATCH] fix author/publisher matching (#123) --- _includes/partial/publisher_link.html | 2 +- _layouts/collection/collection_base.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/partial/publisher_link.html b/_includes/partial/publisher_link.html index 1dd51881..edf6fc97 100644 --- a/_includes/partial/publisher_link.html +++ b/_includes/partial/publisher_link.html @@ -1,3 +1,3 @@ -{% assign pub_small = include.pub | downcase %} +{% assign pub_small = include.pub %} {% assign publisher_ref = site.publishers | where: 'short_name', pub_small | first %} <a href="{{ publisher_ref.url | relative_url }}">{{ publisher_ref.name }}</a> \ No newline at end of file diff --git a/_layouts/collection/collection_base.html b/_layouts/collection/collection_base.html index dd89bf54..dee1d4bd 100644 --- a/_layouts/collection/collection_base.html +++ b/_layouts/collection/collection_base.html @@ -15,7 +15,7 @@ layout: default <h1>{{ page.title }}</h1> <p> {{ page.date | date_to_string }} - {% include partial/publisher_link.html pub= page.author %} + {% include partial/publisher_link.html pub=page.author %} </p> {{ content }} </article> \ No newline at end of file