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

github.com/htdvisser/hugo-base16-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorh3ndrik <hendrik+dev@xd0.de>2018-03-28 23:08:10 +0300
committerGitHub <noreply@github.com>2018-03-28 23:08:10 +0300
commit48cacd5ad4d0253f96a2cb4a5a501bd5938dc4bc (patch)
tree6bb143953b502875b29647f2a7d55776acb03977
parentede09814bb87cd1c94761f6121e9d1eebce57ba9 (diff)
use path of baseURL when loading resources
the baseURL can contain a path. in such a case a leading slash will remove that and try to load the resources from the top level.
-rw-r--r--layouts/partials/header.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 579548d..f6661cc 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -7,9 +7,9 @@
<meta name="author" content="{{ .Site.Params.author }}">
{{ .Hugo.Generator }}
<meta name="viewport" content="width=device-width, initial-scale=1">
-<link rel="stylesheet" href="{{ "/css/style.css" | absURL }}" type="text/css">
+<link rel="stylesheet" href="{{ "css/style.css" | absURL }}" type="text/css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700" type="text/css">
-<link rel="alternate" href="{{ "/index.xml" | absURL }}" type="application/rss+xml" title="{{ .Site.Title }}">
+<link rel="alternate" href="{{ "index.xml" | absURL }}" type="application/rss+xml" title="{{ .Site.Title }}">
<title>{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}</title>
</head>
<body>