💄 Add comment counter in home & page.

This commit is contained in:
凡梦星尘
2022-10-30 11:43:18 +08:00
parent d609eecb23
commit e1c088c355
11 changed files with 91 additions and 46 deletions

View File

@@ -49,9 +49,9 @@
{{ if isset .Site.Params "waline" }}
{{ $walinejs := resources.Get "js/third-party/comments/waline.js" }}
{{ $nextjs = $nextjs | append $walinejs }}
{{ if .Site.Params.waline.pageView }}
{{ $pageviewjs := resources.Get "js/third-party/others/pageview.js" }}
{{ $nextjs = $nextjs | append $pageviewjs }}
{{ if or .Site.Params.waline.pageView .Site.Params.waline.comment }}
{{ $counterjs := resources.Get "js/third-party/others/counter.js" }}
{{ $nextjs = $nextjs | append $counterjs }}
{{ end }}
{{ end }}
{{ if isset .Site.Params "giscus" }}