From 9f7f3444978332a47706134715468347eca12c4f 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 ca2566e..3261d07 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 0ac4dcc..d72e25d 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 }}