Skip to content

Commit 7859432

Browse files
committed
Made paths relative for github pages and inlined icons
1 parent c97c0af commit 7859432

5 files changed

Lines changed: 73 additions & 4 deletions

File tree

package-lock.json

Lines changed: 67 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
],
1010
"scripts": {
1111
"dev": "parcel",
12-
"build": "parcel build"
12+
"build": "parcel build --public-url \"./\""
1313
},
1414
"keywords": [],
1515
"author": "",
1616
"license": "ISC",
1717
"type": "commonjs",
1818
"devDependencies": {
19+
"@parcel/optimizer-data-url": "^2.14.4",
20+
"@parcel/transformer-inline-string": "^2.14.4",
1921
"@parcel/transformer-pug": "^2.14.4",
2022
"@tailwindcss/postcss": "^4.1.5",
2123
"parcel": "^2.14.4",

src/401.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
- var description = "We're sorry, but your request is not formatted as the service would expect it. Try reloading the page and check if your request is in the correct format for this endpoint.";
44
- var actionText = "Try again";
55
- var actionCode = "window.location.reload()";
6-
- var img = "401.jpeg";
6+
- var img = "data-url:401.jpeg";
77

88
include error.pug

src/404.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
- var description = "We're sorry, but the requested ressource was not found on the server. Try checking if your URL is correct and ensure that the ressource still exists.";
44
- var actionText = "Go Back";
55
- var actionCode = "window.history.back()";
6-
- var img = "404.jpeg";
6+
- var img = "data-url:404.jpeg";
77

88
include error.pug

src/502.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
- var description = "We're sorry, but the server for this service/endpoint is currently unavailable or not able to respond in time. Please try again later.";
44
- var actionText = "Try again";
55
- var actionCode = "window.location.reload()";
6-
- var img = "502.jpeg";
6+
- var img = "data-url:502.jpeg";
77

88
include error.pug

0 commit comments

Comments
 (0)