mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-14 18:37:30 -05:00
Clean up CSS
- 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
This commit is contained in:
17
layouts/partials/page-metadata/series.html
Normal file
17
layouts/partials/page-metadata/series.html
Normal file
@ -0,0 +1,17 @@
|
||||
<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>
|
Reference in New Issue
Block a user