Check if author name exists before using it

This commit is contained in:
Michael Romero 2017-08-06 01:42:32 -07:00 committed by GitHub
parent fa50dd6d0f
commit b281d11140

View File

@ -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 }}
&nbsp;&bull;&nbsp;