summaryrefslogtreecommitdiff
path: root/layouts/_default/summary.html
diff options
context:
space:
mode:
authorroninro <liumy.f@foxmail.com>2022-07-28 17:32:43 +0800
committerroninro <liumy.f@foxmail.com>2022-07-28 17:32:43 +0800
commitc953d353194ae038f1815290337a82c1cb65272c (patch)
tree6494ad04f8907cf1136972e2a0b7f6b27d206873 /layouts/_default/summary.html
init
Diffstat (limited to 'layouts/_default/summary.html')
-rw-r--r--layouts/_default/summary.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
new file mode 100644
index 0000000..419ec44
--- /dev/null
+++ b/layouts/_default/summary.html
@@ -0,0 +1,15 @@
+<div class="post-preview">
+ <a href="{{ .Permalink }}">
+ <h2 class="post-title">{{ .Title }}</h2>
+ {{ with .Params.subtitle }}
+ <h3 class="post-subtitle">{{ . }}</h3>
+ {{ end }}
+ <div class="post-content-preview">
+ {{ .Summary | plainify }}
+ </div>
+ </a>
+ <p class="post-meta">
+ Posted by {{ with $.Params.author }} {{ $.Params.author }} {{ else }} {{ .Site.Params.author }} {{ end }} on {{ .Date.Format "Mon, Jan 2, 2006" }}
+ </p>
+</div>
+<hr> \ No newline at end of file