Site is built with 11ty and deploys to 100% static files via GitHub pages.
DO NOT EDIT FILES IN THE
gh-pages
BRANCH!!!
That branch gets auto generated/deployed when you push a commit in the main/master
- Make sure you have Node.js installed on your local machine
- Clone this repo
- Open the resulting folder in a terminal
npm install
npm start
- Open the url displayed in the terminal results. Normally it's http://localhost:8080/ but it could be different if you have multiple sites running at once
Now you can make changes and see the results before you commit said changes. 😄
All of the "data" is stored in .yaml
files located in ./_site/_data/
. Simply commit and push your changes to trigger a build and deploy.
- Create a
.md
file in./_site/news/
- File name format should be
YYYY-MM-slug
- File name format should be
- Use frontmatter at the top of the file:
---
title: My news post
poster: https://optional-path-to-img.jpg
date: YYYY-MM-DD
---
Here's _my_ **amazing** news/blog post. {.text-center}
title:
= Post titleposter:
= Optional image, remove this line if you don't have an imagedate:
= Required date field used to sort posts correctly, this must be inYYYY-MM-DD
format
Then just write your news/blog post in normal markdown. You can also use markdown-it-attrs to apply Twind classes or other accessible attributes.
- News/Blog titles should be sentence case
- Don't Write Your Title Like This
- Do write your title like this
- Don't use a period at the end of your news/blog title
- If you need to use a heading, only use
## Heading title
for accessibility reasons - More to come...
04/30/2023
- 11ty re-write
- News section
05/17/2019
- Removed build requirement
- Switched to Twind css-in-js
03/07/2019
- Decompressed the HTML output
- Added a true asset pipeline so future HTML/CSS/JS revisions will not require a cache flush or hard refresh from the user
- Removed the BrowserSync option since it is not compatible with an asset pipeline. Now you will have to manually click refresh in your browser when developing/testing locally
09/03/2018
- Complete rewrite
- Assets now fully compressed
- CSS is now responsive and functional using TailwindCSS
- Most data is templated via Vue.js
- Now uses a gulp build process (which includes a mini web server that auto reloads as you edit the CSS, JS, HTML)