A custom responsive template for Eleventy 3 using DaisyUI.
- Custom 404 page
- Automatic copyright year - never have to update it again
- Theme control with DaisyUI, and a theme switcher
- About page
- Demo terms of service and privacy policy pages
- Demo contact form page
- Mobile support in the header
- Blog support
- Scheduling blog posts and drafts
- Fontawesome icons
- Accessibility improvements
- Automatic sitemap generation
- RSS/Atom feed
- Clone this repository
- Run
npm install
- Modify the content in the
src
folder - be sure to update the_data/site.json5
file with your site's information - Run
npm start
to start the development server and test your changes - Run
npm run build
to build the project - the output will be in the_site
folder
- Go into the
_data/site.json5
file and make sure theblog
value is set totrue
- Create a new markdown file in the
blog
folder - Add the following front matter to the file:
---
title: "First Blog Post"
date: 2023-10-01
author: "John Doe"
layout: blogPost.njk
---
- Add your content below the front matter, this will be the content of your blog post
- Repeat steps 2-4 for each blog post you want to add
This project is licensed under the MIT License - see the LICENSE file for details.
- Fixes a bug by replacing directional rules with logical CSS properties instead, according to DaisyUI update 4.x
- Update to Eleventy 3.0.0
- Update to DaisyUI 4.12.13
- Add RSS/Atom feed
Eleventy 3 release notes: https://github.com/11ty/eleventy/releases/tag/v3.0.0
DaisyUI 4 release notes: https://daisyui.com/docs/changelog/ We upgraded from 3.x to 4.x, so be sure to check the 4.0.0 changelog for any breaking changes.
The Atom feed is available at /feed.xml
and pulls data from the main data file, _data/site.json5
. The feed includes the title, description, and URL of the site, as well as the title, description, and URL of each blog post.
- Add blog scheduling and drafts
- Cleanup the Eleventy config file
- Add sitemap generation
- Update theme toggle to use DaisyUI component
- Add Fontawesome icons
- Accessibility improvements
- Example Terms of Service and Privacy Policy pages
- Add about page
- Add demo contact form page
- Better mobile support in the header
- Fix the blog post list template
- Add a "back to the blog" breadcrumb to the blog post template
- Initial release