@@ -8,33 +8,32 @@
{{ .Params.Author | default site.Author.name }}
{{ end }}
-
{{ .Title }}
-
+
{{ if .Params.tags }}
{{ end }}
- {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
+
+ {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ if and (gt (len $pages) 1) (in $pages . ) }}
{{ end }}
+
{{ if and site.DisqusShortname (not (eq .Params.comments false)) }}
+ {{ end }}
+
+
+
+
+ {{ range $key, $val := $.Scratch.Get "social-map" }}
+
+ {{ end }}
+
+
+
+
+
+
+ {{ hugo.Generator }}
+
+
+ {{ range .AlternativeOutputFormats }}
+
+ {{ end }}
+
+
+ {{ if hugo.IsProduction | eq site.Params.env "production" }}
+
+ {{ template "_internal/google_analytics_async.html" . }}
+
+ {{ template "_internal/google_news.html" . }}
+
+ {{ template "_internal/opengraph.html" . }}
+
+ {{ template "_internal/schema.html" . }}
+
+ {{ template "_internal/twitter_cards.html" . }}
+
+ {{ end }}
+
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index ef6c353..59534a0 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,127 +1,60 @@
-
-
-
-
-
-
+
diff --git a/layouts/shortcodes/collapse.html b/layouts/shortcodes/collapse.html
index e3984ab..984613d 100644
--- a/layouts/shortcodes/collapse.html
+++ b/layouts/shortcodes/collapse.html
@@ -1,15 +1,9 @@
-{{ if .Get "content" }}
-{{ if .Get "summary" }}
-{{ else }}
-{{ warnf "missing value for param 'summary': %s" .Position }}
-{{ end }}
-{{ else }}
-{{ errorf "missing value for param 'content': %s" .Position }}
-{{ end }}
+{{ if not (.Get "summary") }}
+{{ errorf "missing param 'summary': %s" .Position }}
+{{ else if not (.Get "content") }}{{ warnf "missing param 'content': %s" .Position }}
+{{ end }}
-
-
- {{ .Get "summary" | markdownify }}
- {{ .Get "content" | markdownify }}
-
-
+
+ {{ .Get "summary" | markdownify }}
+ {{ .Get "content" | markdownify }}
+