Updating theme to include tag counts and description on blog page

This commit is contained in:
Brandon Rozek 2022-11-22 19:06:34 -05:00
parent 8982737cbc
commit 1f1e07b4bf
2 changed files with 20 additions and 0 deletions

View file

@ -5,6 +5,7 @@
<article class="row justify-content-center">
<div class="col-md-8">
{{ .Content }}
{{ $tags := .Site.Taxonomies.tags }}
{{ $posts := where site.RegularPages "Type" "blog" }}
{{ $postCount := len $posts }}
@ -42,6 +43,10 @@
<td>Average Words per Post</td>
<td>{{ $avgPostLength | lang.NumFmt 0 }}</td>
</tr>
<tr>
<td>Number of Topics</td>
<td>{{ len $tags | lang.NumFmt 0 }}</td>
</tr>
<tr>
<td>Longest Post Published</td>
<td>