Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4837533

Browse files
committedMay 30, 2025·
update 404 page and broken banner image script (missing id)
1 parent d34fdd7 commit 4837533

File tree

12 files changed

+111
-24
lines changed

12 files changed

+111
-24
lines changed
 

‎build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
SITEURL = "https://dragoncoder047.github.io"
1313
LOGO = "/images/yazani/yazani_1_extracted_bg.png"
1414
LOGO_AREA_HTML = ('<a href="/" class="flex-row"><div class="flex-row">'
15-
f'<img src="{LOGO}" style="max-height:10em" />'
15+
f'<img src="{LOGO}" style="max-height:10em" '
16+
'id="banner-image" />'
1617
'<div id="sitename-text">'
1718
f'<h1>{SITENAME}</h1><h2>{SITESUBTITLE}</h2>'
1819
'</div></div></a>')

‎docs/404.html

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

‎docs/drafts/pages/lifeviewer-test.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/drafts/pages/testpage.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/ie-is-not-supported.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/index.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/pages/projects.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/pages/ulisp_howto.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/pages/ulisp_howto/backquote.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/pages/ulisp_howto/catch_throw.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/pages/ulisp_howto/macros.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎markdown/pages/404.md

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,40 @@
1-
Title: Oooops&hellip;
1+
Title: uh oh
2+
Status: hidden
23
Save_as: 404.html
3-
Description: Don't bother clicking -- this doesn't go anywhere useful.
4+
Description: Don't bother clicking, this doesn't go anywhere useful.
45

5-
## Page Not Found
6+
<!-- TODO: get an image for this page? -->
7+
<!-- markdownlint-disable blanks-around-fences -->
68

7-
Dunno what you wanted, but it sure ain't this. [Go back](javascript:history.back()).
9+
```txt
10+
444444444 000000000 444444444
11+
4::::::::4 00:::::::::00 4::::::::4
12+
4:::::::::4 00:::::::::::::00 4:::::::::4
13+
4::::44::::4 0:::::::000:::::::0 4::::44::::4
14+
4::::4 4::::4 0::::::0 0::::::0 4::::4 4::::4
15+
4::::4 4::::4 0:::::0 0:::::0 4::::4 4::::4
16+
4::::4 4::::4 0:::::0 0:::::0 4::::4 4::::4
17+
4::::444444::::444 0:::::0 0:::::0 4::::444444::::444
18+
4::::::::::::::::4 0:::::0 0:::::0 4::::::::::::::::4
19+
4444444444:::::444 0:::::0 0:::::0 4444444444:::::444
20+
4::::4 0:::::0 0:::::0 4::::4
21+
4::::4 0::::::0 0::::::0 4::::4
22+
4::::4 0:::::::000:::::::0 4::::4
23+
44::::::44 00:::::::::::::00 44::::::44
24+
4::::::::4 00:::::::::00 4::::::::4
25+
4444444444 000000000 4444444444
26+
```
27+
{style="text-align: center"}
28+
29+
<p id="message">You appear to have found a bug in my software.</p>
30+
31+
[Go back](javascript:history.back()).
32+
33+
<script>
34+
// update link if it was an internal link
35+
var m = document.getElementById("message");
36+
if (/\/\/dragoncoder047.github.io\//.test(document.referrer)) {
37+
var repo = /dragoncoder047.github.io\/(\w+)/.exec(document.referrer)?.[1] || "dragoncoder047.github.io";
38+
m.innerHTML = `Sorry for the broken link. If it doesn&apos;t get fixed soon, please <a href="https://github.com/dragoncoder047/${repo}/issues/new?title=Broken%20link&body=I%20found%20a%20broken%20link.%0A%0A*%20Page%20from:%20${encodeURIComponent(document.referrer)}%0A*%20Not%20found%20page:%20${encodeURIComponent(window.location.href)}">report it</a>.`;
39+
}
40+
</script>

0 commit comments

Comments
 (0)
Please sign in to comment.