💄 Update use waline pageview & add to homepage. Close #41, #42

This commit is contained in:
凡梦星尘
2022-10-29 18:15:39 +08:00
parent ac712b9277
commit 146bf52038
7 changed files with 51 additions and 4 deletions

View File

@@ -49,6 +49,10 @@
{{ 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 }}
{{ end }}
{{ end }}
{{ if isset .Site.Params "giscus" }}
{{ $giscusjs := resources.Get "js/third-party/comments/giscus.js" }}