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

@@ -4,12 +4,7 @@
<div class="content">
{{ partial "page-heading.html" . }}
<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" . }}
</div>
</div>
</div>