address comments

This commit is contained in:
CaptV0rt3x 2020-11-01 03:04:14 +05:30
parent b3470b79dd
commit 8db001158a

View file

@ -3,32 +3,31 @@
{{ $coauthor := index .Site.Data.authors ( .Params.coauthor | default "" ) }}
<div class="mb-md blog-entry-header single" style="background-image: url('{{ .Site.BaseURL }}/{{ .Dir }}banner.png')"></div>
<div class="has-text-centered">
<div>
<span class="title px-md py-sm">{{ .Title }}</span>
</div>
{{ if and $author $coauthor }}
<div>
<span class="h3 px-md py-sm ">
Written by <a href="https://community.citra-emu.org/users/{{ $author.key }}">{{ $author.name }}</a>
and <a href="https://community.citra-emu.org/users/{{ $coauthor.key }}">{{ $coauthor.name }}</a>
on {{ .Date.Format $.Site.Params.fmt.Date }}
</span>
</div>
{{ else if $author }}
<div>
<span class="h3 px-md py-sm ">
Written by <a href="https://community.citra-emu.org/users/{{ $author.key }}">{{ $author.name }}</a>
on {{ .Date.Format $.Site.Params.fmt.Date }}
</span>
</div>
{{ else }}
<div>
<span class="h3 px-md py-sm ">
Written on {{ .Date.Format $.Site.Params.fmt.Date }}
</span>
</div>
{{ end }}
<div>
<span class="title px-md py-sm">{{ .Title }}</span>
</div>
{{ if and $author $coauthor }}
<div>
<span class="h3 px-md py-sm ">
Written by <a href="https://community.citra-emu.org/users/{{ $author.key }}">{{ $author.name }}</a>
and <a href="https://community.citra-emu.org/users/{{ $coauthor.key }}">{{ $coauthor.name }}</a>
on {{ .Date.Format $.Site.Params.fmt.Date }}
</span>
</div>
{{ else if $author }}
<div>
<span class="h3 px-md py-sm">
Written by <a href="https://community.citra-emu.org/users/{{ $author.key }}">{{ $author.name }}</a>
on {{ .Date.Format $.Site.Params.fmt.Date }}
</span>
</div>
{{ else }}
<div>
<span class="h3 px-md py-sm">
Written on {{ .Date.Format $.Site.Params.fmt.Date }}
</span>
</div>
{{ end }}
</div>
{{ end }}