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

27 lines
782 B
HTML
Raw Normal View History

2017-08-27 14:38:42 +00:00
{{ $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 "2006-01-02" }}
</span>
{{ with .Params.categories -}}
<div class="post-category">
{{ range . -}}
<a href="/categories/{{ . | urlize }}">{{ . }}</a>
{{- end }}
</div>
{{- 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>