From 9a94d343d85efeac1cd902500c92f6fb95f3a452 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julia=20Ha=C3=9F?= <hulia.jass@gmail.com>
Date: Wed, 25 Sep 2024 13:19:13 +0000
Subject: [PATCH] debug: image path

---
 layouts/single.html | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 layouts/single.html

diff --git a/layouts/single.html b/layouts/single.html
new file mode 100644
index 0000000..dcd843f
--- /dev/null
+++ b/layouts/single.html
@@ -0,0 +1,22 @@
+{{ define "main" }}
+    <header>
+        <h2>{{ .Title }}</h2>
+        <p>{{ .Description }}</p>
+        {{ if .Site.Params.show_post_dates | default true }}
+            {{- with .Date }}<time>{{ . | time.Format ":date_medium" }}</time>{{ end }}
+        {{ end }}
+        {{ partial "tags.html" . }}
+    </header>
+
+    {{ if .Params.image }}
+        <span class="image featured">
+        {{ if .Resources.Get .Params.image }}
+            <img src="{{ (.Resources.Get .Params.image).RelPermalink }}" />
+        {{ else }}
+            <img src="{{ .Params.image | relURL }}" />
+    {{ end }}
+    </span>
+{{ end }}
+
+    {{- .Content }}
+{{ end }}
-- 
GitLab