summaryrefslogtreecommitdiff
path: root/layouts/_default/baseof.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r--layouts/_default/baseof.html18
1 files changed, 18 insertions, 0 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" }}