Skip to content

Commit

Permalink
🍪🌠 Add Setup Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Glitch (nerdly) committed Jan 30, 2020
1 parent 01262f6 commit 083815d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 30 deletions.
10 changes: 5 additions & 5 deletions .firebase/hosting.ZGlzdA.cache
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dist/dist/app.webmanifest,1576778342000,f61f27bd17de546264aa58f40f3aafaac7021e0e
dist/dist/dist/app.webmanifest,1576406428000,f61f27bd17de546264aa58f40f3aafaac7021e0ef69c17f6b1b4cd7664a037ec
dist/dist/dist/dist/app.webmanifest,1576406428000,f61f27bd17de546264aa58f40f3aafaac7021e0ef69c17f6b1b4cd7664a037ec
instructions/index.html,1576402476000,c88d532325665426ef68be3de674aa05975db538e254722ea32359d63400db88
jenga/App.css,1579908279000,4f2f9a7549998c1397f979e898479ac6d0397988b2ef9abf8ac228adc6a5b90b
jenga/Prism.css,1579907965000,c9ca2758d0ca92bacfdbfa3006ffa015334718ea6dce7eed36c7441262cdfaee
jenga/Prism.js,1579907965000,16f9ea8b37288f4e993d8e264bf998f9574810bd086c51a3442b5a44414c9a9e
posts/es6-for-of-loop/index.html,1579908112000,ef5f21c8497d48becbe348eee696f161fee17a144ffe2b8b26d52716ebc53b2e
Expand All @@ -16,8 +17,7 @@ posts/using-forEach-in-javascript/index.html,1579908112000,150ded32a9a8be1dea5c2
posts/welcome-to-my-tiny-blog/index.html,1576405112000,871497cebc20a7333a0c9c5b50eeadd94ebdbb80a2ffb95151d0ed175c0d338b
posts/why-i-prefer-function-expression-over-function-expression-in-javascript/index.html,1576413193000,f61f27bd17de546264aa58f40f3aafaac7021e0ef69c17f6b1b4cd7664a037ec
welcome-to-my-tiny-blog/index.html,1576402824000,2400c43e52326f4387bf40ce7003320b5d1a6dcc7d71661ea130f594c1726b35
index.html,1579908297000,15f2cadaaa5d429af13bc7961097c26c1b46f4f90050dce42a4d531b3d285979
jenga/App.css,1579908279000,4f2f9a7549998c1397f979e898479ac6d0397988b2ef9abf8ac228adc6a5b90b
posts/clone-nerdly/index.html,1579908297000,8492f886ac00a9bc7aff30ac5d5560f0c0d244cfcdee92f8f118f60b88c2bebe
posts/function-expressions/index.html,1579908297000,59b83534eb5a323c4d72ac98bee1be4af545809aff5f4c525f54f9dec847cbc0
posts/welcome-to-nerdly-by-maye-edwin/index.html,1579908297000,f3be6b9c72593c245e5444d929b1809cf23dca3c23a2f37add219d47b00fcfbe
index.html,1580343426000,1c20fbf42e5e7b1de168c563283a7271c099472662b9fdfaa24e954b984196d3
posts/clone-nerdly/index.html,1580343426000,7ca744d41a201e8fa130686eb42aa02ab70f6e4f96b9771cdacf20b616376396
posts/function-expressions/index.html,1580343426000,59b83534eb5a323c4d72ac98bee1be4af545809aff5f4c525f54f9dec847cbc0
posts/welcome-to-nerdly-by-maye-edwin/index.html,1580343426000,f3be6b9c72593c245e5444d929b1809cf23dca3c23a2f37add219d47b00fcfbe
37 changes: 12 additions & 25 deletions src/posts/clone-nerdly.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: layouts/post.njk
title: How to clone this site
date: 2019-12-15
title: How to clone Nerdly
date: 2020-01-30
---
# Instructions for survival

Expand All @@ -11,18 +11,19 @@ date: 2019-12-15
## 🗣 How to clone this site

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!
<a class="glitch-remix" href="https://glitch.com/edit/#!/remix/geoglitches">
<img alt="Remix on Glitch" src="https://cdn.gomix.com/f3620a78-0ad3-4f81-a271-c8a4faa20f86%2Fremix-button.svg">
you just have to remix this. You can [fork on GitHub](https://github.com/mayeedwin/nerdly/fork/) or remix on Glitch!

<a href="https://glitch.com/edit/?utm_content=project_nerdly&utm_source=remix_this&utm_medium=button&utm_campaign=glitchButton#!/remix/nerdly">
<img src="https://cdn.glitch.com/2bdfb3f8-05ef-4035-a06e-2043962a3a13%2Fremix%402x.png?1513093958726" alt="remix this" height="33">
</a>

### 📝 Add new posts
All posts live in `src/`. There are 3 posts in this sample project:
- `index.md`, the 🏡
- `instructions.md`, which you are reading right now
- `sample-post.md`, which is an example post that you can duplicate over and over again for new content.
All posts live in `src/posts/`. There are a few posts;

- `clone-nerdly.md`, which you are reading right now
- `welcome-to-nerdly-by-maye-edwin.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`](https://glitch.com/edit/#!/geoglitchies?path=src/sample-post.md:7:107),
To create a new post, duplicate `welcome-to-nerdly-by-maye-edwin.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!

Expand All @@ -36,18 +37,4 @@ but the TL; DR is:
this is what you should modify.
- the styles come from `css/style.css`

## 💍 Webring
[Webrings](https://en.wikipedia.org/wiki/Webring) are websites linked together. You know, your internet friends.
We use [Glitch collections](https://support.glitch.com/t/get-organized-with-collections/8038) to add your friends' sites to your webring.
1. Create a Glitch collection
2. Add its name to [`src/_data/siteData.json`](https://glitch.com/edit/#!/geoglitchies?path=src/_data/siteData.json:3:19),
in the "collection" field. For example, the
collection we're using in this sample is at [glitch.com/@notwaldorf/frands](https://glitch.com/@notwaldorf/frands"),
so we added `"collection": "notwaldorf/frands"` to the config file.
3. Start adding projects to that collection!
3. That's it! The projects will be automatically populated (if you're interested, that code is
[here](https://glitch.com/edit/#!/geoglitchies?path=src/_data/friends.js:11:6))

### 👩‍⚕️ Help! I've added a site to my collection but it doesn't show up in the webring
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!
Enjoy!

0 comments on commit 083815d

Please sign in to comment.