From 0ece79653400f09582d803c3e09c3dcde9e87f05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 29 Jun 2021 20:03:56 +0200 Subject: Misc fixes re new structure --- layouts/partials/theme-buttons.html | 42 ++++++------ layouts/partials/theme-details.html | 129 ++++++++++++++++++++++++------------ 2 files changed, 110 insertions(+), 61 deletions(-) diff --git a/layouts/partials/theme-buttons.html b/layouts/partials/theme-buttons.html index efc4c5d..48121b6 100644 --- a/layouts/partials/theme-buttons.html +++ b/layouts/partials/theme-buttons.html @@ -1,23 +1,25 @@ {{ $buttonClasses := "bg-accent-color br2 hover-bg-primary-color hover-light-gray link ph3 pv2 white"}}
- {{ with .Params.source}} - Download - {{ end }} - - {{ with .Params.demo }} - Demo - {{ end }} - {{ $noHomePage := . }} - {{ with .Site.Params.noHomePage }} - {{ range . }} - {{ $noHomePage = . }} - {{ end }} - {{ end }} - {{ if not (in .Permalink $noHomePage) }} - {{ with .Params.homepage}} - Homepage - {{ end }} - {{ end }} - - + {{/* TODO(bep) source for non-GitHub themes */}} + {{ with .Params.githubInfo}} + + + Download + + {{ end }} + + {{ with .Params.meta.demosite }} + + + Demo + + {{ end }} + + {{ with .Params.meta.homepage}} + + + Homepage + + {{ end }} +
diff --git a/layouts/partials/theme-details.html b/layouts/partials/theme-details.html index 1ed1888..b9ab39d 100644 --- a/layouts/partials/theme-details.html +++ b/layouts/partials/theme-details.html @@ -1,7 +1,11 @@

{{ .Title }}

-{{ with .Params.meta.description }}

{{ . }}

{{ end }} +{{ with .Params.meta.description }} +

+ {{ . }} +

+{{ end }} -- cgit v1.2.3