Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/coderzh/hugo-pacman-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/article_header.html')
-rw-r--r--layouts/partials/article_header.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/article_header.html b/layouts/partials/article_header.html
index 8409b8f..5c2dd6b 100644
--- a/layouts/partials/article_header.html
+++ b/layouts/partials/article_header.html
@@ -6,10 +6,10 @@
{{ if and (isset .Params "author") (isset .Params "author_homepage") }}
<a href="{{ .Params.author_homepage }}" title="{{ .Params.author }}">{{ .Params.author }}</a>
{{ else }}
- <a href="{{ .Site.Params.AuthorHomepage }}" title="{{ .Site.Author.Name }}">{{ .Site.Author.Name }}</a>
+ <a href="{{ .Site.Params.AuthorHomepage }}" title="{{ .Site.Author.Name }}">{{ .Site.Author.Name | default "you" }}</a>
{{ end }}
</p>
<p class="article-time">
- <time datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format .Site.Params.DateFormat }}</time>
+ <time datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format (.Site.Params.DateFormat | default "2006-01-02") }}</time>
</p>
</header>