c779a70834
* Add configurable timestamping * Add attribution for configurable timestamping * Add new post timestamp options to example hugo.toml * All date formats are now set by single config option in site or page config * Add post timestamp explainer and examples to example config file * Add configurable timestamping value to frontmatter archetype * Explain possible timezone rendering issue with new time formatting * Fix bug concerning time/date tokens * Convert datestamps to work with a partial * Fix issue with lastmod being equal to date * Add Updated prefix functionality
56 lines
1.5 KiB
HTML
56 lines
1.5 KiB
HTML
{{ define "main" }}
|
|
{{ with .Content }}
|
|
<div class="index-content">
|
|
{{ . }}
|
|
</div>
|
|
{{ end }}
|
|
<div class="posts">
|
|
{{ range .Paginator.Pages }}
|
|
<article class="post on-list">
|
|
<h2 class="post-title">
|
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
|
</h2>
|
|
<div class="post-meta">
|
|
{{- if .Date -}}
|
|
<time class="post-date">
|
|
{{- partial "post-date" . -}}
|
|
</time>
|
|
{{- end -}}
|
|
{{- with .Params.Author -}}
|
|
<span class="post-author">{{- . -}}</span>
|
|
{{- end -}}
|
|
</div>
|
|
|
|
{{ if .Params.tags }}
|
|
<span class="post-tags">
|
|
{{ range .Params.tags }}
|
|
#<a href="{{ (urlize (printf "tags/%s/" . )) | absLangURL }}">
|
|
{{- . -}}
|
|
</a>
|
|
{{ end }}
|
|
</span>
|
|
{{ end }}
|
|
|
|
{{ partial "cover.html" . }}
|
|
|
|
<div class="post-content">
|
|
{{ if .Params.showFullContent }}
|
|
{{ .Content }}
|
|
{{ else if .Description }}
|
|
<p>{{ .Description | markdownify }}</p>
|
|
{{ else }}
|
|
{{ .Summary }}
|
|
{{ end }}
|
|
</div>
|
|
|
|
{{ if not .Params.showFullContent }}
|
|
<div>
|
|
<a class="read-more button inline" href="{{ .RelPermalink }}">{{ $.Site.Params.ReadMore }}</a>
|
|
</div>
|
|
{{ end }}
|
|
</article>
|
|
{{ end }}
|
|
|
|
{{ partial "pagination.html" . }}
|
|
</div>
|
|
{{ end }}
|