Skip to content

Commit

Permalink
Fix redundant .MediaType.Suffix (#100)
Browse files Browse the repository at this point in the history
Fix alternative output formats list:
* Fix redundant .MediaType.Suffix
* Correct `title` attribute value to page title
  • Loading branch information
dccxi authored and Track3 committed Oct 27, 2019
1 parent 91a18a1 commit f6d80e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Expand Up @@ -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">
Expand Down

0 comments on commit f6d80e4

Please sign in to comment.