Move comments into separate files
This commit is contained in:
24
layouts/partials/paige/comments/graphcomment.html
Normal file
24
layouts/partials/paige/comments/graphcomment.html
Normal 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 }}
|
Reference in New Issue
Block a user