mirror of
https://git.adityakumar.xyz/hugo-theme-even.git
synced 2024-11-14 00:49:44 +00:00
fa7e44cec8
* Separate categories with whitespace * Modify the _header.scss file to add a '·' character release 2.6.6
29 lines
1 KiB
HTML
29 lines
1 KiB
HTML
{{ $lang := .Site.Data.even.default -}}
|
|
<article class="post">
|
|
<header class="post-header">
|
|
<h1 class="post-title"><a class="post-link" href="{{ .URL }}">{{ .Title }}</a></h1>
|
|
<div class="post-meta">
|
|
<span class="post-time"> {{ .Date.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }} </span>
|
|
{{ with .Params.categories -}}
|
|
<div class="post-category">
|
|
{{ range . }}
|
|
<a href="{{ "categories" | relURL }}/{{ . | urlize }}/"> {{ . }} </a>
|
|
{{ end }}
|
|
</div>
|
|
{{- end }}
|
|
{{ if .Site.Params.moreMeta -}}
|
|
<span class="more-meta"> {{ printf $lang.posts.header.wordCount .WordCount }} </span>
|
|
<span class="more-meta"> {{ printf $lang.posts.header.readingTime .ReadingTime }} </span>
|
|
{{- end }}
|
|
</div>
|
|
</header>
|
|
<!-- Content -->
|
|
<div class="post-content">
|
|
<div class="post-summary">
|
|
{{ .Summary }}
|
|
</div>
|
|
<div class="read-more">
|
|
<a href="{{ .URL }}" class="read-more-link">{{ $lang.posts.readmore }}</a>
|
|
</div>
|
|
</div>
|
|
</article>
|