diff options
| author | roninro <liumy.f@foxmail.com> | 2022-07-30 17:58:24 +0800 |
|---|---|---|
| committer | roninro <liumy.f@foxmail.com> | 2022-07-30 17:58:24 +0800 |
| commit | c33c9f2eb2f18a461037a56b532cc50130b2706b (patch) | |
| tree | 80314b6b2e5975b2ac8cb9bf0bd9443a216587fc /layouts/_default/baseof.html | |
| parent | bd0c6456bcd5c3a8213f631ec489f4952a6fe3ee (diff) | |
RelPermalink
Diffstat (limited to 'layouts/_default/baseof.html')
| -rw-r--r-- | layouts/_default/baseof.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index a57646a..dc22bdc 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -31,10 +31,10 @@ {{ $options := (dict "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction) "includePaths" (slice "sass")) }} {{ $style := resources.Get "sass/main.scss" | resources.ToCSS $options }} - <link rel="stylesheet" href="{{ $style.Permalink }}"> + <link rel="stylesheet" href="{{ $style.RelPermalink }}"> {{ $zoom_css := resources.Get "zoomjs/zoom.css" | resources.Minify }} - <link rel="stylesheet" href="{{ $zoom_css.Permalink }}"> + <link rel="stylesheet" href="{{ $zoom_css.RelPermalink }}"> {{ range .Site.Params.custom_css -}} @@ -54,7 +54,7 @@ {{ end }} {{ range .AlternativeOutputFormats -}} - {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} {{ end -}} </head> |
