diff options
author | Julio Capote <jcapote@gmail.com> | 2018-11-06 02:49:16 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2018-11-06 02:49:16 +0000 |
commit | a62a3e7755579d93ce3a87243dd277575930fffe (patch) | |
tree | 6d074f7294c5b7a45bed7ac229a6802830da2a04 /themes/even/layouts/post/summary.html | |
download | capotej.com-a62a3e7755579d93ce3a87243dd277575930fffe.tar.gz |
init
Diffstat (limited to '')
-rw-r--r-- | themes/even/layouts/post/summary.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/themes/even/layouts/post/summary.html b/themes/even/layouts/post/summary.html new file mode 100644 index 0000000..6069ca1 --- /dev/null +++ b/themes/even/layouts/post/summary.html @@ -0,0 +1,28 @@ +<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" | 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="{{ .URL }}" class="read-more-link">{{ T "readMore" }}</a> + </div> + </div> +</article> |