Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/maxlefou/hugo.386.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax le Fou <buttbadger@gmail.com>2020-07-21 20:53:02 +0300
committerMax le Fou <buttbadger@gmail.com>2020-07-21 20:53:02 +0300
commitae54ba2ff5dad87492782a4ec9985bad6d5e445e (patch)
tree9c386cdd8ee6d1e2a403e98e368cfe77723d6b15
parent2558598655fb0d797e526741f2082c8360c720a0 (diff)
parent7236c3b6c44c24a9cfef25f09bb1c8bfa93eee65 (diff)
Merge branch 'patch-1' into 'master'
Introduce config parameter for user defined / custom CSS and JS See merge request maxlefou/hugo.386!5
-rw-r--r--layouts/partials/scripts.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index 05891be..3e36a65 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -1,6 +1,9 @@
<link rel="stylesheet" href="{{ "/css/bootstrap.css" | relURL }}">
<link rel="stylesheet" href="{{ "/css/bootstrap-responsive.css" | relURL }}">
<link rel="stylesheet" href="{{ "/css/style.css" | relURL }}">
+{{ range .Site.Params.customCSS -}}
+<link rel="stylesheet" href="{{ . | relURL }}">
+{{- end }}
<script src="{{ "/js/jquery.js" | relURL }}"></script>
<script src="{{ "/js/bootstrap-386.js" | relURL }}"></script>
<script src="{{ "/js/bootstrap-transition.js" | relURL }}"></script>
@@ -27,4 +30,7 @@
function ThisYear() {
document.getElementById('thisyear').innerHTML = new Date().getFullYear();
};
-</script> \ No newline at end of file
+</script>
+{{- range .Site.Params.customJS }}
+<script src="{{ . | relURL }}"></script>
+{{- end }} \ No newline at end of file