diff options
author | Alexandros <onedrawingperday@users.noreply.github.com> | 2020-05-11 12:02:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-11 12:02:17 +0300 |
commit | 54447390b5d70192fb1386c9c80aac54cf48c55c (patch) | |
tree | 328497e92ffd3bb8f52f3c79fa946d9ca8c3aee3 | |
parent | 49df4b23039fa1cf15ef82868353a184f0293902 (diff) |
Disable Academic theme thumbnail
A week ago I opened https://github.com/gcushen/hugo-academic/issues/1684 to request the removal of a slogan and device mock-ups from the theme's thumbnail. The author has not addressed the issue one week later. Therefore with this commit I am disabling `tn.png` for the Academic theme and instead use its `screenshot.png` (that does not contain the slogan and the mock-ups) for the Themes Site.
Whenever the author responds this commit will be reverted.
cc: @bep @digitalcraftsman
-rw-r--r-- | layouts/_default/thumbnail.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/_default/thumbnail.html b/layouts/_default/thumbnail.html index df36783..8efbad7 100644 --- a/layouts/_default/thumbnail.html +++ b/layouts/_default/thumbnail.html @@ -1,4 +1,5 @@ {{ $img := (.Resources.ByType "image").GetMatch "*tn*" }} + {{ if eq $.Params.name "Academic" }}{{ $img = (.Resources.ByType "image").GetMatch "*screenshot*" }}{{ end }} {{ with $img }} {{ $big := .Fill "768x512 top" }} {{ $small := .Fill "384x256 top" }} |