From 8a6d1516ec3de3598679b79a6228e5e510cf3253 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Sun, 1 Jan 2023 17:21:53 +0100 Subject: [PATCH] layout fixes --- layouts/_default/post.html | 2 +- layouts/index.html | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/layouts/_default/post.html b/layouts/_default/post.html index ca2566e7..3261d076 100644 --- a/layouts/_default/post.html +++ b/layouts/_default/post.html @@ -6,7 +6,7 @@
  • {{ .Params.Author | title }}
  • -

    {{ .Title }}

    +

    {{ .Title | truncate 20 }}

    {{ .Summary | truncate 100 }}

    {{ i18n "read_more" }} diff --git a/layouts/index.html b/layouts/index.html index 0ac4dcce..d72e25d1 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -61,8 +61,8 @@ {{- $isimg := lower .Name | findRE "\\.(gif|jpg|jpeg|tiff|png|bmp|webp|avif|jxl|svg)" }} {{- if $isimg }} {{- $linkURL := print "/media/logos/start" "/" .Name | absURL }} -
    - about image +
    +
    {{- end }} {{- end }} @@ -87,8 +87,8 @@ {{ end }}
    {{ with .image }} -
    - about image +
    +
    {{ end }}
    @@ -212,7 +212,7 @@ -
    +
    {{ with .Site.GetPage "/termine/_index.md" }} @@ -223,8 +223,6 @@ {{ end }} {{ end }} - - {{ range first 3 $events }}
  • {{ time.Format "2" .date}} {{ time.Format "Jan 2006" .date}} {{ with .enddate }}
    bis {{ time.Format "2 Jan 2006" . }} {{end}}
    @@ -266,7 +264,7 @@
  • {{ with .image }}
    - about image +
    {{ end }}
    @@ -284,7 +282,7 @@ {{- if $isimg }} {{- $linkURL := print "/media/logos" "/" .Name | absURL }}
    - about image +
    {{- end }} {{- end }}