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" filename = "sitemap.xml"
[params] [params]
author = ""
favicon = "" favicon = ""
site_logo = "" site_logo = ""
description = "The last theme you'll ever need. Maybe." 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-" # 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" background_color_class = "bg-black"
featured_image = "/images/gohugo-default-sample-hero-image.jpg" 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"> <h1 class="f1 athelas mt3 mb1">
{{- .Title -}} {{- .Title -}}
</h1> </h1>
{{ with .Params.author }} {{ with .Params.author | default .Site.Params.author }}
<p class="tracked"> <p class="tracked">
By <strong> By <strong>
{{ if reflect.IsSlice . }} {{ if reflect.IsSlice . }}