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 = "" newerPosts = ""
readMore = "" readMore = ""
copyright = "" copyright = ""
# Sharing options in posts
# Sharing options and author information in posts
aboutAuthor = "I'm an enthusiastic gopher."
tweet = "" tweet = ""
share = "" share = ""
# 404 page # 404 page

2
layouts/_default/single.html

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

Loading…
Cancel
Save