diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 5f8e2ec..e18753f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,11 +1,11 @@ - - {{- partial "head.html" . -}} - - {{- partial "header.html" . -}} -
- {{- block "main" . }}{{- end }} -
- {{- partial "footer.html" . -}} - + +{{ partial "head.html" . }} + + {{ partial "header.html" . }} +
+ {{ block "main" . }}{{ end }} +
+ {{ partial "footer.html" . }} + diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 9cc2edb..ef86ba7 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,10 +1,12 @@ - - + + + - - - - + + + + -{{ partial "social_metadata.html" . }} -{{ partial "style.html" . }} + {{ partial "social_metadata.html" . }} + {{ partial "style.html" . }} + diff --git a/layouts/partials/social_metadata.html b/layouts/partials/social_metadata.html index fef9cba..09b4ca4 100644 --- a/layouts/partials/social_metadata.html +++ b/layouts/partials/social_metadata.html @@ -1,47 +1,49 @@ - - -{{ if .Site.Params.TwitterCardType }} - -{{ else }} - -{{ end }} -{{ if .Site.Params.TwitterUsername }} - -{{ end }} -{{ if .IsHome }} -{{ .Site.Title }} - - - - - - - - - - -{{ else }} -{{ .Title }} · {{ .Site.Title }} - -{{ if .Params.tags }} - -{{ else }} - -{{ end }} - - - -{{ if .Description }} - - -{{ else }} - - -{{ end }} - -{{ if .Params.SocialImage }} - -{{ else }} - -{{ end }} -{{ end }} +{{/* https://github.com/msfjarvis/hugo-social-metadata */}} + + + + {{ if .Site.Params.TwitterCardType }} + + {{ else }} + + {{ end }} + {{ if .Site.Params.TwitterUsername }} + + {{ end }} + {{ if .IsHome }} + {{ .Site.Title }} + + + + + + + + + + + {{ else }} + {{ .Title }} · {{ .Site.Title }} + + {{ if .Params.tags }} + + {{ else }} + + {{ end }} + + + + {{ if .Description }} + + + {{ else }} + + + {{ end }} + + {{ if .Params.SocialImage }} + + {{ else }} + + {{ end }} + {{ end }} diff --git a/layouts/partials/style.html b/layouts/partials/style.html index 0c6f53f..e4dbc70 100644 --- a/layouts/partials/style.html +++ b/layouts/partials/style.html @@ -1,2 +1,2 @@ -{{ $style := resources.Get "styles/main.sass" | toCSS | minify | fingerprint }} - + {{ $style := resources.Get "styles/main.sass" | toCSS | minify | fingerprint }} +