diff --git a/exampleSite/static/img/high/startup.jpg b/exampleSite/static/img/startup.jpg similarity index 100% rename from exampleSite/static/img/high/startup.jpg rename to exampleSite/static/img/startup.jpg diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 53fb23e..3731fc2 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,12 +4,7 @@
{{ partial "page-heading.html" . }}
- {{ if .Site.Params.progressively }} - {{ $newImage := (print "
$3
") }} - {{ .Content | replaceRE "(.*)" $newImage | safeHTML }} - {{ else }} - {{ .Content }} - {{ end }} + {{ partial "content" . }}
diff --git a/layouts/blog/single.html b/layouts/blog/single.html index cab6d29..c42db74 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -13,12 +13,7 @@
- {{ if .Site.Params.progressively }} - {{ $newImage := (print "
$3
") }} - {{ .Content | replaceRE "(.*)" $newImage | safeHTML }} - {{ else }} - {{ .Content }} - {{ end }} + {{ partial "content" . }}

Back to posts

diff --git a/layouts/partials/content.html b/layouts/partials/content.html new file mode 100644 index 0000000..10000f9 --- /dev/null +++ b/layouts/partials/content.html @@ -0,0 +1,6 @@ +{{ if .Site.Params.progressively }} + {{ $newImage := (print "
$3
") }} + {{ .Content | replaceRE "(.*)" $newImage | safeHTML }} +{{ else }} + {{ .Content }} +{{ end }} \ No newline at end of file