mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-12-22 18:15:45 +00: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>
|
||||
<span class="title px-md py-sm">{{ .Title }}</span>
|
||||
</div>
|
||||
{{ if and $author $coauthors }}
|
||||
{{ if and $author (gt (len $coauthors) 1) }}
|
||||
<div>
|
||||
<p class="h3 px-md py-sm">
|
||||
Written by <a href="https://community.citra-emu.org/users/{{ $author.key }}">{{ $author.name }}</a>
|
||||
|
|
Loading…
Reference in a new issue