diff --git a/layouts/404.html b/layouts/404.html
index 0332ae20..2779df79 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -2,22 +2,22 @@
{{ partial "navbar.html" . }}
-
Page not found
-
Maybe you were looking for one of these?
+
Page not found
+
Maybe you were looking for one of these?
-
Recent Posts
- {{ range last 20 (where .Data.Pages "Section" "=" "post") }}
-
- {{ end }}
+
Recent Posts
+ {{ range last 20 (where .Data.Pages "Section" "=" "post") }}
+
+ {{ end }}
-
Recent Publications
- {{ range last 20 (where .Data.Pages "Section" "=" "publication") }}
-
- {{ end }}
+
Recent Publications
+ {{ range last 20 (where .Data.Pages "Section" "=" "publication") }}
+
+ {{ end }}
{{ partial "footer_container.html" . }}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 2d86b3a8..ff603be7 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -2,15 +2,15 @@
{{ partial "navbar.html" . }}
- {{ $paginator := .Paginate .Data.Pages }}
- {{ range $paginator.Pages }}
-
- {{ end }}
+ {{ $paginator := .Paginate .Data.Pages }}
+ {{ range $paginator.Pages }}
+
+ {{ end }}
- {{ partial "pagination" . }}
+ {{ partial "pagination" . }}
{{ partial "footer_container.html" . }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 88d38d9f..4e117d36 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -2,24 +2,24 @@
{{ partial "navbar.html" . }}
-
+
- {{ if .Params.image }}
-
- {{end}}
+ {{ if .Params.image }}
+
+ {{end}}
- {{ .Title }}
+ {{ .Title }}
- {{ partial "article_metadata" (dict "content" . "is_list" 0) }}
+ {{ partial "article_metadata" (dict "content" . "is_list" 0) }}
-
- {{ .Content }}
-
+
+ {{ .Content }}
+
-
+
- {{ partial "section_pager.html" . }}
- {{ partial "comments.html" . }}
+ {{ partial "section_pager.html" . }}
+ {{ partial "comments.html" . }}
{{ partial "footer_container.html" . }}
diff --git a/layouts/partials/article_metadata.html b/layouts/partials/article_metadata.html
index ab98c08e..90fce134 100644
--- a/layouts/partials/article_metadata.html
+++ b/layouts/partials/article_metadata.html
@@ -2,24 +2,27 @@
{{ $ := .content }}
-
-
-
+
+
+
- {{ if isset $.Params "tags" }}
- {{ $tagsLen := len $.Params.tags }}
- {{ if gt $tagsLen 0 }}
-
-
- {{ range $k, $v := $.Params.tags }}
- {{ . }}{{ if lt $k (sub $tagsLen 1) }}, {{ end }}
- {{ end }}
-
- {{ end }}
+ {{ if isset $.Params "tags" }}
+ {{ $tagsLen := len $.Params.tags }}
+ {{ if gt $tagsLen 0 }}
+
+
+ {{ range $k, $v := $.Params.tags }}
+ {{ . }}{{ if lt $k (sub $tagsLen 1) }}, {{ end }}
{{ end }}
+
+ {{ end }}
+ {{ end }}
- {{ if ne $is_list 1 }}
- {{ partial "share.html" $ }}
- {{ end }}
+ {{ if ne $is_list 1 }}
+ {{ partial "share.html" $ }}
+ {{ end }}
diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html
index 828f4a00..41c6fa0b 100644
--- a/layouts/partials/comments.html
+++ b/layouts/partials/comments.html
@@ -1,7 +1,7 @@
{{ if and (and (not (eq .Site.DisqusShortname "")) (not (isset .Site.Params "disable_comments")) (not (isset .Params "disable_comments"))) }}
{{ end }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index b2bacc15..8f5554d5 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,45 +1,45 @@
-
-
-
-
-
- {{ range .Site.Params.custom_js }}
-
- {{ end }}
+
+
+
+
+
+ {{ range .Site.Params.custom_js }}
+
+ {{ end }}
- {{ with .Site.GoogleAnalytics }}
-
- {{ end }}
+ /* Send outbound link click events */
+ var links = document.querySelectorAll('a');
+ Array.prototype.map.call(links, function(item) {
+ if (item.host != document.location.host) {
+ item.addEventListener('click', function() {
+ var action = item.getAttribute('data-action') || 'follow';
+ ga('send', 'event', 'outbound', action, item.href);
+ });
+ }
+ });
+
+ {{ end }}
-
-
-
+
+
+
-
- {{ if or (and (isset .Site.Params "math") (eq .Site.Params.math true)) (and (isset .Params "math") (eq .Params.math true)) }}
-
-
- {{ end }}
+
+ {{ if or (and (isset .Site.Params "math") (eq .Site.Params.math true)) (and (isset .Params "math") (eq .Params.math true)) }}
+
+
+ {{ end }}
-