diff options
author | Mollee Jain <mjain2@wellesley.edu> | 2022-08-08 17:46:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-08 17:46:43 +0300 |
commit | ee94952fda389cbbeb339e585e07682753b97915 (patch) | |
tree | d8cb882d85c296c50cd98667759b199e2d08111f | |
parent | 30558c1dd9d8aa3d345140d1a003ca6fa0b9331d (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.html | 4 |
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> |