diff options
author | nathansmith <nathansmith@posteo.com> | 2025-05-23 08:22:49 -0600 |
---|---|---|
committer | nathansmith <nathansmith@posteo.com> | 2025-05-23 08:22:49 -0600 |
commit | cf8b8c70cf01e8e369173138122a4043a132989c (patch) | |
tree | 232f2c508147f84fc69824511ff3c2d5706a09f1 /org | |
parent | 4e749697600bab526b1cf51bcca493f6d31d2e34 (diff) |
Fixed up blog a bit
Diffstat (limited to 'org')
-rw-r--r-- | org/blog/Makefile | 4 | ||||
-rw-r--r-- | org/blog/README.md | 7 | ||||
-rwxr-xr-x | org/blog/generate_html.scm | 6 | ||||
-rw-r--r-- | org/blog/index.xhtml (renamed from org/blog/index.html) | 120 | ||||
-rw-r--r-- | org/blog/template.html | 58 | ||||
-rw-r--r-- | org/blog/template.xhtml | 38 | ||||
-rw-r--r-- | org/index.xhtml | 2 |
7 files changed, 99 insertions, 136 deletions
diff --git a/org/blog/Makefile b/org/blog/Makefile index 4e13f8c..e644a6d 100644 --- a/org/blog/Makefile +++ b/org/blog/Makefile @@ -3,8 +3,8 @@ all: @echo Generating feed ./generate_feed.scm > feed.xml @echo Generating html - ./generate_html.scm > index.html + ./generate_html.scm > index.xhtml .PHONY: clean clean: - rm feed.xml index.html + rm feed.xml index.xhtml diff --git a/org/blog/README.md b/org/blog/README.md index f9c06f2..f961e85 100644 --- a/org/blog/README.md +++ b/org/blog/README.md @@ -1,4 +1,7 @@ # Nathan's shitty blog -I am known for making things more complex than they need to be and this is a good example of that. +I am known for making things more complex than they need to be and this is a +good example of that. -All the articles are in articles/ and articles.xml stores information about each article. feed.xml and index.html are generated from the articles.xml file using the scripts.
\ No newline at end of file +All the articles are in articles/ and articles.xml stores information about +each article. feed.xml and index.xhtml are generated from the articles.xml file +using the scripts. diff --git a/org/blog/generate_html.scm b/org/blog/generate_html.scm index 2d9baeb..c214ff1 100755 --- a/org/blog/generate_html.scm +++ b/org/blog/generate_html.scm @@ -21,7 +21,7 @@ (define (make-article-list-link article) (let ((title (cadr (list-ref article 0))) (name (cadr (list-ref article 2)))) - (string-append " <li><a href=\"#" name "\">" title "</a></li/>\n"))) + (string-append " <li><a href=\"#" name "\">" title "</a></li>\n"))) ;; Reads the article file and formats some stuff out (define (get-raw-article file) @@ -37,7 +37,7 @@ (pub-date (cadr (list-ref article 4))) (file (cadr (list-ref article 6)))) (string-append - "\n<table border=\"1\" width=\"60%\">\n" + "\n<table border=\"1\" width=\"60%\" bgcolor=\"#bebebe\">\n" " <tr><td><h2 id=\"" name "\">" title "</h2>--- " pub-date "</td></tr>\n" " <tr><td>" (get-raw-article file) " </td></tr>\n" @@ -45,7 +45,7 @@ ;; Generates a html blog from xml data (define (generate-html) - (let ((template (read-entire-file "template.html")) + (let ((template (read-entire-file "template.xhtml")) (article-list "<ul>\n") (article-cards "") (articles (call-with-input-file "articles.xml" diff --git a/org/blog/index.html b/org/blog/index.xhtml index 233ec2e..f46416e 100644 --- a/org/blog/index.html +++ b/org/blog/index.xhtml @@ -1,70 +1,50 @@ <!DOCTYPE html> -<html> - +<html xmlns="http://www.w3.org/1999/xhtml"> <head> - <title>Nathan's shitty blog</title> - <link rel="alternate" type="application/rss+xml" title="Nathan's shitty blog" href="feed.xml"> - -<style> - -body { - color: black; - background-image: url('../images/blog_background.png'); -} - -table { - color: black; - background-color: #bebebe; - margin-top: 10px; - margin-bottom: 10px; - margin-left: 10px; - margin-right: 10px; -} - -</style> - + <title>Nathan's shitty blog</title> + <link rel="icon" type="image/x-icon" href="../images/icon.png" /> + <link rel="alternate" type="application/rss+xml" title="Nathan's shitty blog" + href="feed.xml" /> </head> - -<body> - <a href="../index.html"><img src="../images/back_home.png" alt="Back to home page"/></a> - - <center> - <table border="1" width="60%"> - <tr> - <td> - <h1>Nathan's shitty blog</h1> - <a href="feed.xml" target="_blank"> - <img src="../images/rss.png" alt="rss"/> - </a> - <p> - I dont know if I will post often but here you go fucking world! - There is no topic, just me posting whatever is on my mind. Add - the feed to your feedreader <b>(you better have one)</b> so you - can stay updated on the things on my mind. - </p> - </td> - </tr> - - <tr> - <td> - <ul> - <li><a href="#second_place">Second place</a></li/> - <li><a href="#case_against_identity">Case against identity</a></li/> - <li><a href="#the_project">The project</a></li/> - <li><a href="#fakism">Fakism</a></li/> - <li><a href="#fuck_aba_therapy">Fuck aba therapy</a></li/> - <li><a href="#dogs_against_doge">Dogs against doge</a></li/> - <li><a href="#wikipedia">On the issue of wikipedia</a></li/> - <li><a href="#dreamlog1">Dream log 1</a></li/> - <li><a href="#overthinking">Overthinking</a></li/> +<body bgcolor="#dcd1ba" background="../images/blog_background.png"> + <a href="../index.xhtml"><img src="../images/back_home.png" alt="Back to home + page"/></a> + <center> + <table border="1" width="60%" bgcolor="#bebebe"> + <tr> + <td> + <h1>Nathan's shitty blog</h1> + <a href="feed.xml" target="_blank"> + <img src="../images/rss.png" alt="rss" /> + </a> + <p> + I dont know if I will post often but here you go fucking world! + There is no topic, just me posting whatever is on my mind. Add + the feed to your feedreader <b>(you better have one)</b> so you + can stay updated on the things on my mind. + </p> + </td> + </tr> + <tr> + <td> + <ul> + <li><a href="#second_place">Second place</a></li> + <li><a href="#case_against_identity">Case against identity</a></li> + <li><a href="#the_project">The project</a></li> + <li><a href="#fakism">Fakism</a></li> + <li><a href="#fuck_aba_therapy">Fuck aba therapy</a></li> + <li><a href="#dogs_against_doge">Dogs against doge</a></li> + <li><a href="#wikipedia">On the issue of wikipedia</a></li> + <li><a href="#dreamlog1">Dream log 1</a></li> + <li><a href="#overthinking">Overthinking</a></li> </ul> - </td> - </tr> - </table> + </td> + </tr> + </table> - -<table border="1" width="60%"> + +<table border="1" width="60%" bgcolor="#bebebe"> <tr><td><h2 id="second_place">Second place</h2>--- Wed, 30 Apr 2025 10:23:12 GMT</td></tr> <tr><td> <p> @@ -192,7 +172,7 @@ table { </td></tr> </table> -<table border="1" width="60%"> +<table border="1" width="60%" bgcolor="#bebebe"> <tr><td><h2 id="case_against_identity">Case against identity</h2>--- Thu, 24 Apr 2025 19:20:02 GMT</td></tr> <tr><td> <p> @@ -257,7 +237,7 @@ table { </td></tr> </table> -<table border="1" width="60%"> +<table border="1" width="60%" bgcolor="#bebebe"> <tr><td><h2 id="the_project">The project</h2>--- Sun, 20 Apr 2025 23:05:22 GMT</td></tr> <tr><td> <p> @@ -284,7 +264,7 @@ table { </td></tr> </table> -<table border="1" width="60%"> +<table border="1" width="60%" bgcolor="#bebebe"> <tr><td><h2 id="fakism">Fakism</h2>--- Mon, 14 Apr 2025 05:58:51 GMT</td></tr> <tr><td> <p> @@ -325,7 +305,7 @@ table { </td></tr> </table> -<table border="1" width="60%"> +<table border="1" width="60%" bgcolor="#bebebe"> <tr><td><h2 id="fuck_aba_therapy">Fuck aba therapy</h2>--- Fri, 11 Apr 2025 10:22:54 GMT</td></tr> <tr><td> <p> @@ -380,7 +360,7 @@ table { </td></tr> </table> -<table border="1" width="60%"> +<table border="1" width="60%" bgcolor="#bebebe"> <tr><td><h2 id="dogs_against_doge">Dogs against doge</h2>--- Sat, 5 Apr 2025 23:17:25 GMT</td></tr> <tr><td> <p> @@ -400,7 +380,7 @@ table { </td></tr> </table> -<table border="1" width="60%"> +<table border="1" width="60%" bgcolor="#bebebe"> <tr><td><h2 id="wikipedia">On the issue of wikipedia</h2>--- Mon, 31 Mar 2025 10:55:00 GMT</td></tr> <tr><td> <h3>Why do I write this?</h3> @@ -507,7 +487,7 @@ table { </td></tr> </table> -<table border="1" width="60%"> +<table border="1" width="60%" bgcolor="#bebebe"> <tr><td><h2 id="dreamlog1">Dream log 1</h2>--- Sun, 30 Mar 2025 01:51:00 GMT</td></tr> <tr><td> <p> @@ -525,7 +505,7 @@ table { </td></tr> </table> -<table border="1" width="60%"> +<table border="1" width="60%" bgcolor="#bebebe"> <tr><td><h2 id="overthinking">Overthinking</h2>--- Sat, 29 Mar 2025 11:42:00 GMT</td></tr> <tr><td> <p> @@ -547,6 +527,6 @@ table { </td></tr> </table> - </center> + </center> </body> </html> diff --git a/org/blog/template.html b/org/blog/template.html deleted file mode 100644 index d4eeffb..0000000 --- a/org/blog/template.html +++ /dev/null @@ -1,58 +0,0 @@ -<!DOCTYPE html> -<html> - -<head> - <title>Nathan's shitty blog</title> - <link rel="alternate" type="application/rss+xml" title="Nathan's shitty blog" href="feed.xml"> - -<style> - -body { - color: black; - background-image: url('../images/blog_background.png'); -} - -table { - color: black; - background-color: #bebebe; - margin-top: 10px; - margin-bottom: 10px; - margin-left: 10px; - margin-right: 10px; -} - -</style> - -</head> - -<body> - <a href="../index.html"><img src="../images/back_home.png" alt="Back to home page"/></a> - - <center> - <table border="1" width="60%"> - <tr> - <td> - <h1>Nathan's shitty blog</h1> - <a href="feed.xml" target="_blank"> - <img src="../images/rss.png" alt="rss"/> - </a> - <p> - I dont know if I will post often but here you go fucking world! - There is no topic, just me posting whatever is on my mind. Add - the feed to your feedreader <b>(you better have one)</b> so you - can stay updated on the things on my mind. - </p> - </td> - </tr> - - <tr> - <td> - ~a - </td> - </tr> - </table> - - ~a - </center> -</body> -</html> diff --git a/org/blog/template.xhtml b/org/blog/template.xhtml new file mode 100644 index 0000000..9269506 --- /dev/null +++ b/org/blog/template.xhtml @@ -0,0 +1,38 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>Nathan's shitty blog</title> + <link rel="icon" type="image/x-icon" href="../images/icon.png" /> + <link rel="alternate" type="application/rss+xml" title="Nathan's shitty blog" + href="feed.xml" /> +</head> +<body bgcolor="#dcd1ba" background="../images/blog_background.png"> + <a href="../index.xhtml"><img src="../images/back_home.png" alt="Back to home + page"/></a> + <center> + <table border="1" width="60%" bgcolor="#bebebe"> + <tr> + <td> + <h1>Nathan's shitty blog</h1> + <a href="feed.xml" target="_blank"> + <img src="../images/rss.png" alt="rss" /> + </a> + <p> + I dont know if I will post often but here you go fucking world! + There is no topic, just me posting whatever is on my mind. Add + the feed to your feedreader <b>(you better have one)</b> so you + can stay updated on the things on my mind. + </p> + </td> + </tr> + <tr> + <td> + ~a + </td> + </tr> + </table> + + ~a + </center> +</body> +</html> diff --git a/org/index.xhtml b/org/index.xhtml index 6f6b1e8..f07979c 100644 --- a/org/index.xhtml +++ b/org/index.xhtml @@ -69,7 +69,7 @@ <td> <h3><a href="cgi-bin/guest-book.cgi">--> Sign the guest book</a></h3> - <h3><a href="blog/index.html">--> Read the blog</a></h3> + <h3><a href="blog/index.xhtml">--> Read the blog</a></h3> <h3><a href="linux-room.xhtml">--> Visit the linux room</a></h3> <h3><a href="music-room.xhtml">--> Visit the music room</a></h3> </td> |