{{- /* Renders the project cards on the landing page from data/projects.yaml. Validates the data so a broken entry fails the build instead of shipping an empty card. Styling lives in layouts/_partials/extend_head.html. */ -}} {{- with hugo.Data.projects -}}

Projekte

{{- range $project := . }} {{- if or (not $project.name) (not $project.url) (not $project.description) }} {{- errorf "data/projects.yaml: entry %q needs name, url and description" (default "" $project.name) }} {{- end }} {{- if not (hasPrefix $project.url "http") }} {{- errorf "data/projects.yaml: %q must use an absolute http(s) url, got %q" $project.name $project.url }} {{- end }} {{- end }}
{{- else -}} {{- errorf "data/projects.yaml is missing or empty" -}} {{- end -}}