diff options
author | h3ndrik <hendrik+dev@xd0.de> | 2018-03-28 23:08:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-28 23:08:10 +0300 |
commit | 48cacd5ad4d0253f96a2cb4a5a501bd5938dc4bc (patch) | |
tree | 6bb143953b502875b29647f2a7d55776acb03977 | |
parent | ede09814bb87cd1c94761f6121e9d1eebce57ba9 (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.html | 4 |
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> |