From 58757f679dfbe7ae92817f9a4c20e6b1e684344c Mon Sep 17 00:00:00 2001 From: Jeremie Plante Date: Sun, 3 Mar 2024 19:07:19 -0500 Subject: [PATCH] Giscus! --- content/posts/plant-traits-comp.md | 22 +++++++++++++++++++--- hugo.toml | 22 ++++++++++++++++++++++ layouts/partials/comments/giscus.html | 14 ++++++++++++++ 3 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 layouts/partials/comments/giscus.html diff --git a/content/posts/plant-traits-comp.md b/content/posts/plant-traits-comp.md index 13f7f21..ad9be9f 100644 --- a/content/posts/plant-traits-comp.md +++ b/content/posts/plant-traits-comp.md @@ -24,9 +24,11 @@ That's precisely the goal of the [PlantTraits2024](https://www.kaggle.com/compet Think of it as a place where you can: -* **Explore real-world datasets:** Tackle problems from predicting plant traits to diagnosing diseases. -* **Test your skills in competitions:** Challenge yourself, learn from others, and maybe even win prizes. -* **Join a supportive community:** Ask questions, collaborate with enthusiasts, and grow your AI expertise. +* Tackle problems from predicting plant traits to diagnosing diseases. +* Challenge yourself, learn from others, and maybe even win prizes. +* Ask questions, collaborate with enthusiasts, and grow your AI expertise. + +It's not just about Plants. There are competitions of every kind for every level of expertise. There's also generative AI competitions such as: @@ -79,3 +81,17 @@ Contribute to cutting-edge research and help protect our planet. Visit the [PlantTraits2024](https://www.kaggle.com/competitions/planttraits2024) Challenge on [Kaggle](https://www.kaggle.com) to get started! + \ No newline at end of file diff --git a/hugo.toml b/hugo.toml index e7151fa..4f0df3f 100644 --- a/hugo.toml +++ b/hugo.toml @@ -113,3 +113,25 @@ url = "https://x.com/sineercom" name = "Rss" url = "index.xml" + + +############################ +## Comments +############################ +[comments] + # Comment provider: + provider = "giscus" + + # Which page types are commentable? + commentable = {page = true, post = true, docs = false, project = false, publication = true, talk = false} + + # Configuration of giscus + [comments.giscus] + repo = "sineer/sin.io" # Repo where the comments will live + repo_id = "R_kgDOLZ6T2Q" # Repo where the comments will live + category = "Announcements" # Repo where the comments will live + category_id = "DIC_kwDOLZ6T2c4CdsS-" # Repo where the comments will live + mapping = "pathname" # How Utterances will match comment to page + label = "comment" # Label applied to issue by utteranc.es bot + theme = "light" # What theme to use + reactions_enabled = 0 diff --git a/layouts/partials/comments/giscus.html b/layouts/partials/comments/giscus.html new file mode 100644 index 0000000..ddb3749 --- /dev/null +++ b/layouts/partials/comments/giscus.html @@ -0,0 +1,14 @@ +{{ if site.Params.comments.giscus }} + + +{{ end }}