diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-07-01 14:39:08 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-07-01 14:39:08 +0300 |
commit | b06c60c1f4d135ec3168593d0d3a5435170f5fbe (patch) | |
tree | 3f5ed89530ea87fe87d340c8d07c502bb03dc246 | |
parent | 0ece79653400f09582d803c3e09c3dcde9e87f05 (diff) |
Add theme warnings etc.restructure-21
-rw-r--r-- | layouts/_default/thumbnail.html | 13 | ||||
-rw-r--r-- | 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" }} <a href="{{ $.Permalink }}" class="link db shadow-hover gray mb4 w-100 w-30-ns"> <img class="lazyload fit db ba b--moon-gray" alt="{{ $.Description }}" src="data:image/svg+xml;charset=utf8,%3Csvg%20width='1800'%20height='1200'%20viewBox='0%200%201800%201200'%20xmlns='http://www.w3.org/2000/svg'%3E%3Ctitle%3EThumbnail%3C/title%3E%3Cg%20fill='none'%20fill-rule='evenodd'%3E%3Cpath%20fill='%23FFF'%20d='M0%200h1800v1200H0z'/%3E%3Ctext%20opacity='0.5'%20font-family='Muli,%20avenir,helvetica%20neue,helvetica,ubuntu,roboto,noto,segoe%20ui,arial,sans-serif'%20font-size='288'%20fill='#0594CB'%3E%3Ctspan%20x='468'%20y='674'%3EHUGO%3C/tspan%3E%3C/text%3E%3C/g%3E%3C/svg%3E" data-sizes="auto" @@ -10,6 +9,8 @@ <noscript> <img class="fit db ba b--moon-gray" alt="{{ $.Description }}" srcset="{{ $small.RelPermalink }} 1x, { $big.RelPermalink }} 2x" /> </noscript> - <span class="f6 dark-gray w-100 db">{{replace $.Params.name "-" " "}}</span> + <span class="f6 dark-gray w-100 db"> + {{ $.Title }} + </span> </a> {{ 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 }} + <p class="w-90 ba br2 pa3 mv8 red bg-washed-red" role="alert"> + <strong> + Note! + </strong> + {{ range . }} + {{ . }} + {{ end }} + <br/> + <br/> + If you are maintainer of this theme, please verify that this theme works with a + <a href="https://github.com/gohugoio/hugo/releases/"> + recent release of Hugo. + </a> + Then add an appropriate + <a href="https://gohugo.io/hugo-modules/configuration/#module-config-hugoversion"> + Version Configuration + </a> + to the theme's + <code>config.toml</code> + and then finally + <a href="https://docs.github.com/en/desktop/contributing-and-collaborating-using-github-desktop/managing-commits/managing-tags#creating-a-tag"> + tag a new version. + </a> + </p> + {{ end }} + </ul> |