Port Cycle to Hugo theme #2
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR completely migrates Cycle from a Common Lisp/Mustache static site generator to a Hugo theme while maintaining the exact same output, design, and user experience.
Motivation
The original Cycle static site generator was built with Common Lisp and Mustache templates, which created barriers for adoption and contribution. Hugo is a widely-used, well-maintained static site generator with excellent performance and a large ecosystem. Porting Cycle to a Hugo theme makes it more accessible while preserving its clean, minimal design philosophy.
Changes
Theme Structure
themes/cycle/with proper directory structuretheme.tomlTemplate Conversion
All Mustache templates have been converted to Hugo's Go template syntax:
Data Migration
_index.mdFeatures Preserved
Testing
Built example site successfully with 186 pages:
Screenshots
Home Page
The home page maintains the same welcoming intro and recent posts list as the original.
Archive Page
The archive page lists all posts chronologically with excerpts, matching the original design exactly.
Usage
Users can now use Cycle as a standard Hugo theme:
Documentation
README.orgwith Hugo installation and usage instructionsthemes/cycle/README.mdwith detailed theme documentationthemes/cycle/exampleSite/Breaking Changes
This is a complete rewrite that replaces the Common Lisp implementation with a Hugo theme. Users of the original Cycle will need to:
/tmp/convert_posts.pyin development)hugoinstead of the Cycle binaryThe output HTML and design remain identical, so existing sites will look and function exactly the same after migration.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.