Marcel Kapfer
cbc79dbe7f
Until now the commenting system was a line in a small font advising to write a mail for commenting. This change replaces the text with one that is maybe more engaging and adds a button a la Kev Quirk. See also: https://kevq.uk/adding-the-post-title-to-my-reply-by-email-button/
30 lines
893 B
HTML
30 lines
893 B
HTML
{{ define "main" }}
|
|
<h1>{{ .Title }}</h1>
|
|
<p id="date">{{.Date.Format "2006-01-02"}}</p>
|
|
<p>{{ .WordCount }} words, ~ {{ .ReadingTime }} min reading time</p>
|
|
|
|
<p>
|
|
{{ with .Params.categories }}
|
|
<span id="categories">
|
|
{{ range . }}
|
|
<a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a>
|
|
{{ end }}
|
|
</span>
|
|
{{ end }}
|
|
{{ with .Params.tags }}
|
|
<span id="tags">
|
|
{{ range . }}
|
|
<a href="{{ "tags" | absURL}}/{{ . | urlize }}">{{ . }}</a>
|
|
{{ end }}
|
|
</span>
|
|
{{ end }}
|
|
</p>
|
|
{{ .Content }}
|
|
|
|
{{ if .Site.Params.comment.comments }}
|
|
<div class="comment">
|
|
<p>I would like to hear what you think about this post. Feel free to write me a mail!</p>
|
|
<a class="btn" href="mailto:comment@mmk2410.org?subject=Reply to: "{{ .Page.Title }}"">Reply by mail</a>
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|