{{ 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 }}