1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2026-06-21 23:38:39 +00:00
Cotes Chung ceb2a41463 fix(giscus): synchronize theme state during lazy loading (#2742)
Previously, theme switch events were lost if triggered before the
Giscus iframe was fully loaded (e.g., when deferred by lazy loading
or before the client script executed). This resulted in Giscus
rendering with the outdated initial theme once it finally appeared
in the viewport.

This commit handles these edge cases by:
1. Updating the `data-theme` attribute on the Giscus script node
   if the iframe hasn't been created yet.
2. Modifying the `theme` query parameter in the iframe's `src` URL
   if it is currently in a pending/lazy-loading state.
2026-05-23 23:00:48 +08:00
2026-03-14 18:57:52 +08:00
2023-05-13 02:05:33 +08:00
2026-05-16 14:37:04 +08:00
2024-06-07 19:27:54 +08:00
2024-08-21 14:28:57 +08:00
2026-03-15 20:14:32 +00:00
2023-03-11 01:55:32 +08:00
2020-12-08 13:49:12 +08:00
2022-02-10 04:12:35 +08:00
2022-10-15 21:23:21 +08:00
2025-10-14 04:54:48 +08:00
2019-11-18 01:08:03 +08:00
2026-03-15 20:14:32 +00:00
2026-05-15 15:17:06 +08:00

Chirpy Jekyll Theme

A minimal, responsive, and feature-rich Jekyll theme for technical writing.

CI  Codacy Badge  GitHub license  Gem Version  Open in Dev Containers

Live Demo

Devices Mockup

Features

  • Design & UX - Responsive layout, Dark/Light modes, Localized UI language, and Dark mode images.
  • Content Management - Pinned posts, Hierarchical categories, Trending tags, Auto-generated Table of Contents, and Last modified dates.
  • Rich Text Support - Syntax highlighting, Mathematical expressions, Mermaid diagrams & flowcharts, and Embedded media.
  • Interactivity & Outreach - Built-in search, Multiple comment systems, and Atom feeds.
  • System & Optimization - PWA support, integrated Web analytics, and advanced SEO performance.

Documentation

To learn how to use, develop, and upgrade the project, please refer to the Wiki.

Contributing

Contributions (pull requests, issues, and discussions) are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated. For details, please refer to our Contributing Guidelines.

Credits

This project is built on the Jekyll ecosystem and integrates a collection of excellent libraries. Its avatar and favicon are sourced from ClipartMAX.

Furthermore, thanks to everyone who contributed to the development of this project!

all-contributors

License

This project is licensed under the MIT License.

S
Description
A minimal, responsive, and feature-rich Jekyll theme for technical writing.
Readme MIT 5.2 GiB
Languages
HTML 42.5%
SCSS 34.1%
JavaScript 17.9%
Shell 4.5%
Ruby 1%