Skip to content

Commit fe7b1d2

Browse files
authored
Remove handling of excerpt for projects (#591)
Hugo displayed a warning that the way that we used this in our templates did not actually work: ``` WARN calling IsSet with unsupported type "invalid" (<nil>) will always return false. ``` We only used this in one project though so I think it should be fine to remove it alltogether.
1 parent 4ec1864 commit fe7b1d2

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

content/projekte/2011-12-31-ernteteilen.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ lab: [berlin] #needed for Aggregation on Lab-Page
44
imgname: berlin/ernteteilen.png
55
title: Ernte Teilen
66
showcase: true
7-
excerpt:
87

98
links:
109
- url: https://ernte-teilen.org

content/projekte/2014-05-01-portable-linked-profiles.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ lab: [berlin] #needed for Aggregation on Lab-Page
44
imgname: berlin/portablelinkedprofiles.png
55
title: Portable Linked Profiles
66

7-
excerpt:
8-
PLP proposes a pattern for the creation, storage, listing and representation of public profile data.
9-
107
links:
118
- url: https://github.com/hackers4peace/plp-docs
129
name: Dokumentation

themes/codefor-theme/layouts/partials/project-preview.html

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
{{ end }}
2525
</ul>
2626
</div>
27-
27+
2828
<div class="card-body p-4">
2929
{{- if (and (not (eq .Params.imgname nil)) (fileExists (printf "static/projects/%s" .Params.imgname ))) -}}
3030
<img class="project-image" src="/projects/{{ .Params.imgname }}" alt="Screenshot {{ .Title }}">
@@ -33,16 +33,7 @@
3333
{{- end -}}
3434
<a class="text-dark no-underline project-link" href="{{.Permalink}}"><h3 class="title">{{.Title}}</h3></a>
3535
<div class="text-dark description" >
36-
{{ if (isset .Params "Excerpt") }}
37-
{{ if (gt (len .Params.Excerpt) 0)}}
38-
{{ .Params.Excerpt | truncate 200 }}
39-
{{ else }}
40-
{{ .Summary | truncate 200 }}
41-
{{ end }}
42-
{{ else }}
4336
{{ .Summary | truncate 200 }}
44-
{{ end }}
45-
4637
</div>
4738
</div>
4839
<div class="card-footer border-top-0 bg-white d-flex justify-content-between">

0 commit comments

Comments
 (0)