diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index ce70d26..958d67b 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -13,11 +13,14 @@
{{ end }}
- {{- range first .Site.Params.SidebarRecentLimit .Data.Pages -}}
+ {{- range .Data.Pages -}}
+ {{- if (in (.Site.Params.excludedTypes | default (slice "page")) .Type) -}}
+ {{- else -}}
-
{{.Title}} {{ dateFormat "Jan 2, 2006" .Date }}
{{- end -}}
+ {{- end -}}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 0abbe00..beee7b7 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -14,9 +14,19 @@
{{ .Content }}
- {{ partial "disqus.html" . }}
-
+ {{- $.Scratch.Set "isDisqus" true -}}
+ {{- if and (isset .Params "disqus") (eq .Params.disabledisqus false) -}}
+ {{- $.Scratch.Set "isDisqus" false -}}
+ {{- end -}}
+ {{- if and (isset .Params "type") (in (.Site.Params.disableDisqusTypes | default (slice "page")) .Params.type) -}}
+ {{- $.Scratch.Set "isDisqus" false -}}
+ {{- end -}}
+
+ {{- if eq ($.Scratch.Get "isDisqus") true -}}
+ {{- partial "disqus.html" . -}}
+ {{- end -}}
+
{{ partial "footer.html" . }}