Skip to content

Commit

Permalink
[ Makefile ] fix CSS path in local build
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikNordvallForsberg committed Jul 27, 2024
1 parent 855be6b commit c44a5a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,8 @@ healthcheck:

build:
github-pages build
# fix local CSS paths
find _site -maxdepth 1 -mindepth 1 -type f -name "*.html" -exec sed -i 's_\"/assets/css/style.css?v=_\"assets/css/style.css?v=_g' {} +
find _site -maxdepth 2 -mindepth 2 -type f -name "*.html" -exec sed -i 's_\"/assets/css/style.css?v=_\"../assets/css/style.css?v=_g' {} +
find _site -maxdepth 3 -mindepth 3 -type f -name "*.html" -exec sed -i 's_\"/assets/css/style.css?v=_\"../../assets/css/style.css?v=_g' {} +
find _site -maxdepth 4 -mindepth 4 -type f -name "*.html" -exec sed -i 's_\"/assets/css/style.css?v=_\"../../../assets/css/style.css?v=_g' {} +

0 comments on commit c44a5a4

Please sign in to comment.