From 59c6d73145ef72cd697b7e19d7ecf409d5dc6491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Knut=20H=C3=BChne?= Date: Wed, 4 Feb 2026 18:38:17 +0100 Subject: [PATCH] Remove handling of `excerpt` for projects Hugo displayed a warning that the way that we used this in our templates did not actually work: ``` calling IsSet with unsupported type "invalid" ``` We only used this in one project though so I think it should be fine to remove it alltogether. --- content/projekte/2011-12-31-ernteteilen.md | 1 - .../projekte/2014-05-01-portable-linked-profiles.md | 3 --- .../layouts/partials/project-preview.html | 11 +---------- 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/content/projekte/2011-12-31-ernteteilen.md b/content/projekte/2011-12-31-ernteteilen.md index ec2697a53..82c4e0d04 100644 --- a/content/projekte/2011-12-31-ernteteilen.md +++ b/content/projekte/2011-12-31-ernteteilen.md @@ -4,7 +4,6 @@ lab: [berlin] #needed for Aggregation on Lab-Page imgname: berlin/ernteteilen.png title: Ernte Teilen showcase: true -excerpt: links: - url: https://ernte-teilen.org diff --git a/content/projekte/2014-05-01-portable-linked-profiles.md b/content/projekte/2014-05-01-portable-linked-profiles.md index 598844755..c93436ac6 100644 --- a/content/projekte/2014-05-01-portable-linked-profiles.md +++ b/content/projekte/2014-05-01-portable-linked-profiles.md @@ -4,9 +4,6 @@ lab: [berlin] #needed for Aggregation on Lab-Page imgname: berlin/portablelinkedprofiles.png title: Portable Linked Profiles -excerpt: - PLP proposes a pattern for the creation, storage, listing and representation of public profile data. - links: - url: https://github.com/hackers4peace/plp-docs name: Dokumentation diff --git a/themes/codefor-theme/layouts/partials/project-preview.html b/themes/codefor-theme/layouts/partials/project-preview.html index 09ccbf95a..02a585a69 100644 --- a/themes/codefor-theme/layouts/partials/project-preview.html +++ b/themes/codefor-theme/layouts/partials/project-preview.html @@ -24,7 +24,7 @@ {{ end }} - +
{{- if (and (not (eq .Params.imgname nil)) (fileExists (printf "static/projects/%s" .Params.imgname ))) -}} Screenshot {{ .Title }} @@ -33,16 +33,7 @@ {{- end -}}

{{.Title}}

- {{ if (isset .Params "Excerpt") }} - {{ if (gt (len .Params.Excerpt) 0)}} - {{ .Params.Excerpt | truncate 200 }} - {{ else }} - {{ .Summary | truncate 200 }} - {{ end }} - {{ else }} {{ .Summary | truncate 200 }} - {{ end }} -