From 0e8ada1eff8799437c9be1bc2af10d6198fa8cad Mon Sep 17 00:00:00 2001 From: jwansek Date: Tue, 29 Apr 2025 18:51:40 +0100 Subject: Added inline HTML into blogposts, refactored a bit --- edaweb/templates/diary.html.j2 | 26 ++++++++++ edaweb/templates/discord.html.j2 | 5 ++ edaweb/templates/index.html.j2 | 24 +++++++++ edaweb/templates/isocd.html.j2 | 32 ++++++++++++ edaweb/templates/isocd_confirmation.html.j2 | 16 ++++++ edaweb/templates/nhdl.html.j2 | 8 +++ edaweb/templates/questions.html.j2 | 17 +++++++ edaweb/templates/random.html.j2 | 22 +++++++++ edaweb/templates/services.html.j2 | 59 ++++++++++++++++++++++ edaweb/templates/template.html.j2 | 76 +++++++++++++++++++++++++++++ edaweb/templates/thought.html.j2 | 29 +++++++++++ edaweb/templates/thoughts.html.j2 | 12 +++++ 12 files changed, 326 insertions(+) create mode 100644 edaweb/templates/diary.html.j2 create mode 100644 edaweb/templates/discord.html.j2 create mode 100644 edaweb/templates/index.html.j2 create mode 100644 edaweb/templates/isocd.html.j2 create mode 100644 edaweb/templates/isocd_confirmation.html.j2 create mode 100644 edaweb/templates/nhdl.html.j2 create mode 100644 edaweb/templates/questions.html.j2 create mode 100644 edaweb/templates/random.html.j2 create mode 100644 edaweb/templates/services.html.j2 create mode 100644 edaweb/templates/template.html.j2 create mode 100644 edaweb/templates/thought.html.j2 create mode 100644 edaweb/templates/thoughts.html.j2 (limited to 'edaweb/templates') diff --git a/edaweb/templates/diary.html.j2 b/edaweb/templates/diary.html.j2 new file mode 100644 index 0000000..f6604f7 --- /dev/null +++ b/edaweb/templates/diary.html.j2 @@ -0,0 +1,26 @@ +{% extends "template.html.j2" %} +{% block content %} +

this page might not be up-to-date if my diary account is search banned

+

if in doubt check my diary account
check if i'm currently search banned

+
+ {% for dt, entries in diary.items() %} +
{{ dt }}
+
+
    + {% for entry in entries %} + {% if entry["images"] != [] %} +
      + {% for img in entry["images"] %} +
    • + {% endfor %} +
    + {% endif %} +
  1. +

    {{ entry["text"] }}

    +
  2. + {% endfor %} +
+
+ {% endfor %} +
+{% endblock %} diff --git a/edaweb/templates/discord.html.j2 b/edaweb/templates/discord.html.j2 new file mode 100644 index 0000000..597fb4b --- /dev/null +++ b/edaweb/templates/discord.html.j2 @@ -0,0 +1,5 @@ +{% extends "template.html.j2" %} +{% block content %} +

You can contact me on discord (telegram preferred):

+

{{discord}}

+ {% endblock %} \ No newline at end of file diff --git a/edaweb/templates/index.html.j2 b/edaweb/templates/index.html.j2 new file mode 100644 index 0000000..d6c08d8 --- /dev/null +++ b/edaweb/templates/index.html.j2 @@ -0,0 +1,24 @@ +{% extends "template.html.j2" %} +{% block content %} + + {{markdown|safe}} +
+

recent git commits:

+ +
+{% endblock %} diff --git a/edaweb/templates/isocd.html.j2 b/edaweb/templates/isocd.html.j2 new file mode 100644 index 0000000..3c532c0 --- /dev/null +++ b/edaweb/templates/isocd.html.j2 @@ -0,0 +1,32 @@ +{% extends "template.html.j2" %} +{% block content %} +

As discussed here, I will post a GNU/Linux install CD to you for free (provided you live in the United Kingdom). Just fill out the form below:

+
+ +

+ +

+

Sadly there is an upper limit on ISOs of 700Mb coz thats what u can fit on a cd ;_; so big isos arent listed


+ +

+ +

+ +

+ +

+ +

+ +

+ +
+

I make no promises how long this will actually take, but you might get a special present too uwu

+

btw if u abuse this service i'll just ignore u

+

Testimonials

+ +{% endblock %} \ No newline at end of file diff --git a/edaweb/templates/isocd_confirmation.html.j2 b/edaweb/templates/isocd_confirmation.html.j2 new file mode 100644 index 0000000..81045a8 --- /dev/null +++ b/edaweb/templates/isocd_confirmation.html.j2 @@ -0,0 +1,16 @@ +{% extends "template.html.j2" %} +{% block content %} +

