diff options
author | Tong Wu <tongwu@live.com> | 2019-10-27 13:23:28 +0300 |
---|---|---|
committer | Track3 <34504964+Track3@users.noreply.github.com> | 2019-10-27 13:23:28 +0300 |
commit | f6d80e44076044113cfcd5e55df2550a2daadc5a (patch) | |
tree | 002736cea53262cb88ba0d8313d5509c94f84b16 | |
parent | 91a18a1a92332d3cdfd071b5532716477788e107 (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.html | 2 |
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"> |