mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-13 18:07:29 -05:00
Clean up directory structure of partials and .Render templates
This commit is contained in:
17
layouts/partials/post-metadata/author.html
Normal file
17
layouts/partials/post-metadata/author.html
Normal file
@ -0,0 +1,17 @@
|
||||
<div class="post-metadata">
|
||||
{{/* Calculate the total word count */}}
|
||||
{{ $total_words := 0 }}
|
||||
{{ range .Data.Pages }}
|
||||
{{ $total_words = add $total_words .WordCount }}
|
||||
{{ end }}
|
||||
|
||||
<span class="post-meta-item">
|
||||
{{ partial "icon.html" "newspaper" }}
|
||||
{{ i18n "post_count" (len .Data.Pages) }}
|
||||
</span>
|
||||
|
||||
<span class="post-meta-item">
|
||||
{{ partial "icon.html" "align-left" }}
|
||||
{{ i18n "wordcount" $total_words }}
|
||||
</span>
|
||||
</div>
|
Reference in New Issue
Block a user