mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-10-31 10:03:30 -05:00 
			
		
		
		
	- 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
		
	
	
		
			641 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			641 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <div class="page-metadata" aria-label="{{ i18n "aria_author_metadata" }}">
 | |
|     {{/* Calculate the total word count */}}
 | |
|     {{ $total_words := 0 }}
 | |
|     {{ range .Data.Pages }}
 | |
|         {{ $total_words = add $total_words .WordCount }}
 | |
|     {{ end }}
 | |
| 
 | |
|     <span class="page-metadata-item" aria-label="{{ i18n "aria_author_post_count" }}">
 | |
|         {{ partial "icon.html" "newspaper" }}
 | |
|         {{ i18n "post_count" (len .Data.Pages) }}
 | |
|     </span>
 | |
| 
 | |
|     <span class="page-metadata-item" aria-label="{{ i18n "aria_author_word_count" }}">
 | |
|         {{ partial "icon.html" "align-left" }}
 | |
|         {{ i18n "wordcount" $total_words }}
 | |
|     </span>
 | |
| </div>
 |