From 45ffcbf9f40777804286024e1df82126646a0d93 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 12 Jul 2020 19:48:55 +0530 Subject: [PATCH] [skip prod] use hugo-social-metadata for Twitter cards Signed-off-by: Harsh Shandilya --- layouts/_default/baseof.html | 59 ++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 layouts/_default/baseof.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..f1f95f6 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,59 @@ + + + + + {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }} + + + + + + + + + + + {{ partial "social_metadata.html" . }} + + + + + {{ block "styles" . }} {{ end }} + {{ $base_styles_opts := .Scratch.Get "style_opts" | default (dict "src" "scss/pages/about.scss" "dest" "css/about.css") }} + {{ $custom_styles_opts := (dict "src" "scss/custom.scss" "dest" "css/custom.css") }} + + {{ $current_page := . }} + + {{ range (slice $base_styles_opts $custom_styles_opts) }} + {{ $style := resources.Get .src | resources.ExecuteAsTemplate .dest $current_page | toCSS | minify | fingerprint }} + + {{ end }} + + {{ range .AlternativeOutputFormats }} + {{ printf `` .Rel .MediaType.Type .MediaType.Suffix .Permalink $.Site.Title | safeHTML }} + {{ end }} + {{ block "links" . }} {{ end }} + {{ partial "seo-schema.html" .}} + + {{- if not .Site.IsServer -}} + {{ template "_internal/google_analytics_async.html" . }} + {{- end -}} + + + + {{ partial "burger.html" .}} + + {{ partial "nav.html" .}} + +
+ {{ block "main" . }} {{ end }} +
+ + {{ block "footer" . }} {{ end }} + + {{ $script := resources.Get "js/index.js" | minify | fingerprint }} + + {{ block "scripts" . }} {{ end }} + + +