diff --git a/content/blog/_index.adoc b/content/blog/_index.adoc deleted file mode 100644 index f1eeac4..0000000 --- a/content/blog/_index.adoc +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: Blog ---- - -= Blog - - diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 7b7b9c0..793fbb4 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,6 +1,9 @@ - {{- partial "head.html" . -}} + + {{- partial "head.html" . -}} + {{- partial "head_extended.html" . -}} + {{- partial "components/theme-button.html" . }} {{- partial "header.html" . -}} diff --git a/layouts/partials/head.html b/layouts/partials/head.html deleted file mode 100644 index f18eccb..0000000 --- a/layouts/partials/head.html +++ /dev/null @@ -1,74 +0,0 @@ -{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ $.Site.Title }} - -{{- $stylesheets := slice }} - - -{{- $main := resources.Get "scss/main.scss" | resources.ToCSS }} - -{{- /* Combine all of the custom schems in under one stylesheet */ -}} -{{ $scheme_template := resources.Get "templates/theme.scss" }} -{{- $themes := $scheme_template | resources.ExecuteAsTemplate "css/themes.css" . | resources.ToCSS }} -{{- $prism := resources.Get "css/prism.css" -}} - -{{- /* Append the main stylesheet to be the last so the resulting stylesheet will make the custom colorschemes at the front. */ -}} -{{ $stylesheets = $stylesheets | append $themes $prism $main }} - -{{ $style := $stylesheets | resources.Concat "css/main.css" }} - -{{- /* Only enable asset bundling in production */ -}} -{{- if hugo.IsProduction }} - {{- $style = $style | resources.Minify | resources.Fingerprint -}} -{{- end }} - - - - -{{- /* Some sane tags default */ -}} -{{ hugo.Generator }} - - -{{- with .Site.Author }} -{{- $names := slice }} -{{- range . }}{{ $names = $names | append .name }}{{ end }} - -{{- end }} - - - - -{{- template "_internal/twitter_cards.html" . }} -{{- template "_internal/opengraph.html" . }} - - -{{- /* Linking all of the output formats for discovery. */ -}} -{{- range .OutputFormats }} -{{- printf "" .Rel .MediaType.Type .Permalink | safeHTML }} -{{- end }} - - -{{- if hugo.IsProduction }} - {{ template "_internal/google_analytics_async.html" . }} - {{ template "_internal/disqus.html" . }} -{{- end }} - - -{{- /* Persistent theme. -It's a very small script so there's little effect on perceived performance. */ -}} - - -{{- /* Here's where the customized version should be. */ -}} -{{- /* Prism.js */ -}} - - - - - -{{- /* medium-zoom */ -}} - - - diff --git a/layouts/partials/head_extended.html b/layouts/partials/head_extended.html new file mode 100644 index 0000000..e7d01b0 --- /dev/null +++ b/layouts/partials/head_extended.html @@ -0,0 +1,11 @@ +{{- /* Here's where the customized version should be. */ -}} +{{- /* Prism.js */ -}} + + + + + +{{- /* medium-zoom */ -}} + + +