mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-22 14:35:43 -06:00
feat: add reply via email functionality
This commit is contained in:
parent
e46afe45cf
commit
5088638936
3 changed files with 8 additions and 0 deletions
|
@ -15,6 +15,7 @@ title = "Blowfish"
|
|||
|
||||
# [author]
|
||||
# name = "Your name here"
|
||||
# email = "youremail@example.com"
|
||||
# image = "img/blowfish_logo.png"
|
||||
# headline = "I'm only human"
|
||||
# bio = "A little bit about you"
|
||||
|
|
|
@ -12,6 +12,8 @@ autoSwitchAppearance = true
|
|||
enableSearch = true
|
||||
enableCodeCopy = false
|
||||
|
||||
replyByEmail = false
|
||||
|
||||
# mainSections = ["section1", "section2"]
|
||||
# robots = ""
|
||||
|
||||
|
|
|
@ -81,6 +81,11 @@
|
|||
|
||||
<div class="article-content max-w-prose mb-20">
|
||||
{{ .Content }}
|
||||
{{ $defaultReplyByEmail := .Site.Params.replyByEmail }}
|
||||
{{ $replyByEmail := default $defaultReplyByEmail .Params.replyByEmail }}
|
||||
{{ if $replyByEmail }}
|
||||
<strong><a href="mailto:{{ .Site.Author.email }}?subject={{ replace (printf "Reply to %s" .Title) "\"" "'" }}">Reply by Email</a></strong>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ if (.Params.showAuthorBottom | default ( .Site.Params.article.showAuthorBottom | default false)) }}
|
||||
|
|
Loading…
Reference in a new issue