{{ with .OutputFormats.Get "rss" -}} {{ printf ` ` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} {{ $manifest := resources.Get "manifest.json" }} {{- template "_internal/opengraph.html" . -}} {{- template "_internal/twitter_cards.html" . -}} {{ $.Scratch.Set "title" "" }} {{ if eq (.Param "bear") true }} {{ $.Scratch.Set "title" .File.BaseFileName }} {{ else }} {{ $.Scratch.Set "title" .Title }} {{ end }} {{ $title := $.Scratch.Get "title" }} {{- $siteTitle := ( .Site.Title ) -}} {{- if .IsHome -}} {{ $siteTitle }} {{- else -}} {{ $title }} - {{ $siteTitle }} {{- end -}} {{ $theme := .Param "theme" }} {{ $themeRoute := printf "%s%s%s" "css/themes/" $theme ".css" }} {{ $themeVariables := resources.Get $themeRoute }} {{ $styles := resources.Get "css/style.scss" | toCSS }} {{ $syntax := resources.Get "css/utilities/syntax-light.css"}} {{ $main := slice $themeVariables $styles $syntax | resources.Concat "css/main.css" | minify | fingerprint }} {{ $turbolinks := resources.Get "js/turbolinks.js" }} {{ $thumbnails := resources.Get "js/thumbnails.js" }} {{ $search := resources.Get "js/search.js" }} {{ $.Scratch.Set "jslibs" slice }} {{ $libs := slice "js/turbolinks.js" "js/thumbnails.js" "js/search.js" }} {{ range $libs }} {{ $.Scratch.Add "jslibs" (resources.Get . ) }} {{ end }} {{ $js := .Scratch.Get "jslibs" | resources.Concat "js/main.js" }} {{ if .Site.IsServer }} {{ else }} {{ $js := $js | minify | fingerprint }} {{ end }} {{ partialCached "search.html" . }} {{ partialCached "toolbar.html" . }} {{ partial "tests/main.html" . }}
{{ block "main" . }}{{ end }}