Commit e57a7000 authored by Ward De Ridder's avatar Ward De Ridder

remove whitelines, making page source look better

parent 06c1436e
Pipeline #39249018 passed with stages
in 1 minute and 32 seconds
......@@ -25,9 +25,9 @@
<div id="last-posts" class="open events">
<h3 data-open="last-posts">Agenda</h3>
<ul>
{{ range $.Site.RegularPages.ByParam "startdate" }}
{{ if eq .Type "events" }}
{{ if isset .Params "startdate" }}
{{- range $.Site.RegularPages.ByParam "startdate" -}}
{{- if eq .Type "events" -}}
{{- if isset .Params "startdate" -}}
{{ if ge .Params.startdate (now.Format "2006-01-02") }}
<li class="row">
<a href="{{ .Permalink }}" style="box-sizing: border-box;">
......@@ -35,10 +35,10 @@
<div class="col-md-7" style="padding: 0 5px; color: #839496; background-color: #000">{{ .Params.linktitle }}</div>
</a>
</li>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
</ul>
</div>
......@@ -46,13 +46,13 @@
<h3 data-open="last-posts">TechTuesdays</h3>
<ul>
<li>Every Tuesday is TechTuesday, an open evening for both members and visitors.</li>
{{ range $.Site.RegularPages.ByParam "startdate" }}
{{ if eq .Type "events/techtuesday" }}
{{ if ge .Params.startdate (now.Format "2006-01-02") }}
{{- range $.Site.RegularPages.ByParam "startdate" -}}
{{- if eq .Type "events/techtuesday" -}}
{{- if ge .Params.startdate (now.Format "2006-01-02") -}}
<li><a href="{{ .Permalink }}">{{ .Params.startdate | dateFormat "Mon 2 Jan"}}: {{ .Params.linktitle }}</a></li>
{{ end }}
{{ end }}
{{ end }}
{{- end -}}
{{- end -}}
{{- end -}}
</ul>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment