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

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanzei <Hanzei@users.noreply.github.com>2018-06-10 02:30:15 +0300
committerVicky Lai <vicky@vickylai.com>2018-06-10 02:30:15 +0300
commit45420243599e3899afdec61fef5f835df47d98a0 (patch)
tree14fe56b1384c64d4e84b924a13111d0ba645409b /layouts/partials/header.html
parent71a72311ac2302d6d9632853535d471416923f75 (diff)
Fix rel URLs (#50)
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 1f1b60f..95aeddd 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -34,25 +34,25 @@
{{ end }}
<!-- jQuery -->
-<script type="text/javascript" src={{ "js/jquery-3.3.1.min.js"| absURL }}></script>
+<script type="text/javascript" src="{{ "/js/jquery-3.3.1.min.js" | relURL }}"></script>
<!-- Fonts and icon CSS -->
-<link rel="stylesheet" href={{ "css/font-awesome.min.css" | absURL }}>
-<link rel="stylesheet" href={{ "css/nunito_sans.css" | absURL }}>
+<link rel="stylesheet" href="{{ "/css/font-awesome.min.css" | relURL }}">
+<link rel="stylesheet" href="{{ "/css/nunito_sans.css" | relURL }}">
{{ if .Site.Params.cacheBuster }}
<link rel="stylesheet" href="{{ (printf "css/%s-style.css?t=%d" (.Site.Params.themeStyle | default "dark") now.Unix) |relURL }}">
{{ else }}
- <link rel="stylesheet" href="{{ (printf "css/%s-style.css" .Site.Params.themeStyle | default "dark") | absURL }}">
+ <link rel="stylesheet" href="{{ (printf "css/%s-style.css" .Site.Params.themeStyle | default "dark") | relURL }}">
{{ end }}
<!-- Custom css -->
{{ range .Site.Params.customCSS -}}
- <link rel="stylesheet" href="{{ . | absURL }}">
+ <link rel="stylesheet" href="{{ . | relURL }}">
{{- end }}
<!-- Icon -->
-<link rel="shortcut icon" href="{{ .Site.Params.faviconFile | default "img/favicon.ico" | absURL }}">
+<link rel="shortcut icon" href="{{ .Site.Params.faviconFile | default "img/favicon.ico" | relURL }}">
<!-- Google Analytics -->
{{ template "_internal/google_analytics_async.html" . }}