aboutsummaryrefslogtreecommitdiff
path: root/layouts/post/summary.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/post/summary.html')
-rw-r--r--layouts/post/summary.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/layouts/post/summary.html b/layouts/post/summary.html
new file mode 100644
index 0000000..38c45f4
--- /dev/null
+++ b/layouts/post/summary.html
@@ -0,0 +1,28 @@
+<article class="post">
+ <header class="post-header">
+ <h1 class="post-title"><a class="post-link" href="{{ .RelPermalink }}">{{ .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" | relLangURL }}/{{ . | urlize }}/"> {{ . }} </a>
+ {{ end -}}
+ </div>
+ {{- end }}
+ {{- if .Site.Params.moreMeta }}
+ <span class="more-meta"> {{ T "wordCount" .WordCount }} </span>
+ <span class="more-meta"> {{ T "readingTime" .ReadingTime }} </span>
+ {{- end }}
+ </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>
+ </div>
+ </div>
+</article>