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

github.com/kakawait/hugo-tranquilpeak-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaud Lepretre <thibaud.lepretre@gmail.com>2017-09-18 16:37:43 +0300
committerGitHub <noreply@github.com>2017-09-18 16:37:43 +0300
commit47de9aec79e2c8d9ac8290418160f0d2d3247961 (patch)
treefa4c43080639e0b0ca116021331220cc17fdaea6 /layouts/partials/head.html
parent2bc1cf2ef1607b7e865f91653b616bd4eaf38232 (diff)
parenta7a79373593da528f09ca1060938c705fddee699 (diff)
Merge pull request #200 from dojineko/fix-custom-css
Fix customCSS, and update exampleSite
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 6b29de4..146b9eb 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -93,7 +93,7 @@
<!--STYLES END-->
{{ range .Site.Params.customCSS }}
{{ if isset . "href" }}
- <link{{ range $key, $value := . }} {{ if eq $key "href" }}{{ (printf "%s=\"%s\"" $key ($value | absURL)) | safeHTMLAttr }}{{ else }}{{ (printf "%s=\"%s\"" $key (string $value)) | safeHTMLAttr }}{{ end }}{{ end }}></script>
+ <link {{ if not (isset . "rel") }}rel="stylesheet" {{ end }}{{ range $key, $value := . }} {{ if eq $key "href" }}{{ (printf "%s=\"%s\"" $key ($value | absURL)) | safeHTMLAttr }}{{ else }}{{ (printf "%s=\"%s\"" $key (string $value)) | safeHTMLAttr }}{{ end }}{{ end }}>
{{ else }}
<link rel="stylesheet" href="{{ . | absURL }}">
{{ end }}