mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 11:46:41 +02:00
Fix the low images and move hq images in the root
This commit is contained in:
@@ -13,12 +13,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="markdown">
|
||||
{{ if .Site.Params.progressively }}
|
||||
{{ $newImage := (print "<figure class=\"progressive\"><img class=\"progressive__img progressive--not-loaded\" data-progressive=\"" .Site.BaseURL "$1/high/$2\" src=\"$1/low/$2\" alt=$3></figure>") }}
|
||||
{{ .Content | replaceRE "<img src=\"/(.*)\\/(.*)\" alt=(.*)>" $newImage | safeHTML }}
|
||||
{{ else }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
{{ partial "content" . }}
|
||||
<br>
|
||||
<p><a href="{{ .Section }}">Back to posts</a></p>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user