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"> <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">