StackStorm / stackstorm.com

StackStorm website and blog based on Github static pages.
https://stackstorm.com/
Apache License 2.0
0 stars 4 forks source link

Fix the /paths from absolute to relative in HTML #5

Open arm4b opened 2 years ago

arm4b commented 2 years ago

If someone tries to clone the repo and work with it as GH static pages or local preview the website might not render properly if served from the subdir, missing the images, js, and, css (404). That's because the static content is served based on / absolute path instead of relative.

Someone needs to go through the pages and fix the paths to static content so it works properly even if the website is served from the subdirectory like github-static-pages.com/stackstorm.com/.

Example https://github.com/StackStorm/stackstorm.com/blob/main/index.html:

-   <link rel="stylesheet" id="dashicons-css" href="/wp/wp-includes/css/dashicons.min.css?ver=09e48cfb58fec140b4ee0c6d1d4da1b2" type="text/css" media="all">
+   <link rel="stylesheet" id="dashicons-css" href="wp/wp-includes/css/dashicons.min.css?ver=09e48cfb58fec140b4ee0c6d1d4da1b2" type="text/css" media="all">

Keep in mind the paths for stackstorm.com vs https://stackstorm.com/2022/05/10/stackstorm-3-7-0-released/ pages mgiht need different modifications.