1
0
Fork 0

Fix Author fields.

This commit is contained in:
jtagcat 2020-08-14 13:21:28 +03:00
parent 4330c8b12a
commit 2b51b3a30c
2 changed files with 4 additions and 4 deletions

View file

@ -4,8 +4,8 @@
<header class="post-header">
<h1 class="post-title">{{ .Title }}</h1>
<div class="post-meta">
{{- if or .Params.author .Site.Params.author }}
{{- .Params.author | default .Site.Params.author }} · {{ end }}
{{- if or .Params.Author .Site.Author.name }}
{{- .Params.Author | default .Site.Author.name }} · {{ end }}
{{- .Date.Format "January 2, 2006" -}}
</div>
</header>

View file

@ -9,10 +9,10 @@
<!-- Meta -->
{{- if eq .Kind "page" }}
<meta name="description" content="{{ .Summary }}">
<meta name="author" content="{{ .Params.author | default .Site.Params.author }}">
<meta name="author" content="{{ .Params.Author | default .Site.Author.name }}">
{{- else }}
<meta name="description" content="{{ .Site.Params.description }}">
<meta name="author" content="{{ .Site.Params.author }}">
<meta name="author" content="{{ .Site.Author.name }}">
{{- end }}
<!-- Styles -->
<link href="{{ "an-old-hope.min.css" | absURL }}" rel="stylesheet">