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

View file

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