hugo-theme-even/layouts/post/summary.html

29 lines
1,006 B
HTML
Raw Normal View History

2017-08-27 14:38:42 +00:00
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
2017-08-27 14:38:42 +00:00
<div class="post-meta">
<span class="post-time"> {{ .Date.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }} </span>
2017-08-27 14:38:42 +00:00
{{ with .Params.categories -}}
<div class="post-category">
{{ range . -}}
<a href="{{ "categories" | relLangURL }}/{{ . | urlize }}/"> {{ . }} </a>
{{ end -}}
2017-08-27 14:38:42 +00:00
</div>
{{- end }}
{{- if .Site.Params.moreMeta }}
<span class="more-meta"> {{ T "wordCount" .WordCount }} </span>
<span class="more-meta"> {{ T "readingTime" .ReadingTime }} </span>
{{- end }}
2017-08-27 14:38:42 +00:00
</div>
</header>
<!-- Content -->
<div class="post-content">
<div class="post-summary">
{{ .Summary }}
</div>
<div class="read-more">
<a href="{{ .RelPermalink }}" class="read-more-link">{{ T "readMore" }}</a>
2017-08-27 14:38:42 +00:00
</div>
</div>
</article>