diff options
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | layouts/_default/single.html | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -227,7 +227,8 @@ enableRobotsTXT = true facebook_admin = "0000000000" # Facebook Page Admin ID # Author metadata. This is mostly used for the RSS feed of your site, but the - # email is also added to the footer of each post + # email is also added to the footer of each post. You can hide the "reply to" + # link by using a `hideReply` param in front matter. [params.author] name = "John Doe" # Your name as shown in the RSS feed metadata email = "me@example.com" # Added to the footer so readers can reply to posts diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4ff8d75..2baecc4 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -16,6 +16,7 @@ <a class="blog-tags" href="{{ .RelPermalink }}">#{{ lower .LinkTitle }}</a> {{ end }} </p> +{{ if not .Params.hideReply }} {{ with .Site.Params.author.email }} <p> <a href='mailto:{{ . }}?subject={{ i18n "email-subject" }}"{{ default $.Site.Title $.Page.Title }}"'> @@ -24,3 +25,4 @@ </p> {{ end }} {{ end }} +{{ end }} |