aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-22 02:30:57 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-22 02:30:57 +0300
commitad07cd42129f30f1b2a2af53ea887d6664a7dc4a (patch)
tree7465c3a20e120bee1ddf388138efcaaefdcac35a
parentbc84ab71a602abe47feff1c31c1c989cbd87f6c2 (diff)
Auto-commit 2024-12-22
-rw-r--r--assets/css/main.css4
-rw-r--r--layouts/_default/_markup/render-image.html5
-rw-r--r--layouts/index.html2
3 files changed, 7 insertions, 4 deletions
diff --git a/assets/css/main.css b/assets/css/main.css
index 7f0f96c..d158288 100644
--- a/assets/css/main.css
+++ b/assets/css/main.css
@@ -257,3 +257,7 @@ h1.post-title a {
.hidden {
display: none !important;
}
+
+.imgcover {
+ max-width: 800px
+} \ No newline at end of file
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html
index 3d15a11..a36828f 100644
--- a/layouts/_default/_markup/render-image.html
+++ b/layouts/_default/_markup/render-image.html
@@ -1,11 +1,10 @@
<figure class="figure">
<a href="{{ .Destination | safeURL }}">
<img
- class="d-block img-fluid mb-2 rounded border shadow"
- max-width="800"
+ class="d-block img-fluid mb-2 rounded border shadow imgcover"
loading="lazy"
src="{{ .Destination | safeURL }}"
- {{- with .Text }} alt="{{ . }}"{{ end -}}
+ {{- if .Text}} alt="{{ .Text }}"{{ else }} alt="{{.Title}}"{{ end -}}
{{- with .Title }} title="{{ . }}"{{ end -}}
>
</a>
diff --git a/layouts/index.html b/layouts/index.html
index 3c1a604..014561c 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -6,7 +6,7 @@
<h1 class="post-title fw-semibold">
{{ .Title }}
</h1>
- <img src="{{.Site.Params.Logo}}" />
+ <img src="{{.Site.Params.Logo}}" alt="{{.Site.Title}}">
{{ .Content }}
<a href="/feed/" class="btn btn-primary">{{ partial "icon.html" "rss" }} Подписка</a>
{{ end }}