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
Copy file name to clipboardExpand all lines: README.md
+16-5Lines changed: 16 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,22 +6,33 @@ Migration of the OBF WP site to a static site generator (Hugo)
6
6
7
7
1.[Install hugo](https://gohugo.io/installation/)
8
8
2. Clone the GH repo:
9
+
```
9
10
git clone https://github.com/OBF/OBF.github.io
11
+
```
10
12
3. Initialize hugo
13
+
```
11
14
cd OBF.github.io
12
15
git submodule init
13
16
git submodule update
14
-
4. Run `hugo server` from the root folder of the project to get a local server that automatically rebuilds
17
+
```
18
+
4. Run `hugo server` from the root folder of the project to get a
19
+
local server that automatically rebuilds:
20
+
```
15
21
hugo server &
22
+
```
16
23
5. View the site in your web browser by going to [http://localhost:1313/](http://localhost:1313/)
17
-
6. When you edit stuff, you should be able to reload http://localhost:1313/ to instantly see the changes!
18
-
7. To push your changes back to the live site, remember to commit them:
24
+
6. When you make changes, you should be able to reload http://localhost:1313/ to instantly see the changes!
25
+
7. To push your changes back to the live site, remember to commit
26
+
them. First you will need a
27
+
[GitHub personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens). Then do:
28
+
```
19
29
git checkout -b BRANCH_NAME
20
30
git add FILES
21
31
git commit -m "my changes"
22
-
git push
32
+
git push (or you might need to do git push --set-upstream origin BRANCH_NAME)
33
+
```
23
34
(Then go to https://github.com/OBF/OBF.github.io to make a PR)
24
-
8. Once the PR is merged, your changes should be visible on https://obf.github.io/
35
+
8. Once the PR is merged, your changes should be visible on [https://obf.github.io/](https://obf.github.io/)
0 commit comments