2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-04-28 05:26:44 +00:00

swtitch to using author tag

This commit is contained in:
Matthias Mair 2022-07-30 21:26:38 +02:00 committed by GitHub
parent 18d2086261
commit 27091c1078
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ layout: default
<h1>{{ page.title }}</h1> <h1>{{ page.title }}</h1>
<p> <p>
{{ page.date | date_to_string }} {{ page.date | date_to_string }}
{% assign publisher = site.publishers | where: 'short_name', page.publisher | first %} {% assign publisher = site.publishers | where: 'short_name', page.author | first %}
{% if publisher %} {% if publisher %}
- <a href="{{ publisher.url | relative_url }}">{{ publisher.name }}</a> - <a href="{{ publisher.url | relative_url }}">{{ publisher.name }}</a>
{% endif %} {% endif %}

View File

@ -1,5 +1,5 @@
--- ---
publisher: matmair author: matmair
title: We have news now! title: We have news now!
--- ---
Hi there, Hi there,

View File

@ -1,5 +1,5 @@
--- ---
publisher: matmair author: matmair
title: Starting with templates title: Starting with templates
--- ---
A good starting-point for developing your own plugin is taking a look at the [documentation](https://inventree.readthedocs.io/en/latest/extend/plugins/). A good starting-point for developing your own plugin is taking a look at the [documentation](https://inventree.readthedocs.io/en/latest/extend/plugins/).