mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-11-24 15:15:40 +01:00
layouts/entry/single: fix a bug where ...
... if there is no co-author, there will be an extra "and" at the end. Hugo seems to treat empty array as "true" when doing logical operations.
This commit is contained in:
parent
cd51353e9b
commit
2ec9c0a702
@ -6,7 +6,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<span class="title px-md py-sm">{{ .Title }}</span>
|
<span class="title px-md py-sm">{{ .Title }}</span>
|
||||||
</div>
|
</div>
|
||||||
{{ if and $author $coauthors }}
|
{{ if and $author (gt (len $coauthors) 1) }}
|
||||||
<div>
|
<div>
|
||||||
<p class="h3 px-md py-sm">
|
<p class="h3 px-md py-sm">
|
||||||
Written by <a href="https://community.citra-emu.org/users/{{ $author.key }}">{{ $author.name }}</a>
|
Written by <a href="https://community.citra-emu.org/users/{{ $author.key }}">{{ $author.name }}</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user