diff --git a/.gitmodules b/.gitmodules
index 7298629..14b9f1a 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -2,3 +2,6 @@
path = themes/risotto
url = https://github.com/joeroe/risotto.git
+[submodule "themes/hugo-cloak-email"]
+ path = themes/hugo-cloak-email
+ url = https://github.com/martignoni/hugo-cloak-email.git
diff --git a/config/_default/params.toml b/config/_default/params.toml
index 1f8c385..71fee0f 100644
--- a/config/_default/params.toml
+++ b/config/_default/params.toml
@@ -54,6 +54,7 @@ giscusTheme = "noborder_gray"
analytics = true
kudos = true
+emailReplies = true
[author]
name = "John Bowdre"
diff --git a/flake.nix b/flake.nix
index 2f3f05d..cf5a659 100644
--- a/flake.nix
+++ b/flake.nix
@@ -17,6 +17,9 @@
hugo
nodePackages.npm
];
+ shellHook = ''
+ source .env
+ '';
};
};
}
\ No newline at end of file
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 364969d..fe78efb 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -49,9 +49,20 @@
{{- $showKudos = false }}
{{- end }}
{{- if and (eq .Site.Params.analytics true) (ne $showKudos false) }}
- Celebrate this post:
+
{{- end }}
+ {{- $emailReplies := true }}
+ {{- if eq .Site.Params.emailReplies false }}
+ {{- $emailReplies = false }}
+ {{- else if eq .Params.emailReplies false }}
+ {{- $emailReplies = false }}
+ {{- end }}
+ {{- if and (eq .Site.Params.comments true) (ne $emailReplies false) }}
+ 📧 Reply by email
+ {{- end }}
+ Comments
{{- partial "comments" . }}
+