mirror of
https://github.com/SebastianStork/kita.git
synced 2026-01-21 15:41:35 +01:00
feat: replace extra.author with authors in the page front matter
This commit is contained in:
parent
c2a7f409f0
commit
5371faac79
2 changed files with 20 additions and 7 deletions
|
|
@ -4,10 +4,13 @@
|
|||
<span class="mx-1">·</span>
|
||||
<span>{{ page.reading_time }}min</span>
|
||||
{% endif %}<!---->
|
||||
{% set single_author = page.extra.author | default(value=config.author) %}
|
||||
<!---->
|
||||
{% if single_author %}
|
||||
{% if page.authors | length > 0 %}<!---->
|
||||
{% set author = page.authors | join(sep=", ") %}<!---->
|
||||
{% else %}<!---->
|
||||
{% set author = config.author %}<!---->
|
||||
{% endif %}<!---->
|
||||
{% if author %}
|
||||
<span class="mx-1">·</span>
|
||||
<span>{{ single_author }}</span>
|
||||
<span>{{ author }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue