Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Waline comment platform with theme switching #356

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

felixnie
Copy link

This PR added Waline to the list of commenting systems available for Hydejack.

Screen Recording 2025-01-19 at 3 40 56 AM

Before you start, you may consider changing the layout of the _config.yml file for simple switching between commenting systems:

# Setting a disqus shortname will enable the comment section on
# pages with `comments: true` in the front matter.
# disqus:                felixnie

# EDIT: include more comment providers.
comments:
  # 'disqus'/'commento'/'giscus'/'waline'
  provider:            waline

  disqus:
    # If you wanna continue using disqus, you may want to change the way it finds its shortname in _config,yml.
    shortname:         felixnie

  giscus:
    ...
  
  commento:
    ...

  waline:
    server:            "https://comment.felixnie.com"
    locale:            "zh-CN"

To make Waline render the right color after page refresh, add the missing label to body: Added Waline theme switching for Hydejack

The overwritten CSS makes it match the default theme of Hydejack. Change it to whatever you like.

Compared to Disqus:

  1. fast loading time
  2. support self-hosting
  3. can comment without login
  4. rich extensions
  5. ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant