Fix the low images and move hq images in the root

This commit is contained in:
Alexis Tacnet
2017-03-07 13:14:33 +01:00
parent c88e713278
commit 424119cbb0
4 changed files with 8 additions and 12 deletions

View File

@@ -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>