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
4. After you edit files on your desktop as desired, do:
16
+
```
17
+
git checkout -b BRANCH_NAME
18
+
git add FILES
19
+
git commit -m "my changes"
20
+
git push (or you might need to do git push --set-upstream origin BRANCH_NAME)
11
21
```
12
-
3. Initialize hugo
22
+
23
+
4. Then go to https://github.com/YOUR_GITHUB_ID/OBF.github.io to make a PR
24
+
5. Once the PR is merged, your changes should be visible on [https://obf.github.io/](https://obf.github.io/)
25
+
26
+
### Using hugo
27
+
1.[Install hugo](https://gohugo.io/installation/)
28
+
2. Initialize hugo
13
29
```
14
-
cd OBF.github.io
15
30
git submodule init
16
31
git submodule update
17
32
```
18
-
4. Run `hugo server` from the root folder of the project to get a
19
-
local server that automatically rebuilds:
33
+
4. Run `hugo server` from the root folder of the project to launch a local server that automatically rebuilds:
20
34
```
21
35
hugo server &
22
36
```
23
37
5. View the site in your web browser by going to [http://localhost:1313/](http://localhost:1313/)
24
38
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
-
```
29
-
git checkout -b BRANCH_NAME
30
-
git add FILES
31
-
git commit -m "my changes"
32
-
git push (or you might need to do git push --set-upstream origin BRANCH_NAME)
33
-
```
34
-
(Then go to https://github.com/OBF/OBF.github.io to make a PR)
35
-
8. Once the PR is merged, your changes should be visible on [https://obf.github.io/](https://obf.github.io/)
0 commit comments