{{ define "title" }}{{ .Title }} Theme - Demo, Review and Download from Jamstack.club with ♥{{ 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 $repo }}{{ partial "labels/label-stars.html" (dict "stars" $repo.stars) }}{{ end }} {{ if $repo }}{{ partial "labels/label-forks.html" (dict "forks" $repo.forks) }}{{ end }} {{ if $repo }}{{ partial "labels/label-last-commit.html" (dict "last_commit" $repo.last_commit) }}{{ end }}
{{ partial "theme-cta-buttons.html" . }}

Author Details:

{{ partial "author-details.html" . }}
{{ partial "theme-tags.html" . }}
{{ 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 }}

Live preview

{{ with .Params.demo }} Full screen {{ end }}
{{ partial "theme-cta-buttons.html" . }}
{{ partial "theme-tags.html" . }}
{{- partial "newsletter.html" . -}}
{{ end }}