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
+22-6Lines changed: 22 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,30 @@
1
-
# test conversion of the obf website
1
+
# conversion of the obf website to GitHub pages
2
2
3
-
Exploring the migration of the OBF WP site to a static site generator
3
+
Migration of the OBF WP site to a static site generator (Hugo)
4
4
5
-
6
-
## Running locally
5
+
## Running hugo server locally
7
6
8
7
1.[Install hugo](https://gohugo.io/installation/)
9
-
2. Run `hugo server` from the root folder of the project to get a local server that automatically rebuilds
8
+
2. Clone the GH repo:
9
+
git clone https://github.com/OBF/OBF.github.io
10
+
3. Initialize hugo
11
+
cd OBF.github.io
12
+
git submodule init
13
+
git submodule update
14
+
4. Run `hugo server` from the root folder of the project to get a local server that automatically rebuilds
15
+
hugo server &
16
+
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:
19
+
git checkout -b BRANCH_NAME
20
+
git add FILES
21
+
git commit -m "my changes"
22
+
git push
23
+
(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/
25
+
10
26
11
-
## Steps taken
27
+
## Steps taken to port content from old WP site
12
28
13
29
1. Create XML export of existing WP site with all pages & posts
14
30
2. Run the conversion script [wp2hugo](https://github.com/ashishb/wp2hugo) in the following way `/wp2hugo -source obf.WordPress.2025-01-30.xml -output obf-test-hugo -download-media -continue-on-media-download-error`
0 commit comments