feat: improve image handling on weekly issue covers
Updated image handling to use Hugo's image processing for resizing cover images, which enhances performance by serving optimized images. Replaces direct image URL with resource-based URL.
This commit is contained in:
parent
4e42eff681
commit
86de31fcec
1 changed files with 5 additions and 1 deletions
|
@ -10,7 +10,11 @@
|
|||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
||||
<time class="by-line">{{ .Date.Format .Site.Params.dateFormat }}</time>
|
||||
<a href="{{ .RelPermalink }}">
|
||||
<img class="img-lead" src="{{ .RelPermalink }}cover.png" alt="Revuo Monero Weekly #{{ .Params.issuenumber }} cover">
|
||||
{{ $image := .Resources.Get "cover.png" }}
|
||||
{{ $image := $image.Resize "650x" }}
|
||||
{{ with $image }}
|
||||
<img class="img-lead" src="{{ $image.RelPermalink }}" alt="Revuo Monero Weekly #{{ .Params.issuenumber }} cover">
|
||||
{{ end }}
|
||||
</a>
|
||||
|
||||
{{ $sTitle := split .Params.title ":" }}
|
||||
|
|
Loading…
Reference in a new issue