mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 12:13:19 -06:00
BBaoVanC
7bc8a4cb57
- Add vim folds to make organized sections - Rename a lot of classes from post- to page- - Generalize series CSS classes better - Clean up navbar div structure - Remove langpicker and most of multilingual support - many other minor tweaks
18 lines
607 B
HTML
18 lines
607 B
HTML
<div class="page-metadata" aria-label="{{ i18n "aria_series_metadata" }}">
|
|
<span class="page-metadata-item">
|
|
{{ partial "icon.html" "newspaper" }}
|
|
{{ i18n "post_count" (len .Data.Pages) }}
|
|
</span>
|
|
|
|
{{ if ne .Site.Params.readingtime false }}
|
|
<span class="page-metadata-item">
|
|
{{ partial "icon.html" "clock" }}
|
|
{{ $readingtime := 0 }}
|
|
{{ range .Data.Pages }}
|
|
{{ $readingtime = (add $readingtime .ReadingTime) }}
|
|
{{ end }}
|
|
{{ i18n "readingtime" $readingtime }}
|
|
</span>
|
|
{{ end }}
|
|
</div>
|