diff options
author | Andrew R. Jenkins <allnightgrocery@gmail.com> | 2016-02-01 01:18:34 +0300 |
---|---|---|
committer | Andrew R. Jenkins <allnightgrocery@gmail.com> | 2016-02-01 01:18:34 +0300 |
commit | b56f0e23827959e53f58f3819061a15da00df204 (patch) | |
tree | 81317464b53de717ecf251c2c7aae83cb7e96a9a | |
parent | fb4b87e1ad473a8909462624ad314bb49166a1e3 (diff) |
Allow a post to override the author.
-rw-r--r-- | layouts/_default/post.html | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/layouts/_default/post.html b/layouts/_default/post.html index 5ab2194..951864c 100644 --- a/layouts/_default/post.html +++ b/layouts/_default/post.html @@ -11,9 +11,13 @@ <footer class="post-footer"> <section class="f-1"> - {{ with .Site.Params.author }} + {{ if isset .Params "author" }} <section class="author"> - <p>Words by {{ . }}</p> + <p>Words by {{ index .Params "author" }}</p> + </section> + {{ else if isset .Site.Params "author" }} + <section class="author"> + <p>Words by {{ index .Site.Params "author" }}</p> </section> {{ end }} @@ -38,7 +42,7 @@ </span> </section> - {{ with.Params.tags }} + {{ with .Params.tags }} <span class="f-post-tags"><i class="fa fa-tag"></i> {{ delimit . ", " }} </span> |