Use with action in comments

This commit is contained in:
Will Faught
2024-07-20 12:11:32 -07:00
parent 2e08775930
commit 788bb284bd
6 changed files with 13 additions and 13 deletions

View File

@@ -1,12 +1,12 @@
{{ $page := . }}
{{ if $page.Param "paige.comments.remark42" }}
{{ with $page.Param "paige.comments.remark42" }}
<div class="mb-3" id="paige-comments">
<div id="remark42"></div>
<script>
var remark_config = {
host: "{{ $page.Param `paige.comments.remark42.host_url` | safeJS }}",
site_id: "{{ $page.Param `paige.comments.remark42.site_id` | default `remark` | safeJS }}"
host: "{{ .host_url | safeJS }}",
site_id: "{{ .site_id | default `remark` | safeJS }}"
}
</script>
<script>!function(e,n){for(var o=0;o<e.length;o++){var r=n.createElement("script"),c=".js",d=n.head||n.body;"noModule"in r?(r.type="module",c=".mjs"):r.async=!0,r.defer=!0,r.src=remark_config.host+"/web/"+e[o]+c,d.appendChild(r)}}(remark_config.components||["embed"],document);</script>