~seirdy/seirdy.one-comments

Fix word count in post meta v1 PROPOSED

hedy: 1
 Fix word count in post meta

 1 files changed, 1 insertions(+), 1 deletions(-)
Sorry, this slipped my radar; sourcehut emails hadn't been delivered to 
me for a while. I happened to notice and fix the same problem.

-- 
Seirdy
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~seirdy/seirdy.one-comments/patches/32318/mbox | git am -3
Learn more about email & git

[PATCH] Fix word count in post meta Export this patch

Pass in context like in partials/posts.html
---
Without this patch, seems like every post page's meta section has a
lonely "word" line (.WordCount is evaluating to nothing).

Tested to work with hugo v0.83.1

NOTE: did not run linters

 layouts/partials/post-meta.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/layouts/partials/post-meta.html b/layouts/partials/post-meta.html
index d7aab02..b836d74 100644
--- a/layouts/partials/post-meta.html
+++ b/layouts/partials/post-meta.html
@@ -11,6 +11,6 @@
				{{- end }}
			</li>
			<li>
				{{ partial "wordcount.html" }}
				{{ partial "wordcount.html" . }}
			</li>
		</ul>
-- 
2.30.2
Looks like you've fixed this in 1c73b0e1, never mind :)