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
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,13 @@
3
3
Exploring the migration of the OBF WP site to a static site generator
4
4
5
5
6
+
## Running locally
7
+
8
+
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
10
+
6
11
## Steps taken
7
12
8
13
1. Create XML export of existing WP site with all pages & posts
9
14
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`
10
15
3. update the `hugo.yaml` to use the correct base page (as currently not deployed on open-bio.org)
11
-
4. remove any leading `/` in media `/wp` paths, as test site isn't deployed to open-bio.org yet: `find . -type f -name '*.md' -exec sed -i "s/image: \/wp/image: \/obf-hugo-test\/wp/g" {} +` & `find . -type f -name '*.md' -exec sed -i "s/](\//](\/obf-hugo-test\//g" {} +`
0 commit comments