use partial for referenced <link>
s
This commit is contained in:
parent
fd6fc99ab0
commit
54a41716c6
3 changed files with 108 additions and 77 deletions
|
@ -1,8 +1,7 @@
|
|||
<!doctype html>
|
||||
<!DOCTYPE html>
|
||||
|
||||
{{ partialCached "copying.html" . }}
|
||||
|
||||
|
||||
<html
|
||||
class="h-card"
|
||||
lang="en-gb"
|
||||
|
@ -22,87 +21,20 @@
|
|||
{{- partialCached "head/title.html" ( slice .Site.Title .Site.Params.tagline ) .Site.Title .Site.Params.tagline -}}
|
||||
{{- end -}}
|
||||
|
||||
<link
|
||||
rel="license"
|
||||
href="{{ block "head-license" . }}https://creativecommons.org/publicdomain/zero/1.0/{{ end }}"
|
||||
/>
|
||||
<link
|
||||
class="u-url u-uid"
|
||||
rel="me"
|
||||
href="{{ .Site.Home.Permalink }}"
|
||||
/>
|
||||
<link
|
||||
class="u-email"
|
||||
rel="me"
|
||||
href="mailto:me+bg@bengoldsworthy.net"
|
||||
/>
|
||||
<link
|
||||
class="u-url"
|
||||
rel="me"
|
||||
href="https://github.com/Rumperuu"
|
||||
/>
|
||||
<link
|
||||
class="u-url"
|
||||
rel="me"
|
||||
href="https://news.ycombinator.com/user?id=Rumperuu"
|
||||
/>
|
||||
<link
|
||||
class="u-logo"
|
||||
rel="icon"
|
||||
sizes="192x192"
|
||||
href="/images/icon.png"
|
||||
/>
|
||||
{{- with .Site.Params.keyfile -}}
|
||||
<link
|
||||
class="u-key"
|
||||
rel="author"
|
||||
href="{{ . }}"
|
||||
/>
|
||||
{{- end -}}
|
||||
|
||||
|
||||
<!-- References -->
|
||||
{{- partialCached "head/references.html" ( dict "sc" $ "pc" . ) -}}
|
||||
<link
|
||||
rel="canonical"
|
||||
href="{{ .Permalink }}"
|
||||
href="{{- .Permalink -}}"
|
||||
/>
|
||||
|
||||
{{ with .OutputFormats.Get "rss" -}}
|
||||
{{- with .OutputFormats.Get "rss" -}}
|
||||
<link
|
||||
rel="{{ .Rel }}"
|
||||
type="{{ .MediaType.Type | html }}"
|
||||
href="{{ .RelPermalink }}"
|
||||
title="{{ $.Site.Title | safeHTML }}"
|
||||
/>
|
||||
{{- end }}
|
||||
|
||||
|
||||
<link
|
||||
href="/css/sanitize.css"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
{{- $mainStylesheet := resources.Get "css/main.scss" }}
|
||||
{{- $mainStylesheet := $mainStylesheet | css.Sass | resources.Fingerprint }}
|
||||
<link
|
||||
rel="stylesheet"
|
||||
type="text/css"
|
||||
href="{{ $mainStylesheet.Permalink }}"
|
||||
integrity="{{ $mainStylesheet.Data.Integrity | html }}"
|
||||
/>
|
||||
{{- $printStylesheet := resources.Get "css/print.scss" }}
|
||||
{{- $printStylesheet := $printStylesheet | css.Sass | resources.Fingerprint }}
|
||||
<link
|
||||
rel="stylesheet"
|
||||
media="print"
|
||||
href="{{ $printStylesheet.Permalink }}"
|
||||
integrity="{{ $printStylesheet.Data.Integrity | html }}"
|
||||
/>
|
||||
{{- $feedsStylesheet := resources.Get "css/feeds.scss" }}
|
||||
{{- $feedsStylesheet := $feedsStylesheet | css.Sass }}
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="{{ $feedsStylesheet.Permalink }}"
|
||||
/>
|
||||
|
||||
{{- end -}}
|
||||
{{- if .Param "math" -}}
|
||||
{{- partialCached "head/math.html" . -}}
|
||||
{{- end -}}
|
||||
|
@ -113,10 +45,9 @@
|
|||
</head>
|
||||
|
||||
<body class="site-container site-container{{ block "main-class" . }}layouts-default-baseof{{ end }}">
|
||||
{{ block "header" . -}}
|
||||
{{- block "header" . -}}
|
||||
{{- partialCached "header/site-header.html" . -}}
|
||||
{{- end }}
|
||||
|
||||
{{- end -}}
|
||||
|
||||
<article
|
||||
class="{{ block "article-class" . }}h-entry{{ end }}site-content site-content{{ block "main-class" . }}{{ end }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue