This document explains the changes made to enable comments and related posts functionality on your Jekyll blog using the Minimal Mistakes theme.
giscus (GitHub Discussions-based commenting system)_config.yml lines 35-56_config.yml line 337 (related: true)The giscus configuration in _config.yml currently contains placeholder values that need to be replaced with your actual repository settings:
https://github.com/tngo0508/tngo0508.github.iotngo0508/tngo0508.github.io_config.yml with the values from giscus.app:
giscus:
repo_id : "YOUR_ACTUAL_REPO_ID" # Replace R_kgDOK8Ej8w
category_name : "YOUR_CATEGORY_NAME" # Replace General
category_id : "YOUR_ACTUAL_CATEGORY_ID" # Replace DIC_kwDOK8Ej884CcOoJ
comments:
provider: "giscus"
giscus:
repo_id: "R_kgDOK8Ej8w" # ⚠️ REPLACE WITH YOUR REPO ID
category_name: "General" # ⚠️ REPLACE WITH YOUR CATEGORY NAME
category_id: "DIC_kwDOK8Ej884CcOoJ" # ⚠️ REPLACE WITH YOUR CATEGORY ID
discussion_term: "pathname"
reactions_enabled: "1"
theme: "preferred_color_scheme"
strict: "0"
input_position: "bottom"
emit_metadata: "0"
lang: "en"
lazy: true
defaults:
- scope:
path: ""
type: posts
values:
layout: single
author_profile: true
read_time: true
comments: true # ✅ Comments enabled
share: true
related: true # ✅ Related posts enabled
site.related_posts when availablerelated: true in post front matterbundle exec jekyll serve --drafts --livereload
Visit a post (e.g., http://localhost:4000/2023/11/20/my-first-post/)
comments: true is set in post defaults or individual post front matterrelated: true in _config.yml defaultsbundle install if you encounter gem-related errors_config.yml changesYou can override the global settings in individual post front matter:
---
title: "My Post"
comments: false # Disable comments for this post
related: false # Disable related posts for this post
---
Status: ✅ Configuration complete - just need to update giscus values from giscus.app Next Step: Visit giscus.app to get your repository-specific configuration values