From 24a9a34a7327f4ce12378a6d90e7151d4fcd34de Mon Sep 17 00:00:00 2001 From: Raymonzut Date: Thu, 17 Feb 2022 08:39:53 +0100 Subject: [PATCH] Use the HyperLisp preprocessor for all html :D Signed-off-by: Raymonzut --- README.md | 2 ++ client/public/error/404.html | 10 ------ client/public/error/404.lisp | 6 ++++ client/public/index.html | 50 -------------------------- client/public/index.lisp | 35 ++++++++++++++++++ client/public/qa.html | 35 ------------------ client/public/qa.lisp | 31 ++++++++++++++++ client/templates/post_index_page.html | 38 -------------------- client/templates/post_index_page.lisp | 31 ++++++++++++++++ client/templates/post_single_page.html | 36 ------------------- client/templates/post_single_page.lisp | 35 ++++++++++++++++++ 11 files changed, 140 insertions(+), 169 deletions(-) delete mode 100644 client/public/error/404.html create mode 100644 client/public/error/404.lisp delete mode 100644 client/public/index.html create mode 100644 client/public/index.lisp delete mode 100644 client/public/qa.html create mode 100644 client/public/qa.lisp delete mode 100644 client/templates/post_index_page.html create mode 100644 client/templates/post_index_page.lisp delete mode 100644 client/templates/post_single_page.html create mode 100644 client/templates/post_single_page.lisp diff --git a/README.md b/README.md index 85becda..fd06889 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ # Personal-Website +[![built with HyperLisp!](https://img.shields.io/badge/built%20with-HyperLisp!-informational)](https://github.com/circl-lastname/HyperLisp) + A nice introduction to my chaos ## Backstory diff --git a/client/public/error/404.html b/client/public/error/404.html deleted file mode 100644 index 579b7fb..0000000 --- a/client/public/error/404.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - 404 - - - This page could not be found, sorry for the inconvenience - - diff --git a/client/public/error/404.lisp b/client/public/error/404.lisp new file mode 100644 index 0000000..9867195 --- /dev/null +++ b/client/public/error/404.lisp @@ -0,0 +1,6 @@ +(html :lang 'en :dir 'ltr + (head + (meta :charset 'utf-8) + (title "404")) + (body + "This page could not be found, sorry for the inconvenience")) diff --git a/client/public/index.html b/client/public/index.html deleted file mode 100644 index 1d35a69..0000000 --- a/client/public/index.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - Raymon Zutekouw - - - - - - - - -
- -

Home

- -
-

- Hi there, good to see you on my website. - My name is Raymon Zutekouw; Self-taught programmer by heart. -

- -

- Building software and exploring the wide variety of tools (or making them) is my passion. - To see it in action, checkout the stuff I make on - GitHub. -

- -

- The projects that may be useful to others are open source; for inspiring others and improving each others work. - That is why I am a huge fan of - free software. -

