Browse Source

Merge branch 'patch-1' into 'master'

Introduce config parameter for user defined / custom CSS and JS

See merge request maxlefou/hugo.386!5
pull/1/head
Max le Fou 4 years ago
parent
commit
ae54ba2ff5
  1. 8
      layouts/partials/scripts.html

8
layouts/partials/scripts.html

@ -1,6 +1,9 @@
<link rel="stylesheet" href="{{ "/css/bootstrap.css" | relURL }}"> <link rel="stylesheet" href="{{ "/css/bootstrap.css" | relURL }}">
<link rel="stylesheet" href="{{ "/css/bootstrap-responsive.css" | relURL }}"> <link rel="stylesheet" href="{{ "/css/bootstrap-responsive.css" | relURL }}">
<link rel="stylesheet" href="{{ "/css/style.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/jquery.js" | relURL }}"></script>
<script src="{{ "/js/bootstrap-386.js" | relURL }}"></script> <script src="{{ "/js/bootstrap-386.js" | relURL }}"></script>
<script src="{{ "/js/bootstrap-transition.js" | relURL }}"></script> <script src="{{ "/js/bootstrap-transition.js" | relURL }}"></script>
@ -27,4 +30,7 @@
function ThisYear() { function ThisYear() {
document.getElementById('thisyear').innerHTML = new Date().getFullYear(); document.getElementById('thisyear').innerHTML = new Date().getFullYear();
}; };
</script> </script>
{{- range .Site.Params.customJS }}
<script src="{{ . | relURL }}"></script>
{{- end }}
Loading…
Cancel
Save