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

github.com/yihui/hugo-xmag.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMollee Jain <mjain2@wellesley.edu>2022-08-08 17:46:43 +0300
committerGitHub <noreply@github.com>2022-08-08 17:46:43 +0300
commitee94952fda389cbbeb339e585e07682753b97915 (patch)
treed8cb882d85c296c50cd98667759b199e2d08111f
parent30558c1dd9d8aa3d345140d1a003ca6fa0b9331d (diff)
Update RelURL for latest Hugo syntax (#22)
Hugo has a change in v0.101.0 for relUrl if there is a slash beforehand. This link for more details: https://github.com/gohugoio/hugo/releases/tag/v0.101.0 and https://github.com/gohugoio/hugo/commit/a5a4422aaeffe0e9df713cf09c73a9cc423a2e1e. Suggesting this change so CSS and related resources load correctly.
-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 8d2df71..1d3b190 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -5,8 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
{{ $.Scratch.Set "Title" (default .Title (index .Site.Params.text (print "title_" (lower .Title)))) }}
<title>{{ if eq ($.Scratch.Get "Title") .Site.Title }}{{ .Site.Title }}{{ else }}{{ ($.Scratch.Get "Title") }} | {{ .Site.Title }}{{ end }}</title>
- <link rel="stylesheet" href="{{ "/css/style.css" | relURL }}" />
- <link rel="stylesheet" href="{{ "/css/fonts.css" | relURL }}" />
+ <link rel="stylesheet" href="{{ "css/style.css" | relURL }}" />
+ <link rel="stylesheet" href="{{ "css/fonts.css" | relURL }}" />
{{ partial "head_custom.html" . }}
</head>