Browse Source

Add customizable text to author section in posts

master
digitalcraftsman 9 years ago
parent
commit
2e995c707f
  1. 3
      exampleSite/config.toml
  2. 2
      layouts/_default/single.html

3
exampleSite/config.toml

@ -26,7 +26,8 @@ theme = "hugo-cactus-theme"
newerPosts = ""
readMore = ""
copyright = ""
# Sharing options in posts
# Sharing options and author information in posts
aboutAuthor = "I'm an enthusiastic gopher."
tweet = ""
share = ""
# 404 page

2
layouts/_default/single.html

@ -17,7 +17,7 @@
<img class="avatar" src="{{ .Site.BaseURL }}images/avatar.png">
<div>
<span class="dark">{{ .Site.Params.name }}</span>
<span>{{ .Site.Params.bio }}</span>
<span>{{ .Site.Params.aboutAuthor }}</span>
</div>
{{ with .Site.Params.twitter }}</a>{{ end }}
<section id="sharing">

Loading…
Cancel
Save