diff options
author | pacollins <thepatrickcollins@gmail.com> | 2017-08-14 04:09:38 +0300 |
---|---|---|
committer | pacollins <thepatrickcollins@gmail.com> | 2017-08-14 04:09:38 +0300 |
commit | 1aab966c409cd325718b8c5c8b9ec4275a9c995d (patch) | |
tree | 1a7a97071289e79e8136ad5f586db90d887d044f | |
parent | 051fb84c94b2947f3785c4d40a4fdcb303e99816 (diff) |
Patch 1
-rw-r--r-- | layouts/partials/footer.html | 52 | ||||
-rw-r--r-- | layouts/partials/header.html | 8 |
2 files changed, 30 insertions, 30 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index a541ca3..086f50e 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,33 +1,33 @@ - </div> - <a id="back-to-top" href="#" class="fa fa-arrow-up fa-border fa-2x"></a> - <!-- Scripts --> + </div> + <a id="back-to-top" href="#" class="fa fa-arrow-up fa-border fa-2x"></a> + <!-- Scripts --> - {{ if isset .Site.Params "customJS" }} - {{ $.Scratch.Set "jsFiles" .Site.Params.customJS }} - {{ else }} - {{ $.Scratch.Set "jsFiles" false }} - {{ end }} + {{ if isset .Site.Params "customJS" }} + {{ $.Scratch.Set "jsFiles" .Site.Params.customJS }} + {{ else }} + {{ $.Scratch.Set "jsFiles" false }} + {{ end }} - <!-- If the value "default" is passed into the param then we will first - load the standard js files associated with the theme --> - {{ if or (isset ($.Scratch.Get "jsFiles") "default") (eq ($.Scratch.Get "jsFiles") false) }} - <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> - <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script> - <script src="https://cdnjs.cloudflare.com/ajax/libs/skel/3.0.1/skel.min.js"></script> - <script src="/js/util.js"></script> - <script src="/js/main.js"></script> - <script src="/js/backToTop.js"></script> - {{ end }} + <!-- If the value "default" is passed into the param then we will first + load the standard js files associated with the theme --> + {{ if or (in ($.Scratch.Get "jsFiles") "default") (eq ($.Scratch.Get "jsFiles") false) }} + <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> + <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script> + <script src="https://cdnjs.cloudflare.com/ajax/libs/skel/3.0.1/skel.min.js"></script> + <script src="/js/util.js"></script> + <script src="/js/main.js"></script> + <script src="/js/backToTop.js"></script> + {{ end }} - {{ if ne ($.Scratch.Get "jsFiles") false }} - {{ range $.Scratch.Get "jsFiles" }} - {{ if ne . "default" }} - <script src="{{ . }}"></script> - {{ end }} - {{ end }} + {{ if ne ($.Scratch.Get "jsFiles") false }} + {{ range $.Scratch.Get "jsFiles" }} + {{ if ne . "default" }} + <script src="{{ . }}"></script> + {{ end }} {{ end }} + {{ end }} - <!-- This is called by default since this theme uses highlight.js --> - <script>hljs.initHighlightingOnLoad();</script> + <!-- This is called by default since this theme uses highlight.js --> + <script>hljs.initHighlightingOnLoad();</script> </body> </html> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 72965b9..54dd12a 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -37,7 +37,7 @@ {{ template "_internal/schema.html" . }} {{ template "_internal/google_news.html" . }} - {{ if isset .Site.Params "customcss" }} + {{ if isset .Site.Params "customCSS" }} {{ $.Scratch.Set "cssFiles" .Site.Params.customCSS }} {{ else }} {{ $.Scratch.Set "cssFiles" false }} @@ -45,7 +45,7 @@ <!-- If the value "default" is passed into the param then we will first load the standard css files associated with the theme --> - {{ if or (isset ($.Scratch.Get "cssFiles") "default") (eq ($.Scratch.Get "cssFiles") false) }} + {{ if or (in ($.Scratch.Get "cssFiles") "default") (eq ($.Scratch.Get "cssFiles") false) }} <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/atom-one-light.min.css"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway:400,800,900|Source+Sans+Pro:400,700"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> @@ -67,5 +67,5 @@ </head> <body> - <!-- Wrapper --> - <div id="wrapper"> + <!-- Wrapper --> + <div id="wrapper"> |