` -}} - {{- $REout = `
` -}} - {{- $content = replaceRE $REin $REout $content -}} - - {{- $content | safeHTML -}} + {{- partial "hook/content.html" .Content | safeHTML -}}
From 8aba2262906628f38f114a9947783bc6c7fd7495 Mon Sep 17 00:00:00 2001
From: Dillon ` -}}
- {{- $REout = ` ` -}}
- {{- $content = replaceRE $REin $REout $content -}}
-
- {{- $content | safeHTML -}}
+ {{- partial "hook/content.html" .Content | safeHTML -}}
+ {{- $loading := resources.Get "svg/loading.svg" | minify -}}
+
+ {{- $image := $.Params.featured_image_preview | default . -}}
+ {{- partial "image" $image -}}
{{ .Title }}
@@ -40,17 +40,7 @@
{{- .Params.description -}}
` -}} +{{- $REout = `
` -}}
+
+{{- return replaceRE $REin $REout $content -}}
\ No newline at end of file
diff --git a/layouts/partials/image.html b/layouts/partials/image.html
new file mode 100644
index 0000000..e58f319
--- /dev/null
+++ b/layouts/partials/image.html
@@ -0,0 +1,2 @@
+{{- $res := resources.Get "svg/loading.svg" | minify -}}
+
\ No newline at end of file
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index 93799af..b7fe249 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -39,8 +39,7 @@
{{- with .Params.featured_image -}}
` -}} - {{- $REout = `
` -}} - {{- $content = replaceRE $REin $REout $content -}} - - {{- $content | safeHTML -}} + {{- partial "hook/content.html" .Content | safeHTML -}}