-
-
- - diff --git a/client/public/index.lisp b/client/public/index.lisp new file mode 100644 index 0000000..708a4fd --- /dev/null +++ b/client/public/index.lisp @@ -0,0 +1,35 @@ +(html :lang 'en + (head + (meta :charset 'utf-8) + (meta :name 'description + :content "Raymon's personal website about his life and projects with a blog.") + (meta :name 'viewport :content "width=device-width, initial-scale=1.0") + (title "Raymon Zutekouw") + + (link :rel 'dns-prefetch :href "https://cdn.statically.io") + + (link :defer ' + :rel 'stylesheet + :href "https://cdn.statically.io/gh/dragonprojects/dragondesign/master/main.min.css" + :media 'all) + (link :defer ' + :rel 'stylesheet + :href "/css/general.css" + :media 'all)) + (body + (div :id "app" + (nav + (a :href "/" "Home") "|" + (a :href "/posts" "Posts") "|" + (a :href "/qa" "QA")) + (h1 "Home") + (div + (p "Hi there, good to see you on my website. + My name is Raymon Zutekouw; Self-taught programmer by heart.") + (p "Building software and exploring the wide variety of tools (or making them) is my passion. + To see it in action, checkout the stuff I make on " + (a :href "https://github.com/Raymonzut" "GitHub.")) + + (p "The projects that may be useful to others are open source; for inspiring others and improving each others work. + That is why I am a huge fan of " + (a :href "https://www.gnu.org/philosophy/free-sw.en.html" "free software")))))) diff --git a/client/public/qa.html b/client/public/qa.html deleted file mode 100644 index 69ff84f..0000000 --- a/client/public/qa.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - Raymon Zutekouw - - - - - - -
- -
-

What is this site about?

-

This site is about me and the stuff I make

- -

Why is it still so empty?

-

Because I am framework hopping and now ditching frameworks all together

-
-
- - diff --git a/client/public/qa.lisp b/client/public/qa.lisp new file mode 100644 index 0000000..8f6cdf5 --- /dev/null +++ b/client/public/qa.lisp @@ -0,0 +1,31 @@ +(html :lang 'en + (head + (meta :charset 'utf-8) + (meta :name 'description + :content "Raymon answering common questions") + (meta :name 'viewport :content "width=device-width, initial-scale=1.0") + (title "Raymon Zutekouw") + + (link :rel 'dns-prefetch :href "https://cdn.statically.io") + + (link :defer ' + :rel 'stylesheet + :href "https://cdn.statically.io/gh/dragonprojects/dragondesign/master/main.min.css" + :media 'all) + (link :defer ' + :rel 'stylesheet + :href "/css/general.css" + :media 'all)) + (body + (div :id "app" + (nav + (a :href "/" "Home") "|" + (a :href "/posts" "Posts") "|" + (a :href "/qa" "QA")) + (h1 "Questions and answers") + (div + (h4 :class "question" "What is this site about?") + (h4 "This site is about me and the stuff I make") + + (h4 :class "question" "Why is it still so empty?") + (h4 "Because I am framework hopping and now ditching frameworks all together"))))) diff --git a/client/templates/post_index_page.html b/client/templates/post_index_page.html deleted file mode 100644 index 215f077..0000000 --- a/client/templates/post_index_page.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - Raymon Zutekouw - - - - - - - - -
- -
-

Post listing

-
- {{index}} -
- - diff --git a/client/templates/post_index_page.lisp b/client/templates/post_index_page.lisp new file mode 100644 index 0000000..cc91fe4 --- /dev/null +++ b/client/templates/post_index_page.lisp @@ -0,0 +1,31 @@ +(html :lang 'en + (head + (meta :charset 'utf-8) + (meta :name 'description + :content "Raymon typing nonsense on his blog") + (meta :name 'viewport :content "width=device-width, initial-scale=1.0") + (title "Raymon Zutekouw") + + (link :rel 'dns-prefetch :href "https://cdn.statically.io") + + (link :defer ' + :rel 'stylesheet + :href "https://cdn.statically.io/gh/dragonprojects/dragondesign/master/main.min.css" + :media 'all) + (link :defer ' + :rel 'stylesheet + :href "/css/general.css" + :media 'all) + (script :type 'text/javascript " + document.addEventListener('DOMContentLoaded', + () => document.body.textContent = 'Please disable JavaScript to view the blog posts.', + false);")) + (body + (main + (nav + (a :href "/" "Home") "|" + (a :href "/posts" "Posts") "|" + (a :href "/qa" "QA")) + (header + (h1 "Post listing")) + "{{index}}"))) diff --git a/client/templates/post_single_page.html b/client/templates/post_single_page.html deleted file mode 100644 index dceaa5e..0000000 --- a/client/templates/post_single_page.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - Raymon Zutekouw - - - - - -
- - -
-
-

{{title}}

-

For those using a RSS reader, subscribe here: rss.xml

-
- - {{content}} -
-
- - diff --git a/client/templates/post_single_page.lisp b/client/templates/post_single_page.lisp new file mode 100644 index 0000000..fbd97c9 --- /dev/null +++ b/client/templates/post_single_page.lisp @@ -0,0 +1,35 @@ +(html :lang 'en + (head + (meta :charset 'utf-8) + (meta :name 'description + :content "Raymon typing nonsense on his blog") + (meta :name 'viewport :content "width=device-width, initial-scale=1.0") + (title "Raymon Zutekouw") + + (link :rel 'dns-prefetch :href "https://cdn.statically.io") + + (link :defer ' + :rel 'stylesheet + :href "https://cdn.statically.io/gh/dragonprojects/dragondesign/master/main.min.css" + :media 'all) + (link :defer ' + :rel 'stylesheet + :href "/css/general.css" + :media 'all) + (script :type 'text/javascript " + document.addEventListener('DOMContentLoaded', + () => document.body.textContent = 'Please disable JavaScript to view the blog posts.', + false);")) + (body + (main + (nav + (a :href "/" "Home") "|" + (a :href "/posts" "Posts") "|" + (a :href "/qa" "QA")) + (article + (header + (h1 "{{title}}") + (p (strong "For those using a RSS reader, subscribe here: ") + (a :href "/posts/rss.xml" "rss.xml"))) + (time :datetime "{{date}}") + "{{content}}"))))