Check if author name exists before using it
This commit is contained in:
parent
fa50dd6d0f
commit
b281d11140
@ -27,10 +27,12 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
<p class="credits copyright text-muted">
|
<p class="credits copyright text-muted">
|
||||||
{{ if .Site.Author.web }}
|
{{ if .Site.Author.name }}
|
||||||
<a href="{{ .Site.Author.website }}">{{ .Site.Author.name }}</a>
|
{{ if .Site.Author.web }}
|
||||||
{{ else }}
|
<a href="{{ .Site.Author.website }}">{{ .Site.Author.name }}</a>
|
||||||
{{ .Site.Author.name }}
|
{{ else }}
|
||||||
|
{{ .Site.Author.name }}
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
•
|
•
|
||||||
|
Loading…
x
Reference in New Issue
Block a user