Skip to content
Snippets Groups Projects
Commit 7767a001 authored by micressor's avatar micressor
Browse files

Latest News: Are only displayed on homepage if created in content/news/.

parent 7e4c9314
No related branches found
No related tags found
1 merge request!24Feature hugo migration
{{ define "main" }}
<h2>{{ with .Title }} {{ . }} {{ else }} {{ .Site.Title }} {{ end }}</h2>
<p><strong>Latest News:</strong>
{{ range first 1 .Pages.ByDate.Reverse }}
{{ range first 1 (where .Pages "Section" "news").ByDate.Reverse }}
<a href="{{.Permalink}}">{{.Title}}</a>
</p>
{{ end }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment