You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Adding a page (example)](#adding-a-page-example)
18
+
-[Updating an existing page](#updating-an-existing-page)
19
+
-[Updating side nav links](#updating-side-nav-links)
20
+
-[Testing locally](#testing-locally)
19
21
-[Original Author](#original-author)
20
22
-[License](#license)
21
23
22
-
## Contents
23
-
24
-
### Directory organization
24
+
## Directory organization of Repo
25
25
26
26
(only highlighting folders and files relevant to updating site)
27
27
@@ -49,37 +49,70 @@ Included are instructions for how to update the team website with a focus on the
49
49
50
50
```
51
51
52
-
- Main takeaway: To update the contents of the website you will only need to add/remove/update markdown files in the main directory.
52
+
## MUST READ - how jekyll works
53
53
54
-
- To incorporate images or any other files into the site please put them in `/public/assets/`
54
+
1. How jekyll knows to work its magic on a markdown or html file is based on the file's [YAML front matter block](https://jekyllrb.com/docs/front-matter/).
55
55
56
-
- Extra: Updates to formating is done in the 3 directories: `/_includes/``/_layouts/` and `/_public/`
56
+
e.g.,
57
+
```
58
+
---
59
+
layout: page
60
+
title: About
61
+
permalink: /about/
62
+
---
63
+
```
64
+
-**no front matter = not included in the website** (e.g., jekyll knows not to include this README.md you are reading because there is no front matter)
65
+
66
+
2. Main takeaway: To update the **contents of the website** you will only need to add/remove/update the markdown files with front matter in the main directory. (e.g., [3people.md](3people.md)) More instructions in [Updating website content](#updating-website-content).
57
67
58
-
### Home page (default) vs. all other pages
68
+
-**Do not alter the files in `_includes`, `_layouts` for now.**
69
+
70
+
#### Home page (default) vs. all other pages
59
71
60
72
- How jekyll knows to work its magic on a markdown or html file is based on the file's [YAML front matter block](https://jekyllrb.com/docs/front-matter/).
61
73
62
-
- no front matter = not included in the website (e.g., this readme)
63
-
64
74
- Currently, there are 2 page layouts (templates) used in our site:
65
-
-`/_layouts/default.html`
66
-
-`/_layouts/page.html`
75
+
-`default` via */_layouts/default.html*
76
+
-`page` via */_layouts/page.html`*
67
77
68
-
- The way that they are merged with the markdown files is via the front matter:
78
+
- The way that the styling is merged with the markdown files is via `layout` in the front matter:
79
+
e.g.,
80
+
```
81
+
---
82
+
layout: page
83
+
title: About
84
+
permalink: /about/
85
+
---
86
+
```
69
87
70
-
```
71
-
---
72
-
layout: page
73
-
title: About
74
-
permalink: /about/
75
-
---
76
-
```
88
+
-`layout: page` is to be used for almost all of the pages you want included in the site
89
+
90
+
-`layout: default` is only used for the home page [index.md](index.md) because it has some additional formatting + appears as the first option in the top menu bar
91
+
92
+
>From the Hyde repo: "**Why require a specific layout?** Jekyll will return *all* pages, including the `atom.xml`, and with an alphabetical sort order. To ensure the first link is *Home*, we exclude the `index.md` page from this list by specifying the `default` layout."
93
+
94
+
95
+
## Updating website content
96
+
97
+
- To update the contents of the website you will only need to add/remove/update markdown files in the main directory.
98
+
99
+
- To incorporate images or any other files into the site please put them in `/public/assets/`
100
+
101
+
102
+
#### Updating an existing page
103
+
104
+
1. Clone this repository
105
+
2. Create a branch from the 'master' branch of THIS repository (not the poole/hyde one)
106
+
3.
107
+
108
+
- In the main directory, open the markdown file
109
+
- make whatever changes to the content you want
110
+
- save it and push changes
111
+
112
+
(it's that easy :smiley:)
77
113
78
-
-`layout: default` should only be used for the home page because it has some additional formatting + appears as the first option in the top menu bar
79
114
80
-
>From the Hyde repo: "**Why require a specific layout?** Jekyll will return *all* pages, including the `atom.xml`, and with an alphabetical sort order. To ensure the first link is *Home*, we exclude the `index.md` page from this list by specifying the `default` layout."
81
115
82
-
-`layout: page` is used for all other pages you want included in the site. More instructions for adding a new page below.
83
116
84
117
#### Adding a page (example)
85
118
@@ -108,20 +141,20 @@ permalink: /contact/
108
141
109
142
- when done save and push changes, jekyll will take care of the rest
110
143
111
-
#### Updating an existing page
112
144
113
-
- In the main directory, open the markdown file
114
-
- make whatever changes to the content you want
115
-
- save it and push changes
116
-
117
-
(it's that easy :smiley:)
145
+
## Updating the styling
146
+
147
+
- Extra: Updates to formating is done in the 3 directories: `/_includes/``/_layouts/` and `/_public/`
118
148
119
149
### Updating side nav links
120
150
121
151
The file that needs to be updated is `/_inclues/sidebar.html`
122
152
123
153
Look for the `sidebar-nav-item` tags
124
154
155
+
156
+
157
+
125
158
### Testing locally
126
159
127
160
If you want to test/preview the site locally as you make changes
0 commit comments