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

github.com/Track3/hermit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTong Wu <tongwu@live.com>2019-10-27 13:23:28 +0300
committerTrack3 <34504964+Track3@users.noreply.github.com>2019-10-27 13:23:28 +0300
commitf6d80e44076044113cfcd5e55df2550a2daadc5a (patch)
tree002736cea53262cb88ba0d8313d5509c94f84b16
parent91a18a1a92332d3cdfd071b5532716477788e107 (diff)
Fix redundant .MediaType.Suffix (#100)
Fix alternative output formats list: * Fix redundant .MediaType.Suffix * Correct `title` attribute value to page title
-rw-r--r--layouts/_default/baseof.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 6d312b6..7f09c90 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -13,7 +13,7 @@
{{- partial "favicons.html" }}
<title>{{.Title}}</title>
{{ range .AlternativeOutputFormats -}}
- {{ printf `<link rel="%s" type="%s+%s" href="%s" title="%s" />` .Rel .MediaType.Type .MediaType.Suffix .Permalink $.Site.Title | safeHTML }}
+ {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Title | safeHTML }}
{{ end -}}
{{ $style := resources.Get "scss/style.scss" | resources.ExecuteAsTemplate "css/style.css" . | toCSS | minify | fingerprint -}}
<link rel="stylesheet" href="{{ $style.Permalink }}" {{ printf "integrity=%q" $style.Data.Integrity | safeHTMLAttr }} crossorigin="anonymous">