Skip to content

Commit

Permalink
improve news listing on /: limit to 3 news, do not underline date
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmehl committed Sep 18, 2024
1 parent 8c4f33b commit 6027095
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions themes/openrail/layouts/partials/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
<section class="wrapper style1 align-center" id="news">
<div class="inner medium">
<h2>{{ .news.title }}</h2>
{{ range (where .pages "Section" "news" ) }}
{{ range first 3 (where .pages "Section" "news" ) }}
<p>
<a href="{{ .RelPermalink }}">
<em>{{ .Date.Format "02 Jan 2006" }}:</em> {{ .Title }}
</a>
<em>{{ .Date.Format "02 Jan 2006" }}:</em>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</p>
{{ end }}
<ul class="actions stacked">
Expand Down

0 comments on commit 6027095

Please sign in to comment.