diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 672c82e..d7543a7 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -12,6 +12,11 @@
{{ end }}
{{ .Content }}
+ {{ if .Site.Params.staticman }}
+
+ {{ partial "staticman-comments.html" . }}
+
+ {{ end }}
{{ partial "table-of-contents" . }}
@@ -23,4 +28,4 @@
{{ with .NextInSection }}{{ if . }}next post{{ end }}{{ end }}
-{{ end }}
\ No newline at end of file
+{{ end }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 9ac7566..1fa31ea 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -2,4 +2,8 @@
Powered by Hugo, based on the Er theme.
{{ with .Site.Copyright }}{{ . }}{{end}}
-
\ No newline at end of file
+
+{{- if .Site.Params.staticman }}
+
+
+{{- end }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 3ae224a..3edf848 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -8,6 +8,13 @@
+{{- if .Site.Params.staticman -}}
+
+{{- end -}}
+{{- if .Site.Params.staticman.recaptcha -}}
+
+{{- end -}}
+
-{{ template "_internal/google_analytics_async.html" . }}
\ No newline at end of file
+{{ template "_internal/google_analytics_async.html" . }}
diff --git a/layouts/partials/staticman-comments.html b/layouts/partials/staticman-comments.html
new file mode 100644
index 0000000..0739061
--- /dev/null
+++ b/layouts/partials/staticman-comments.html
@@ -0,0 +1,125 @@
+
+
+ {{ $slug := replace .URL "/" "" }}
+
+ {{ if .Site.Data.comments }}
+ {{ $comments := index $.Site.Data.comments $slug }}
+ {{ if $comments }}
+ {{ if gt (len $comments) 1 }}
+
{{ len $comments }} comments
+ {{ else }}
+
{{ len $comments }} comment
+ {{ end }}
+ {{ else }}
+
No comment
+ {{ end }}
+
+ {{ $.Scratch.Set "hasComments" 0 }}
+ {{ range $comments }}
+ {{ if not .replyThread }}
+ {{ $.Scratch.Add "hasComments" 1 }}
+ {{ $.Scratch.Set "hasReplies" 0 }}
+ {{ $.Scratch.Set "threadID" ._id }}
+
+
+ {{ if .website }}
+