aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
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" . }}