From b06c60c1f4d135ec3168593d0d3a5435170f5fbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 1 Jul 2021 13:39:08 +0200 Subject: Add theme warnings etc. --- layouts/_default/thumbnail.html | 13 +++++++------ layouts/partials/theme-details.html | 27 +++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 6 deletions(-) diff --git a/layouts/_default/thumbnail.html b/layouts/_default/thumbnail.html index df36783..19d2e3f 100644 --- a/layouts/_default/thumbnail.html +++ b/layouts/_default/thumbnail.html @@ -1,8 +1,7 @@ - {{ $img := (.Resources.ByType "image").GetMatch "*tn*" }} - {{ with $img }} - {{ $big := .Fill "768x512 top" }} - {{ $small := .Fill "384x256 top" }} - +{{ $img := (.Resources.ByType "image").GetMatch "*tn*" }} +{{ with $img }} + {{ $big := .Fill "768x512 top" }} + {{ $small := .Fill "384x256 top" }} {{ $.Description }} {{ $.Description }} - {{replace $.Params.name "-" " "}} + + {{ $.Title }} + {{ end }} diff --git a/layouts/partials/theme-details.html b/layouts/partials/theme-details.html index b9ab39d..f3d8c8c 100644 --- a/layouts/partials/theme-details.html +++ b/layouts/partials/theme-details.html @@ -104,4 +104,31 @@ {{ end }} {{ end }} + {{ with .Params.themeWarnings }} + + {{ end }} + -- cgit v1.2.3