www/themes/hellug-minimal-2/layouts/index.html

43 γραμμές
929 B
HTML

{{ partial "head.html" . }}
{{ partial "header.html" . }}
<!-- Main View -->
{{.Content}}
<!-- Articles Section -->
{{ $counter := 0 }}
{{ $pages := .Site.RegularPages }}
{{ $recentpostlimit := (sub now.Unix 2592000 ) }}
{{ range first 5 $pages }}
{{ $counter = add $counter 1 }}
{{ if eq $counter 1 }}
<!-- First Post -->
<h3>
<a href="{{.Permalink}}">{{ .Title }}</a> {{ dateFormat "02/01/2006" .Date }} {{ if lt $recentpostlimit .Date.Unix }}Nέο
{{ end }}
</h3>
<p>{{ .Summary | plainify | safeHTML }}</p>
<!-- First Post End -->
{{ else }}
<h3><a href="{{.Permalink}}">{{ .Title }}</a>
{{ dateFormat "02/01/2006" .Date }}
{{ if lt $recentpostlimit .Date.Unix }}
ο {{ end }}</h3>
<p>{{ .Summary }}</p>
{{ end}}
{{ end }}
<!-- End Articles Section -->
<!-- Column 2 start -->
{{ partial "column2.html" . }}
<!-- Column 2 end -->
<!-- Footer Start -->
{{ partial "footer.html" . }}
<!-- Footer End -->