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 body configuration items to gitalk configuration to support custom issue content# Utterances #877

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

Conversation

tootscharlie
Copy link

@tootscharlie tootscharlie commented Jan 23, 2025

PR Checklist

  • The changes have been tested (for bug fixes / features).
  • Docs in NexT website have been added / updated (for features).

Docs PR: next-theme/theme-next-docs#138

PR Type

  • Bugfix.
  • Feature.
  • Improvement.
  • Code style update (e.g. formatting, linting).
  • Refactoring (no changes to functionality and APIs).
  • Documentation.
  • Translation.
  • Other... Please describe:

What is the current behavior?

Custom gitalk issue body is currently not supported

What is the new behavior?

gitalk config add body config item, add custom issue body configuration.

  • Link to demo site with this changes: None
  • Screenshots with this changes: None

How to use?

In NexT _config.yml:

gitalk:
  // omit other configuration..
  # If you want to customize the content of the initialized Issue, please edit the body parameters. support line breaks via `|`.
  # Sample configuration: ${document.title}` or `${location.href}
  body: |
    **Article title**: [${document.title}](${location.href})
    **Customized content**: This is my customized Issue body in Gitalk. Comments and exchanges are welcome!

Copy link

welcome bot commented Jan 23, 2025

Thanks so much for opening your first PR here!

Copy link

This pull request contains changes to the configuration file. Please make sure the documentation in NexT website is changed or added.
Please edit relevant source files here: https://github.com/next-theme/theme-next-docs/tree/master/source/docs and create a pull request with the changes here: https://github.com/next-theme/theme-next-docs/pulls

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

Successfully merging this pull request may close these issues.

2 participants