Your order has been placed. Expect a confirmation email to {{ email }} when I can be bothered to sort it out.

+
+

Your order/reference id is {{ id_ }}

+
+

The details were as follows:

+ + {% for k, v in req.items() %} + + + + + {% endfor %} +
{{ k.upper() }}{{ v }}
+{% endblock %} \ No newline at end of file diff --git a/edaweb/templates/nhdl.html.j2 b/edaweb/templates/nhdl.html.j2 new file mode 100644 index 0000000..5ab62c2 --- /dev/null +++ b/edaweb/templates/nhdl.html.j2 @@ -0,0 +1,8 @@ +{% extends "template.html.j2" %} +{% block content %} +
+ +

+ +
+{% endblock %} \ No newline at end of file diff --git a/edaweb/templates/questions.html.j2 b/edaweb/templates/questions.html.j2 new file mode 100644 index 0000000..eb58380 --- /dev/null +++ b/edaweb/templates/questions.html.j2 @@ -0,0 +1,17 @@ +{% extends "template.html.j2" %} +{% block content %} +

ask a question!

+
+ {% for id_, link, dt, question, answer, host in qnas %} + {% if host == "curiouscat" %} +
{{ dt.isoformat() }} - {{ host }}
+ {% else %} +
{{ dt.isoformat() }} - {{ host }}
+ {% endif %} +
+

{{ question }}

+

{{ answer }}

+ + {% endfor %} +
+{% endblock %} diff --git a/edaweb/templates/random.html.j2 b/edaweb/templates/random.html.j2 new file mode 100644 index 0000000..76b433b --- /dev/null +++ b/edaweb/templates/random.html.j2 @@ -0,0 +1,22 @@ +{% extends "template.html.j2" %} +{% block content %} + +
+ +

generate another

+

artist link

+
+{% endblock %} \ No newline at end of file diff --git a/edaweb/templates/services.html.j2 b/edaweb/templates/services.html.j2 new file mode 100644 index 0000000..9f42c7f --- /dev/null +++ b/edaweb/templates/services.html.j2 @@ -0,0 +1,59 @@ +{% extends "template.html.j2" %} +{% block content %} +
+
+

docker

+
    + {% for host, containers in docker["containers"].items() %} +

    {{ "%s - %s" % (host[0], host[1]) }}

    + + {% for name, status, image in containers %} + + + {% if "Up" in status %} + + {% else %} + + {% endif %} + + + {% endfor %} +
    {{ name }}{{ status }}{{ status }}{{ image }}
    + {% endfor %} +
+

{{ docker["cachetime"] }}

+
+ +
+

transmission

+ {% if trans == None %} +

Couldn't access the transmission API. Is docker container running?

+ {% else %} + + {% for k, v in trans.items() %} + + + + + {% endfor %} +
{{ k }}{{ v }}
+ {% endif %} +
+ +
+

pihole

+ {% if pihole == None %} +

Couldn't access the pihole API. Is docker container running?

+ {% else %} + + {% for k, v in pihole.items() %} + + + + + {% endfor %} +
{{ k }}{{ v }}
+ {% endif %} +
+
+{% endblock %} \ No newline at end of file diff --git a/edaweb/templates/template.html.j2 b/edaweb/templates/template.html.j2 new file mode 100644 index 0000000..86618bc --- /dev/null +++ b/edaweb/templates/template.html.j2 @@ -0,0 +1,76 @@ + + + + + + + eda.gay :: {{title}} + + + + + + + +
+
+ +
+
+

{{title}}

+ +
+ + {{image[0]}} + +
+
+
+ {% block content %} + {% endblock %} +
+ +
+ + diff --git a/edaweb/templates/thought.html.j2 b/edaweb/templates/thought.html.j2 new file mode 100644 index 0000000..2a5b519 --- /dev/null +++ b/edaweb/templates/thought.html.j2 @@ -0,0 +1,29 @@ +{% extends "template.html.j2" %} +{% block content %} + + {{ md_html|safe }} +{% endblock %} \ No newline at end of file diff --git a/edaweb/templates/thoughts.html.j2 b/edaweb/templates/thoughts.html.j2 new file mode 100644 index 0000000..bf06f57 --- /dev/null +++ b/edaweb/templates/thoughts.html.j2 @@ -0,0 +1,12 @@ +{% extends "template.html.j2" %} +{% block content %} + {% for category_name, thoughts in tree.items() %} +

{{category_name}}

+
+ {% for id_, title, dt in thoughts %} +
{{title}}
+
{{dt}}
+ {% endfor %} +
+ {% endfor %} +{% endblock %} \ No newline at end of file -- cgit v1.2.3