forked from data.coop/website
Removing a block of templating code, that seemingly did nothing, other than injecting a nice little [services] block on the frontpage ¯\_(ツ)_/¯
This commit is contained in:
parent
893e5e1486
commit
09cabf1b0b
|
@ -1,25 +1,8 @@
|
||||||
|
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<h1>{{.Title}}</h1>
|
<h1>{{.Title}}</h1>
|
||||||
|
|
||||||
{{.Content}}
|
{{.Content}}
|
||||||
|
|
||||||
{{ .Site.Params.mainSections }}
|
|
||||||
{{ $pages := where site.RegularPages "Type" "in" ("") }}
|
|
||||||
{{ range $pages.ByPublishDate.Reverse }}
|
|
||||||
<p>
|
|
||||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
|
||||||
{{ $customDateFormat := "January 2, 2006" }}
|
|
||||||
{{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }}
|
|
||||||
<br>
|
|
||||||
<small class="text-secondary">{{ .PublishDate.Format $customDateFormat }}</small>
|
|
||||||
{{ partial "tags" . }}
|
|
||||||
{{ if eq .Site.Params.showPostSummary true }}
|
|
||||||
<br>
|
|
||||||
{{ .Summary }}
|
|
||||||
{{ end }}
|
|
||||||
</p>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue