2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-04-27 21:16:45 +00:00

fix author/publisher matching (#123)

This commit is contained in:
Matthias Mair 2023-01-29 22:44:08 +01:00 committed by GitHub
parent bdcbba51cf
commit 68a5da3a24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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