1
0
Fork 0

Merge pull request #65 from jtagcat/author-fix

Fix Author fields.
This commit is contained in:
南小北 2020-08-18 23:42:08 +08:00 committed by GitHub
commit 095808ccbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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">