ybbond

My site. The main domain
Log | Files | Refs | README | LICENSE | CC-LICENSE

commit d8230187b3ccdf6b1e3ebeaf4fab04dd5fdc0cf9
parent b5cb72cdb4285e454a06d048a0505c484c3e2a33
Author: Yohanes Bandung Bondowoso <hi@ybbond.id>
Date:   Sat,  6 Feb 2021 15:02:42 +0700

content: notes about Remarkbox comment system

Diffstat:
Acontent/notes/06 February 2021.md | 9+++++++++
Mlayouts/_default/single.html | 5+++--
Mlayouts/partials/post/notes-item.html | 3+--
Mlayouts/partials/post/remarkbox.html | 5+++++

4 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/content/notes/06 February 2021.md b/content/notes/06 February 2021.md
@@ -0,0 +1,9 @@
+---
+date: 2021-02-06T14:57:08+0700
+tags:
+  - notes #notes
+ID: 20210206145708
+type: notes
+---
+
+I finally added comment system to this blog, using [Remarkbox](https://www.remarkbox.com) that I know [from Hacker News](https://news.ycombinator.com/item?id=26038501).
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
@@ -1,8 +1,10 @@
 {{ define "main" }}
+  {{ .Scratch.Set "scope" "single" }}
   {{ if eq .Type "notes" }}
     <article>
       {{- partial "post/notes-item.html" . -}}
       {{ partial "post/webmentions-handler.html" . }}
+      {{ partial "post/remarkbox.html" . }}
     </article>
   {{ else if eq .Type "responses" }}
     <article>
@@ -53,10 +55,9 @@
         {{ end -}}
       </div>
 
-      {{ partial "post/remarkbox.html" . }}
-
       {{- if ne .Type "page" }}
         {{ partial "post/webmentions-handler.html" . }}
+        {{ partial "post/remarkbox.html" . }}
       {{- else }}
         <br>
         <br>
diff --git a/layouts/partials/post/notes-item.html b/layouts/partials/post/notes-item.html
@@ -33,4 +33,4 @@
   <div class="notes__content e-content p-content p-name">
     {{ .Content }}
   </div>
-</div>-
\ No newline at end of file
+</div>
diff --git a/layouts/partials/post/remarkbox.html b/layouts/partials/post/remarkbox.html
@@ -1,4 +1,7 @@
 <!-- Remarkbox - Your readers want to communicate with you -->
+<div class="footnotes" role="doc-endnotes">
+<hr />
+<h3 class="footnotes__text">Comments:</h3>
 <div id="remarkbox-div">
   <noscript>
     <iframe id=remarkbox-iframe src="https://my.remarkbox.com/embed?nojs=true" style="height:600px;width:100%;border:none!important" tabindex=0></iframe>
@@ -39,3 +42,4 @@
     document.getElementById("remarkbox-iframe")
   );
 </script>
+</div>+
\ No newline at end of file