jlelse
/
Indieroad
Archived
1
Fork 0

Don't embed CSS in HTML

This commit is contained in:
Jan-Lukas Else 2020-03-03 19:42:10 +01:00
parent 262e6bd95a
commit 76b0779f00
2 changed files with 4 additions and 5 deletions

View File

@ -10,9 +10,8 @@
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/schema.html" . }}
{{ template "_internal/twitter_cards.html" . }}
<style>
{{ with resources.Get "css/style.scss" | resources.ToCSS | minify }}{{ .Content | safeCSS }}{{ end }}
</style>
{{ $styles := resources.Get "css/style.scss" | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}">
<link rel="shortcut icon" href="{{ .Site.Params.favicon }}">
{{ range .AlternativeOutputFormats }}
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">

View File

@ -5,12 +5,12 @@
{{ end }}
{{ if not .Date.IsZero }}
<div class="item">
<time class="dt-published" datetime="{{.Date.Format "2006-01-02 15:04"}}"><a class="u-url" href="{{ .RelPermalink }}">{{.Date.Format ( .Site.Params.dateformat | default "January 02, 2006")}}</a></time>
<time class="dt-published" datetime="{{.Date.Format "2006-01-02T15:04:05Z07:00"}}"><a class="u-url" href="{{ .RelPermalink }}">{{.Date.Format ( .Site.Params.dateformat | default "January 02, 2006")}}</a></time>
</div>
{{ end }}
{{ if ne .Date .Lastmod }}
<div class="item">
<time class="dt-updated" datetime="{{.Lastmod.Format "2006-01-02 15:04"}}">{{ T "meta_lastmod" }}: {{.Lastmod.Format ( .Site.Params.dateformat | default "January 02, 2006")}}</time>
<time class="dt-updated" datetime="{{.Lastmod.Format "2006-01-02T15:04:05Z07:00"}}">{{ T "meta_lastmod" }}: {{.Lastmod.Format ( .Site.Params.dateformat | default "January 02, 2006")}}</time>
</div>
{{ end }}
{{ with .Param "indieweb.reply" }}