diff options
Diffstat (limited to 'layouts/partials/components/post/meta.html')
-rw-r--r-- | layouts/partials/components/post/meta.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/partials/components/post/meta.html b/layouts/partials/components/post/meta.html new file mode 100644 index 0000000..9fd0727 --- /dev/null +++ b/layouts/partials/components/post/meta.html @@ -0,0 +1,17 @@ +{{ with .Params.categories }}
+ {{ range . }}
+ <span class="badge badge-pill badge-danger single-badge">
+ <a href="{{ "categories" | absURL}}/{{ . | urlize }}" class="post-header">{{ . }}</a>
+ </span>
+ {{ end }}
+{{ end }}
+<span title="预计阅读时长" class="badge badge-pill badge-danger single-badge post-header">
+ {{ .ReadingTime }} mins
+</span>
+<h2 class="single-h2">{{ .Title }}</h2>
+<div class="article-list-footer">
+ <span class="article-list-date">{{ .Date.Format "02-01-06" }}</span>
+ <span class="article-list-divider">/</span>
+ <span class="article-list-minutes">{{ .WordCount }} Words</span>
+</div>
+<div class="single-line"></div>
\ No newline at end of file |