aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-15 15:10:57 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-15 15:10:57 +0300
commit314fd719d318ebba7c85e50e621c021179054290 (patch)
treef4c6e2f71bfe0d489933c4ba34d5d04d1ba6d117 /layouts/_default
parent47fc02a8c71af4926148beb5d5cc0fc221aa5429 (diff)
Auto-commit 2024-12-15
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/_markup/render-image.html3
-rw-r--r--layouts/_default/single.html4
2 files changed, 4 insertions, 3 deletions
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html
index b2ccc08..3d15a11 100644
--- a/layouts/_default/_markup/render-image.html
+++ b/layouts/_default/_markup/render-image.html
@@ -1,5 +1,5 @@
<figure class="figure">
-
+<a href="{{ .Destination | safeURL }}">
<img
class="d-block img-fluid mb-2 rounded border shadow"
max-width="800"
@@ -8,6 +8,7 @@
{{- with .Text }} alt="{{ . }}"{{ end -}}
{{- with .Title }} title="{{ . }}"{{ end -}}
>
+</a>
{{- with .Title }}<figcaption class="figure-caption">{{.}}</figcaption>{{end -}}
</figure> \ No newline at end of file
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index c0b1eef..c5f73ba 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,6 +1,6 @@
{{ define "main" }}
-<div class="posts-container mx-auto my-5">
- <div class="post single">
+<div class="container mx-auto my-5">
+ <div class="post">
{{ partial "single/header.html" . }}
<div class="e-content">{{ .Content }}</div>
{{ partial "single/footer.html" . }}