{{ define "title" }}{{ .Title }} - Demo{{ end }} {{ define "header_css" }}{{ end }} {{ define "body_classes" }}page-theme-single-demo{{ end }} {{ define "ogmeta" }} {{ $repoName := printf "%s" (substr (replace .Params.github "/" "-") 19 | urlize) }} {{ $repo := index .Site.Data.themes $repoName }} {{ if $repo }} {{ $staticPath := (printf "%s/%s%s" "static/capture" $repo.theme_key ".png") }} {{ $filePath := (printf "%s/%s%s" "capture" $repo.theme_key ".png") }} {{ if (fileExists $staticPath) }} {{ end }} {{ end }} {{end}} {{ define "header" }} {{ end }} {{ define "main" }} {{ $repoName := printf "%s" (substr (replace .Params.github "/" "-") 19 | urlize) }} {{ $repo := index .Site.Data.themes $repoName }} {{ $stackbit := index .Site.Data.stackbit $repoName }}

{{ .Title }}

{{ if .Params.ssg }} {{- range .Params.ssg }} {{- with $.Site.GetPage "taxonomyTerm" (printf "ssg/%s" (urlize .)) }} {{ partial "icons/icon-link.html" (dict "name" .Page.Title "icon" .Page.Params.icon "link" .Page.Permalink) }} {{ end }} {{ end }} {{ end }} {{ if .Params.cms }} {{- range .Params.cms }} {{- with $.Site.GetPage "taxonomyTerm" (printf "cms/%s" (urlize .)) }} {{ if eq .Page.Title "No CMS" }} {{ else }} {{ partial "icons/icon-link.html" (dict "name" .Page.Title "icon" .Page.Params.icon "link" .Page.Permalink) }} {{ end }} {{ end }} {{ end }} {{ end }} {{ if .Params.css }} {{- range .Params.css }} {{- with $.Site.GetPage "taxonomyTerm" (printf "css/%s" (urlize .)) }} {{ if eq .Page.Title "No css" }} {{ else }} {{ partial "icons/icon-link.html" (dict "name" .Page.Title "icon" .Page.Params.icon "link" .Page.Permalink) }} {{ end }} {{ end }} {{ end }} {{ end }}
{{ with .OutputFormats.Get "html" -}} Theme Info {{- end }} Live Demo Source code {{ if .Site.Params.stackbit_button }} {{ if .Params.stackbit }} Create Site {{ else if $stackbit }} {{ if $stackbit.createUrl }} Create Site {{ end }} {{ end }} {{ end }}
{{ end }} {{ define "footer" }} {{ end }}