{{ define "title" }}{{ .Title }} - Theme Info{{ end }} {{ define "header_css" }}{{ end }} {{ define "body_classes" }}page-default-single{{ 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 "meta_description" }} {{ $themes := (where .Site.RegularPages "Type" "theme") }} {{ $themes := (where $themes ".Params.draft" "!=" true) }} {{ $themes := (where $themes ".Params.stale" "!=" true) }} {{ $themes := (where $themes ".Params.disabled" "!=" true) }} {{ $themeCount := len $themes}} {{ 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 }}

{{ .Params.description }}

{{ if .Params.ssg }} {{- range .Params.ssg }} {{- with $.Site.GetPage "taxonomyTerm" (printf "ssg/%s" (urlize .)) }} {{ partial "icons/icon-link-card.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-card.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-card.html" (dict "name" .Page.Title "icon" .Page.Params.icon "link" .Page.Permalink) }} {{ end }} {{ end }} {{ end }} {{ end }} {{ if .Params.archetype }} {{- range .Params.archetype }} {{- with $.Site.GetPage "taxonomyTerm" (printf "archetype/%s" (urlize .)) }} {{ if eq .Page.Title "No archetype" }} {{ else }} {{ partial "icons/icon-link-card.html" (dict "name" .Page.Title "icon" .Page.Params.icon "link" .Page.Permalink) }} {{ end }} {{ end }} {{ end }} {{ end }}
{{ partial "labels/label-author.html" (dict "author" .Params.author) }} {{ if $repo }}{{ partial "labels/label-stars.html" (dict "stars" $repo.stars) }}{{ end }} {{ if $repo }}{{ partial "labels/label-last-commit.html" (dict "last_commit" $repo.last_commit) }}{{ end }}
Github Demo {{ if .Site.Params.stackbit_button }} {{ if .Params.stackbit }} Create Site {{ else if $stackbit }} {{ if $stackbit.createUrl }} Create Site {{ end }} {{ end }} {{ end }}
{{ 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) }} {{ .Title }} screenshot {{ end }} {{ end }}
{{ .Content }}
{{ end }}