mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2026-06-21 23:38:39 +00:00
ceb2a41463cbb6251fa257b640990a8d9717b0bb
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.
Chirpy Jekyll Theme
A minimal, responsive, and feature-rich Jekyll theme for technical writing.
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!
License
This project is licensed under the MIT License.
Languages
HTML
42.5%
SCSS
34.1%
JavaScript
17.9%
Shell
4.5%
Ruby
1%
