diff options
Diffstat (limited to 'themes/simple/layouts/_default')
| -rw-r--r-- | themes/simple/layouts/_default/_markup/render-image.html | 8 | ||||
| -rw-r--r-- | themes/simple/layouts/_default/single.html | 4 |
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 | ||
