aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/head.html5
-rw-r--r--layouts/partials/scripts.html7
2 files changed, 11 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index fb4dad6..fb8c284 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -68,6 +68,11 @@
{{ if .Site.Params.fancybox }}<link href="{{ "lib/fancybox/jquery.fancybox-3.1.20.min.css" | relURL }}" rel="stylesheet">{{ end }}
{{- end }}
+<!-- custom css -->
+{{ range .Site.Params.customCSS }}
+<link rel="stylesheet" href="{{ "/css/" | relURL }}{{ . }}">
+{{ end }}
+
{{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/spf13/hugo/blob/master/tpl/tplimpl/template_embedded.go#L158 */}}
{{- template "_internal/opengraph.html" . -}}
{{- template "_internal/google_news.html" . -}}
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index cb26278..89c087a 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -59,4 +59,9 @@
s.parentNode.insertBefore(bp, s);
})();
</script>
-{{- end }} \ No newline at end of file
+{{- end }}
+
+<!-- custom js -->
+{{ range .Site.Params.customJS }}
+<script src="{{ "/js/" | relURL }}{{ . }}"></script>
+{{ end }}