mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 18:31:45 +01:00
2ad65a4c07
* feat: add option to disable image processing closes https://github.com/CaiJimmy/hugo-theme-stack/issues/37 * refactor(list): use article/components/header inside default.html * refactor: use .Fill for cover image
4 lines
No EOL
230 B
HTML
4 lines
No EOL
230 B
HTML
{{ $image := partialCached "helper/image" (dict "Context" . "Type" "articleList") .RelPermalink "articleList" }}
|
|
<article class="{{ if $image.exists }}has-image{{ end }}">
|
|
{{ partial "article/components/header" . }}
|
|
</article> |