From 597a631988526380e81061f778f85eff43653a5d Mon Sep 17 00:00:00 2001
From: diamon <diamonster@users.noreply.github.com>
Date: Fri, 01 Oct 2021 17:11:40 +0000
Subject: [PATCH] add default author (#408)
---
layouts/_default/single.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index cbb7e74..7cf01e2 100755
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -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 . }}
--
Gitblit v1.10.0