summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html18
-rw-r--r--layouts/partials/footer.html4
2 files changed, 21 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 2b315e1..2711fee 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -32,9 +32,27 @@
"sass")) }}
{{ $style := resources.Get "sass/main.scss" | resources.ToCSS $options }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
+
+ {{ range .Site.Params.custom_css -}}
+ {{ $custom_template := resources.Get . }}
+ {{ if $custom_template }}
+ {{ $custom_style := $custom_template | resources.ToCSS | resources.Minify }}
+ <link rel="stylesheet" href="{{ $custom_style.RelPermalink }}">
+ {{ end }}
+ {{ end }}
+ <!-- custom js -->
+ {{ range .Site.Params.custom_js -}}
+ {{ $custom_template := resources.Get . }}
+ {{ if $custom_template }}
+ {{ $custom_js := $custom_template | resources.Minify | resources.Fingerprint }}
+ <script defer src="{{ $custom_js.RelPermalink }}"></script>
+ {{ end }}
+ {{ end }}
+
</head>
<!-- hack iOS CSS :active style -->
+
<body ontouchstart="">
{{ $header_img := .Param "header_img" }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 9f296aa..5eda267 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -144,4 +144,6 @@
}
});
});
-</script> \ No newline at end of file
+</script>
+
+{{ template "_internal/google_analytics.html" . }} \ No newline at end of file