mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

diamon
01.11.2021 597a631988526380e81061f778f85eff43653a5d
add default author (#408)

2 files modified
5 ■■■■■ changed files
exampleSite/config.toml 3 ●●●● patch | view | raw | blame | history
layouts/_default/single.html 2 ●●● patch | view | raw | blame | history
exampleSite/config.toml
@@ -27,6 +27,7 @@
  filename = "sitemap.xml"
[params]
  author = ""
  favicon = ""
  site_logo = ""
  description = "The last theme you'll ever need. Maybe."
@@ -44,4 +45,4 @@
  # 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
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 . }}