This commit is contained in:
commit
0e6eed1fcb
5 changed files with 188 additions and 0 deletions
42
README.md
Normal file
42
README.md
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# My website
|
||||
|
||||
Live at **https://__STUDENT__.classproject.dev**
|
||||
|
||||
## Working on it in class
|
||||
|
||||
```bash
|
||||
git clone https://git.classproject.dev/__STUDENT__/site.git
|
||||
cd site
|
||||
```
|
||||
|
||||
Then every time you change something:
|
||||
|
||||
```bash
|
||||
git add .
|
||||
git commit -m "say what you changed"
|
||||
git push
|
||||
```
|
||||
|
||||
About a minute after you push, your live page updates. You can watch it
|
||||
happen under **Actions** on the repo page.
|
||||
|
||||
## Working on it at home
|
||||
|
||||
You don't need your class laptop. Go to
|
||||
**https://git.classproject.dev/__STUDENT__/site**, sign in, click a file,
|
||||
and click the pencil to edit it. Commit at the bottom of the page. That
|
||||
counts as a push, so your site updates the same way.
|
||||
|
||||
## Files
|
||||
|
||||
| File | What it is |
|
||||
|---|---|
|
||||
| `index.html` | Your home page. Must keep this exact name. |
|
||||
| `style.css` | How the page looks. |
|
||||
| `images/` | Put pictures here. |
|
||||
|
||||
## If something breaks
|
||||
|
||||
Your page has to be called `index.html`, all lowercase, in the top folder.
|
||||
File names should be lowercase with hyphens: `my-cat.jpg`, not `My Cat.JPG`.
|
||||
The web is fussy about capital letters in a way your laptop is not.
|
||||
Loading…
Add table
Add a link
Reference in a new issue