mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-25 22:57:30 -05:00
archetypes
assets
data
exampleSite
i18n
layouts
_default
_markup
summary
author.html
post.html
section.html
series.html
series_post.html
baseof.html
list.html
single.html
authors
partials
series
shortcodes
tags
taxonomy
index.html
robots.txt
.editorconfig
.gitattributes
.gitignore
.gitmodules
LICENSE
README.md
config.yaml
theme.toml
42 lines
1.3 KiB
HTML
42 lines
1.3 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 "post-meta-item/translations.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 "post-meta-item/viewsource.html" . }}
|
|
</div>
|
|
|
|
<div class="post-description">
|
|
{{ partial "description-or-summary.html" . }}
|
|
</div>
|
|
|
|
<div class="series-pages">
|
|
<ul>
|
|
{{ $i := 0 }}
|
|
{{ $total := len .Data.Pages }}
|
|
{{ range .Data.Pages.Reverse }}
|
|
{{ $i = add 1 $i }}
|
|
{{ .Scratch.Set "series_position" $i }}
|
|
{{ .Scratch.Set "series_total" $total }}
|
|
<li>{{ .Render "summary/series_post" }}</li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
</div>
|