未验证 提交 54447390 编写于 作者: A Alexandros 提交者: GitHub

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
上级 49df4b23
{{ $img := (.Resources.ByType "image").GetMatch "*tn*" }} {{ $img := (.Resources.ByType "image").GetMatch "*tn*" }}
{{ if eq $.Params.name "Academic" }}{{ $img = (.Resources.ByType "image").GetMatch "*screenshot*" }}{{ end }}
{{ with $img }} {{ with $img }}
{{ $big := .Fill "768x512 top" }} {{ $big := .Fill "768x512 top" }}
{{ $small := .Fill "384x256 top" }} {{ $small := .Fill "384x256 top" }}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册