Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/craigerskine/openemu.org-11ty
openemu.org 11ty site with news section
https://github.com/craigerskine/openemu.org-11ty
Last synced: 1 day ago
JSON representation
openemu.org 11ty site with news section
- Host: GitHub
- URL: https://github.com/craigerskine/openemu.org-11ty
- Owner: craigerskine
- License: apache-2.0
- Created: 2023-03-30T00:53:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-16T15:04:17.000Z (about 1 month ago)
- Last Synced: 2024-10-18T05:17:01.684Z (about 1 month ago)
- Language: Nunjucks
- Homepage: https://craigerskine.github.io/openemu.org-11ty/
- Size: 32.6 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# openemu.github.io | openemu.org
- [x] [11ty](https://11ty.dev)
- [x] [Twind](https://twind.style)
- [x] [Alpine.js](https://alpinejs.dev)
- [x] [esbuild](https://esbuild.github.io)Site is built with [11ty](https://11ty.dev) 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***
### :floppy_disk: Local install
- Make sure you have [Node.js](https://nodejs.org) 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 onceNow you can make changes and see the results before you commit said changes. :smile:
***
### :pencil2: UpdatingAll of the "data" is stored in `.yaml` files located in `./_site/_data/`. Simply commit and push your changes to trigger a build and deploy.
***
### :memo: Posting news- Create a `.md` file in `./_site/news/`
- File name format should be `YYYY-MM-slug`
- Use frontmatter at the top of the file:
```md
---
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 title
- `poster:` = Optional image, remove this line if you don't have an image
- `date:` = Required date field used to sort posts correctly, this must be in `YYYY-MM-DD` formatThen just write your news/blog post in normal markdown. You can also use [markdown-it-attrs](https://github.com/arve0/markdown-it-attrs) to apply [Twind](https://twind.style) classes or other accessible attributes.
***
### :speaking_head: Voice- 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...***
### :timer_clock: Changes**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)