Some checks are pending
Deploy Eventually (In)Consistent / build-and-deploy (push) Waiting to run
35 lines
No EOL
1 KiB
HTML
35 lines
No EOL
1 KiB
HTML
{{ define "main" }}
|
|
{{ with .Content }}
|
|
<div class="index-content">
|
|
{{ . }}
|
|
</div>
|
|
{{ end }}
|
|
<div class="posts">
|
|
{{ range where .Site.RegularPages "Section" "posts" }} <!-- Filter by section -->
|
|
<article class="post on-list">
|
|
<h1 class="post-title">
|
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
|
</h1>
|
|
<div class="post-meta">
|
|
{{- if .Date -}}
|
|
<time class="post-date">
|
|
{{- .Date.Format "2006-01-02" -}}
|
|
</time>
|
|
{{- end -}}
|
|
{{- with .Params.Author -}}
|
|
<span class="post-author">{{- . -}}</span>
|
|
{{- end -}}
|
|
</div>
|
|
<div class="post-content">
|
|
{{ if .Params.showFullContent }}
|
|
{{ .Content }}
|
|
{{ else if .Description }}
|
|
{{ .Description | markdownify }}
|
|
{{ else }}
|
|
{{ .Summary }}
|
|
{{ end }}
|
|
</div>
|
|
</article>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }} |