Move comments into separate files

This commit is contained in:
Will Faught
2023-02-09 21:42:02 -08:00
parent 80d8086145
commit 6da99ac718
11 changed files with 150 additions and 120 deletions

View File

@@ -0,0 +1,24 @@
{{ $page := . }}
{{ if $page.Param "paige.comments.graphcomment" }}
<section class="mb-3">
<div id="graphcomment"></div>
<script type="text/javascript">
var __semio__params = {
graphcommentId: "{{ $page.Param "paige.comments.graphcomment.account_id" | safeJS }}",
behaviour: {
uid: "{{ $page.RelPermalink | safeJS }}"
}
};
function __semio__onload() {
__semio__gc_graphlogin(__semio__params)
}
(function() {
var gc = document.createElement('script'); gc.type = 'text/javascript'; gc.async = true;
gc.onload = __semio__onload; gc.defer = true; gc.src = 'https://integration.graphcomment.com/gc_graphlogin.js?' + Date.now();
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(gc);
})();
</script>
<noscript>{{ i18n "paige_noscript" }}</noscript>
</section>
{{ end }}