Skip to content

feat: support Artalk comment system #1306

Open
powerfullz wants to merge 2 commits intoCaiJimmy:masterfrom
powerfullz:feat/artalk-comment
Open

feat: support Artalk comment system #1306
powerfullz wants to merge 2 commits intoCaiJimmy:masterfrom
powerfullz:feat/artalk-comment

Conversation

@powerfullz
Copy link
Copy Markdown
Contributor

This pull request introduces support for the Artalk comment system, including configuration, styling, and dynamic loading of the Artalk widget. The changes are grouped into configuration updates, asset and style integration, and widget initialization.

Artalk comment system integration:

  • Added Artalk configuration options (serverUrl, site) to the params.toml config file, enabling site owners to set up Artalk as a comment provider.

Styling and assets:

  • Created a new SCSS partial (artalk.scss) with custom styles for the Artalk widget, including theme variables and responsive design, and imported relevant mixins and breakpoints.
  • Integrated the compiled and minified Artalk SCSS into the HTML partial, ensuring consistent styling with the site's theme.

Widget initialization and dynamic loading:

  • Implemented dynamic loading of Artalk's CSS and JS from CDN in the artalk.html partial, initializing the widget with page-specific parameters and supporting dark mode.
  • Added event listener to update Artalk's theme in response to color scheme changes, maintaining visual consistency across theme switches.

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