aboutsummaryrefslogtreecommitdiff
path: root/themes/XMin/layouts/partials/foot_custom.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/XMin/layouts/partials/foot_custom.html')
-rw-r--r--themes/XMin/layouts/partials/foot_custom.html24
1 files changed, 0 insertions, 24 deletions
diff --git a/themes/XMin/layouts/partials/foot_custom.html b/themes/XMin/layouts/partials/foot_custom.html
deleted file mode 100644
index 970c41c..0000000
--- a/themes/XMin/layouts/partials/foot_custom.html
+++ /dev/null
@@ -1,24 +0,0 @@
-{{ if .Param "comments" }}
-<h2>comments</h2>
-<div style="visibility: hidden" id="comments">comments go here</div>
-<div style="visibility: hidden" id="comment_form">comment form goes here</div>
-<script>
- let comments = document.getElementById("comments");
- let urlParam = new URLSearchParams();
- urlParam.append("url", document.location.href);
- fetch(document.location.origin + "/api/comment?" + urlParam.toString())
- .then((response) => response.text())
- .then((data) => {
- comments.innerHTML = data;
- comments.style.visibility = "visible";
- });
- let form = document.getElementById("comment_form");
- fetch(document.location.origin + "/api/form?" + urlParam.toString())
- .then((response) => response.text())
- .then((data) => {
- form.innerHTML = data;
- form.style.visibility = "visible";
- });
-</script>
-<noscript>Comments disabled without javascript!</noscript>
-{{ end }} \ No newline at end of file