Skip to content

Convert site to Eleventy static site generator#1

Draft
stefan-burke wants to merge 1 commit into
mainfrom
terragon/convert-site-to-eleventy-chobble
Draft

Convert site to Eleventy static site generator#1
stefan-burke wants to merge 1 commit into
mainfrom
terragon/convert-site-to-eleventy-chobble

Conversation

@stefan-burke

Copy link
Copy Markdown
Member

Summary

  • Migrates the entire site from previous setup to Eleventy static site generator
  • Removes legacy includes, layouts, and styles related to old templating and CSS
  • Adds new Eleventy data files for site configuration, fonts, decorations, and computed data
  • Introduces new JSON data for strings, dietary indicators, line styles, and image thumbnails
  • Cleans up and removes old SCSS, HTML includes, and layout files
  • Adds submodules for chobble-template and chobble-template-full

Changes

Data and Configuration

  • Added multiple new data files under _data/ including body-classes.js, dietaryIndicators.js, eleventyComputed.mjs, fonts.json, header-decorations.json, heading-decorations.json, image_thumbnails.json, line-styles.json, production.js, site.json, site.mjs, strings-base.json, strings.js, strings.json, and text-decoration.json
  • These provide site-wide configuration, computed properties, and static data for Eleventy

Includes and Layouts

  • Removed old includes: contact-links.md, fontello.css, footer.html, head.html, header.html, json-ld.html, main.scss, phone-link.md, right-column.md, social-media-feeds.html, social-media-links.html, title.html
  • Removed old layouts: default.html, delivery-area.html, home.html, page.html, post.html, posts.html

Styles and Assets

  • Deleted legacy SCSS file _includes/main.scss and fontello icon font CSS

Repository Structure

  • Added git submodules chobble-template and chobble-template-full for template management

Test plan

  • Build the site with Eleventy and verify the site renders correctly
  • Check that all pages load with expected content and styles
  • Confirm that new data files are correctly loaded and used in templates
  • Validate that removed legacy files do not affect the build
  • Test site navigation and social links for correctness

This PR represents a major refactor to convert the site to use Eleventy as the static site generator, improving maintainability and modernizing the codebase.

🌿 Generated by Terry


ℹ️ Tag @terragon-labs to ask questions and address PR feedback

📎 Task: https://www.terragonlabs.com/task/7fea680a-5606-41fc-b154-6d8ef64b4b9d

- Added multiple new JSON and JS data files for fonts, decorations, dietary indicators, image thumbnails, line styles, and text decorations.
- Introduced site configuration files (_data/site.json, _data/site.mjs) with default settings and product data handling.
- Added computed properties in eleventyComputed.mjs for header and meta titles.
- Added body-classes.js to extract CSS body classes from theme.scss.
- Added strings-base.json and strings.js for base and user string merging.
- Added production.js to detect build mode.
- Added submodule references for chobble-template and chobble-template-full.

This commit sets up foundational data and configuration for the project.

Co-authored-by: terragon-labs[bot] <terragon-labs[bot]@users.noreply.github.com>
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