Verwijderen van ongeldige 'reversed' op UL-tag, datum op hoofdpagina in consistent formaat

This commit is contained in:
Michael Boelen 2023-05-12 20:21:20 +02:00
parent 8d0a297fa3
commit bab473a3b6
3 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
{{ define "main" }} {{ define "main" }}
<section> <section>
<ul reversed class="list"> <ul class="list">
{{ range .Pages }} {{ range .Pages }}
<li> <li>
<a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a> <a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>

View file

@ -1,6 +1,6 @@
{{ define "main" }} {{ define "main" }}
<section> <section>
<ul reversed class="list"> <ul class="list">
{{ range .Pages }} {{ range .Pages }}
<li> <li>
<a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a> <a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>

View file

@ -4,7 +4,7 @@
{{ if gt (len (where .Site.RegularPages "Section" "nieuws")) 0 }} {{ if gt (len (where .Site.RegularPages "Section" "nieuws")) 0 }}
<h2>Laatste nieuws</h2> <h2>Laatste nieuws</h2>
<section> <section>
<ul reversed class="list"> <ul class="list">
{{ range (first 3 (where .Site.RegularPages "Section" "nieuws").ByDate.Reverse) }} {{ range (first 3 (where .Site.RegularPages "Section" "nieuws").ByDate.Reverse) }}
<li> <li>
<a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a> <a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
@ -34,8 +34,8 @@
{{ range $upcoming_events }} {{ range $upcoming_events }}
{{ if eq .highlight_on_homepage true }} {{ if eq .highlight_on_homepage true }}
<div class="highlight-box"> <div class="highlight-box">
<div><strong>{{ .name }}</strong></div> <h3>{{ .name }}</h3>
{{ with .date_start }}<p>Datum: {{ . }}</p>{{ end }} {{ with .date_start | dateFormat "02-01-2006" }}<p>Datum: {{ . }}</p>{{ end }}
{{ with .event_address }}<p>Adres: {{ . }}</p>{{ end }} {{ with .event_address }}<p>Adres: {{ . }}</p>{{ end }}
{{ with .event_url }}<a href="{{ . }}" class="button">Meer informatie</a>{{ end }} {{ with .event_url }}<a href="{{ . }}" class="button">Meer informatie</a>{{ end }}
</div> </div>