add default author (#408)
This commit is contained in:
parent
e3f7fbe39d
commit
597a631988
|
@ -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
|
||||||
|
|
|
@ -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 . }}
|
||||||
|
|
Loading…
Reference in a new issue