` -}} - {{- $REout = `
` -}} - {{- $content = replaceRE $REin $REout $content -}} - - {{- $content | safeHTML -}} + {{- partial "hook/content.html" .Content | safeHTML -}}
diff --git a/assets/css/_page/_home.scss b/assets/css/_page/_home.scss
index c0366d9..2f21d4b 100644
--- a/assets/css/_page/_home.scss
+++ b/assets/css/_page/_home.scss
@@ -36,6 +36,7 @@
.home-description {
font-size: 1rem;
font-weight: normal;
+ margin: 0;
padding: .4rem;
}
@@ -43,7 +44,12 @@
padding-top: .6rem;
i {
- font-size: 1.4rem;
+ font-size: 1.45rem;
+ }
+
+ img {
+ width: 1.5rem;
+ height: 1.5rem;
}
}
-}
\ No newline at end of file
+}
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html
index 193374d..c143d1d 100644
--- a/layouts/_default/_markup/render-image.html
+++ b/layouts/_default/_markup/render-image.html
@@ -1,15 +1,6 @@
` -}}
- {{- $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 -}}