Posted on 8/21/2019
This here that you are reading is a Glitch project, so to create your own site that is identical,
you just have to remix this. You can click this!
All posts live in src/
. There are 3 posts in this sample project:
index.md
, the 🏡instructions.md
, which you are reading right nowsample-post.md
, which is an example post that you can duplicate over and over again for new content.To create a new post, duplicate sample-post.md
,
and start writing! This should automatically redeploy your site! If you need to force a redeploy, just "fake edit" a post (add a space, remove a space).
That will definitely trigger a rebuild!
This site is written using eleventy, which is a static site generator. The docs are pretty helpful, but the TL; DR is:
src/_includes/layouts
. There are two layouts in this project
home.njk
, used by the index.md
postpost.njk
, used by all the other posts.css/style.css
Webrings are websites linked together. You know, your internet friends. We use Glitch collections to add your friends' sites to your webring.
src/_data/siteData.json
,
in the "collection" field. For example, the
collection we're using in this sample is at glitch.com/@notwaldorf/frands,
so we added "collection": "notwaldorf/frands"
to the config file.Your site is static -- it only gets redeployed when you make changes to it (like adding a new post). When you add a project to your Glitch collection, your site won't really pick it up until you rebuild it -- so just "fake edit" as described above!