This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 650272b  Enable comments on datafusion-site via giscus (#93)
650272b is described below

commit 650272be2ee163c9497d17e2af9597b23ee6140e
Author: Kevin Liu <[email protected]>
AuthorDate: Thu Jul 24 10:48:37 2025 -0700

    Enable comments on datafusion-site via giscus (#93)
    
    * add comment
    
    * add datafusion-site config
    
    * Add some comments with context
    
    ---------
    
    Co-authored-by: Andrew Lamb <[email protected]>
---
 content/theme/templates/comments.html | 26 ++++++++++++++++++++++++++
 content/theme/templates/generic.html  |  4 +++-
 2 files changed, 29 insertions(+), 1 deletion(-)

diff --git a/content/theme/templates/comments.html 
b/content/theme/templates/comments.html
new file mode 100644
index 0000000..abdca9a
--- /dev/null
+++ b/content/theme/templates/comments.html
@@ -0,0 +1,26 @@
+    <!--
+        Enable giscuss comments: Allows comments on the blogs posted as
+        https://github.com/apache/datafusion-site/discussions
+
+        More details on https://github.com/apache/datafusion-site/issues/80
+    -->
+    <div id="article_comments">
+        <div id="comment_thread"></div>
+
+        <script src="https://giscus.app/client.js";
+            data-repo="apache/datafusion-site"
+            data-repo-id="R_kgDOL8FTzw"
+            data-category="Announcements"
+            data-category-id="DIC_kwDOL8FTz84Csqua"
+            data-mapping="title"
+            data-strict="1"
+            data-reactions-enabled="1"
+            data-emit-metadata="0"
+            data-input-position="bottom"
+            data-theme="preferred_color_scheme"
+            data-lang="en"
+            data-loading="lazy"
+            crossorigin="anonymous"
+            async>
+        </script>
+    </div>
diff --git a/content/theme/templates/generic.html 
b/content/theme/templates/generic.html
index 2f504b1..7020919 100644
--- a/content/theme/templates/generic.html
+++ b/content/theme/templates/generic.html
@@ -9,6 +9,8 @@
           </h1>
             <p>Posted on: {{ article.locale_date }} by {{ article.author }}</p>
             {{ article.content }}
-        </div>
+
+            {% include "comments.html" %}
+          </div>
       </div>
     </div>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to