Automatically fetch Isso author IDs from params

This commit is contained in:
2022-04-24 01:11:14 -05:00
parent 17af722f4d
commit a170885ff8
2 changed files with 13 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
---
title: bbaovanc
issoUserID: 284513e38f5c
---

View File

@@ -94,7 +94,18 @@
data-isso-feed="false"
data-isso-require-email="false"
data-isso-reply-notifications="true"
data-isso-page-author-hash="284513e38f5c"
{{ with (.GetTerms "authors") }}
{{ $authorHashes := slice }}
{{ range . }}
{{ with .Params.issoUserID }}
{{ $authorHashes = $authorHashes | append . }}
{{ end }}
{{ end }}
data-isso-page-author-hash="{{ delimit $authorHashes "," }}"
{{ end }}
src="https://isso.bbaovanc.com/js/embed.min.js">
</script>