add default author (#408)

This commit is contained in:
diamon 2021-10-01 20:11:40 +03:00 committed by GitHub
parent e3f7fbe39d
commit 597a631988
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -27,6 +27,7 @@ enableRobotsTXT = true
filename = "sitemap.xml"
[params]
author = ""
favicon = ""
site_logo = ""
description = "The last theme you'll ever need. Maybe."
@ -44,4 +45,4 @@ enableRobotsTXT = true
# choose a background color from any on this page: http://tachyons.io/docs/themes/skins/ and preface it with "bg-"
background_color_class = "bg-black"
featured_image = "/images/gohugo-default-sample-hero-image.jpg"
recent_posts_number = 2
recent_posts_number = 2

View file

@ -18,7 +18,7 @@
<h1 class="f1 athelas mt3 mb1">
{{- .Title -}}
</h1>
{{ with .Params.author }}
{{ with .Params.author | default .Site.Params.author }}
<p class="tracked">
By <strong>
{{ if reflect.IsSlice . }}