aboutsummaryrefslogtreecommitdiff
path: root/themes/simple/layouts/_default
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2023-05-27 01:05:49 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2023-05-27 01:05:49 +0200
commiteb2cf9f9476473811178d1c5cfdd71a0293fdff4 (patch)
treeba9896eb3c174a0e8fb6864e5e87fa75bbd421dd /themes/simple/layouts/_default
parent8c88a575c0b7fc44c0c6918738bf8805b047c0be (diff)
downloadmitjafelicijan.com-eb2cf9f9476473811178d1c5cfdd71a0293fdff4.tar.gz
Github Actions note and better rendering of images
Diffstat (limited to 'themes/simple/layouts/_default')
-rw-r--r--themes/simple/layouts/_default/_markup/render-image.html8
-rw-r--r--themes/simple/layouts/_default/single.html4
2 files changed, 10 insertions, 2 deletions
diff --git a/themes/simple/layouts/_default/_markup/render-image.html b/themes/simple/layouts/_default/_markup/render-image.html
new file mode 100644
index 0000000..5da02eb
--- /dev/null
+++ b/themes/simple/layouts/_default/_markup/render-image.html
@@ -0,0 +1,8 @@
1<figure>
2 <a href="{{ .Destination }}" target="_blank">
3 <img
4 loading="lazy"
5 src="{{ .Destination }}"
6 alt="{{ .Text }}" title="{{ .Text }}">
7 </a>
8</figure>
diff --git a/themes/simple/layouts/_default/single.html b/themes/simple/layouts/_default/single.html
index 4489601..77354b7 100644
--- a/themes/simple/layouts/_default/single.html
+++ b/themes/simple/layouts/_default/single.html
@@ -28,13 +28,13 @@
28 {{ end }} 28 {{ end }}
29 29
30 <!-- Comment, contact --> 30 <!-- Comment, contact -->
31 {{ if in .Type "posts" }} 31 {{ if not (eq .Type "pages") }}
32 <section class="mb-10"> 32 <section class="mb-10">
33 {{ partial "comments.html" . }} 33 {{ partial "comments.html" . }}
34 </section> 34 </section>
35 {{ end }} 35 {{ end }}
36 36
37 {{ if in .Type "posts" }} 37 {{ if not (eq .Type "pages") }}
38 <hr class="border-2 border-gray-100 mb-10" /> 38 <hr class="border-2 border-gray-100 mb-10" />
39 {{ end }} 39 {{ end }}
40 40