mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2025-10-09 10:11:14 +00:00
Updating theme to include tag counts and description on blog page
This commit is contained in:
parent
8982737cbc
commit
1f1e07b4bf
2 changed files with 20 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue