
Set the `hideReply` param on front matter to completely remove the "reply to" link present in the bottom of the pages. This is backwards-compatible given that any page that does not have the `hideReply` param will continue to work as before.
29 lines
720 B
HTML
29 lines
720 B
HTML
{{ define "main" }}
|
|
{{ if not .Params.menu }}
|
|
<h1>{{ .Title }}</h1>
|
|
<p class="byline">
|
|
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
|
|
{{ .Date.Format (default "2006-01-02" .Site.Params.dateFormat) }}
|
|
</time>
|
|
{{ with .Params.author }}· {{.}}{{ end }}
|
|
</p>
|
|
{{ end }}
|
|
<content>
|
|
{{ .Content }}
|
|
</content>
|
|
<p>
|
|
{{ range (.GetTerms "tags") }}
|
|
<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 }}"'>
|
|
{{ i18n "email-reply" }} ↪
|
|
</a>
|
|
</p>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|