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