mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-12-22 23:45:38 +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>
|
<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 a new issue