diff options
author | Vicky <vicky@vickylai.io> | 2018-03-25 18:12:37 +0300 |
---|---|---|
committer | Vicky <vicky@vickylai.io> | 2018-03-25 18:12:37 +0300 |
commit | 65b49aa8c810d5fbaf809e58fe3a5a55bb95ffba (patch) | |
tree | 400754d69b845e0c92dc112e32186846be97c290 /layouts/partials/header.html | |
parent | b59b398e2f27a6b67704e78fd0bc63de691e64e9 (diff) | |
parent | 96c9303c4fd9e0b2f69d6cbf101005a338f3236c (diff) |
Merge branch 'master' of https://github.com/hivickylai/hugo-theme-introduction
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r-- | layouts/partials/header.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 951bfc7..acf060a 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -34,32 +34,32 @@ {{ end }} <!-- jQuery --> -<script -src="https://code.jquery.com/jquery-3.2.1.min.js" -integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" -crossorigin="anonymous"></script> +<script type="text/javascript" src="/js/jquery-3.3.1.min.js"></script> <!-- Fonts and icon CSS --> -<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> -<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito+Sans"> +<link rel="stylesheet" href="/css/font-awesome.min.css"> +<link rel="stylesheet" href="/css/nunito_sans.css"> {{ if .Site.Params.cacheBuster }} - {{ $t := now.Unix }} - <link rel="stylesheet" href="css/{{ .Site.Params.themeStyle }}-style.css?t={{$t}}"> + <link rel="stylesheet" href="css/{{ .Site.Params.themeStyle | default "dark" }}-style.css?t={{$t}}"> {{range .Site.Params.extraCSSFiles}} <link rel="stylesheet" href="{{.}}?t={{$t}}"> {{ end }} - {{ else }} - <link rel="stylesheet" href="css/{{ .Site.Params.themeStyle }}-style.css"> + <link rel="stylesheet" href="css/{{ .Site.Params.themeStyle | default "dark" }}-style.css"> {{range .Site.Params.extraCSSFiles}} <link rel="stylesheet" href="{{.}}"> {{end}} {{ end }} +<!-- Custom css --> +{{ range .Site.Params.customCSS -}} + <link rel="stylesheet" href="{{ . | absURL }}"> +{{- end }} + <!-- Icon --> <link rel="shortcut icon" {{ if .Site.Params.faviconFile }} |