mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-05 08:25:59 -06:00
41 lines
1.1 KiB
HTML
41 lines
1.1 KiB
HTML
|
<div class="post">
|
||
|
<h2 class="post-title">
|
||
|
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||
|
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||
|
</h2>
|
||
|
|
||
|
<div class="post-metadata">
|
||
|
{{ partial "translations-meta-item.html" . }}
|
||
|
|
||
|
{{ if ne .Site.Params.readingtime false }}
|
||
|
<span class="post-meta-item">
|
||
|
{{ partial "icon.html" "clock" }}
|
||
|
{{ $readingtime := 0 }}
|
||
|
{{ range .Data.Pages }}
|
||
|
{{ $readingtime = (add $readingtime .ReadingTime) }}
|
||
|
{{ end }}
|
||
|
{{ i18n "readingtime" $readingtime }}
|
||
|
</span>
|
||
|
{{ end }}
|
||
|
|
||
|
{{ partial "viewsource-meta-item.html" . }}
|
||
|
</div>
|
||
|
|
||
|
<div class="post-description">
|
||
|
{{ with .Description }}
|
||
|
<p>
|
||
|
{{ . | markdownify }}
|
||
|
</p>
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
|
||
|
<div class="series-pages">
|
||
|
<ul>
|
||
|
{{ range .Data.Pages.Reverse }}
|
||
|
<li>{{ .Render "summary" }}</li>
|
||
|
{{ end }}
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|