From bea80928f694671010bc99493d31879df7d42836 Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Wed, 4 Sep 2024 20:05:51 +0200 Subject: initial commit --- templates/acknowledgement.html.j2 | 18 +++++++++++++++ templates/base.html.j2 | 48 +++++++++++++++++++++++++++++++++++++++ templates/blogpost.html.j2 | 30 ++++++++++++++++++++++++ templates/blogpost_sub.html.j2 | 10 ++++++++ templates/feed.xml.j2 | 20 ++++++++++++++++ templates/index.html.j2 | 18 +++++++++++++++ templates/sidebar.html.j2 | 35 ++++++++++++++++++++++++++++ templates/tag.html.j2 | 18 +++++++++++++++ templates/tags.html.j2 | 8 +++++++ 9 files changed, 205 insertions(+) create mode 100644 templates/acknowledgement.html.j2 create mode 100644 templates/base.html.j2 create mode 100644 templates/blogpost.html.j2 create mode 100644 templates/blogpost_sub.html.j2 create mode 100644 templates/feed.xml.j2 create mode 100644 templates/index.html.j2 create mode 100644 templates/sidebar.html.j2 create mode 100644 templates/tag.html.j2 create mode 100644 templates/tags.html.j2 (limited to 'templates') diff --git a/templates/acknowledgement.html.j2 b/templates/acknowledgement.html.j2 new file mode 100644 index 0000000..6cb5938 --- /dev/null +++ b/templates/acknowledgement.html.j2 @@ -0,0 +1,18 @@ +{% extends "base.html.j2" %} +{% block page_title %}Acknowledgement {{ super() }}{% endblock %} +{% block page_title_short %}Acknowledgement{% endblock %} +{% block content %} +

Acknowledgement

+

Thank you for everyone, who made this blog possible, like...
+
+Marcsello who was kind enough to share his blog source with the world, so I could steal get inspired by it
+David Moore for the ascii art tree
+Bootstrap for the awesome CSS library and dmhendricks for the grid only extraction
+Jinja for the intuitive templating language
+Marko for the extensible MD converter
+Jetbrains for their amazing font which I use literally everywhere
+terminal.sexy for the cool terminal color template
+iconify for all the icons
+
+... and last but not least, You dear Reader!

+{% endblock %} \ No newline at end of file diff --git a/templates/base.html.j2 b/templates/base.html.j2 new file mode 100644 index 0000000..1925ed2 --- /dev/null +++ b/templates/base.html.j2 @@ -0,0 +1,48 @@ + + + + + {% block page_title %}{{ site.blog_name }}{% endblock %} + + + + + + + + + +
+ + diff --git a/templates/blogpost.html.j2 b/templates/blogpost.html.j2 new file mode 100644 index 0000000..7375ee4 --- /dev/null +++ b/templates/blogpost.html.j2 @@ -0,0 +1,30 @@ +{% extends "base.html.j2" %} +{% block page_title %}{{ post.title() }} {{ super() }}{% endblock %} +{% block page_title_short %}{{ post.title() }}{% endblock %} +{% block content %} +

{{ post.title() }}

+

{{ post.get_prompt("ls tags/") }} +
+{{ post.get_tags() }}

+
+

{{ post.get_prompt("stat -c %.10w content") }} +
+{{ post.get_publish_time() }}

+
+

{{ post.get_cat_prompt("content") }}

+
+{{ post.html|safe }} +
+

{{ post.get_prompt("find other_posts/ -type f -exec head {} +") }}

+{% for similar in post.get_similar_posts() %} + +
+

{{ similar.title() }}

+

{{ similar.intro }}

+
+
+ +
+
+{% endfor %} +{% endblock %} diff --git a/templates/blogpost_sub.html.j2 b/templates/blogpost_sub.html.j2 new file mode 100644 index 0000000..5bf4d94 --- /dev/null +++ b/templates/blogpost_sub.html.j2 @@ -0,0 +1,10 @@ +{% extends "base.html.j2" %} +{% block page_title %}{{ post.title() }} {{ super() }}{% endblock %} +{% block page_title_short %}{{ post.title() }}{% endblock %} +{% block content %} +

{{ post.get_cat_prompt(subpage_name) }}

+
+{{ subpage_html|safe }} +
+

{{ post.get_cat_prompt("") }}content

+{% endblock %} diff --git a/templates/feed.xml.j2 b/templates/feed.xml.j2 new file mode 100644 index 0000000..7e51092 --- /dev/null +++ b/templates/feed.xml.j2 @@ -0,0 +1,20 @@ + + + + @yggdrasil + https://blog.wazul.moe/feed.xml + The chronicle of my works and learnings + en + {{ build_date }} + {% for post in posts %} + + {{ post.title() }} + {{ post.get_link() }} + {{ post.intro }} + {{ post.get_link() }} + contact@wazul.moe + {{ post.get_publish_time_rfc2822() }} + + {% endfor %} + + \ No newline at end of file diff --git a/templates/index.html.j2 b/templates/index.html.j2 new file mode 100644 index 0000000..09ce8ad --- /dev/null +++ b/templates/index.html.j2 @@ -0,0 +1,18 @@ +{% extends "base.html.j2" %} +{% block content %} +{% for post in posts %} +{% if loop.first %} +

{{ post.get_index_prompt() }}

+{% else %} +

{{ post.get_index_prompt() }}

+{% endif %} + + +

{{ post.title() }}

+

{{ post.intro }}

+
+{% if not loop.last %} +
+{% endif %} +{% endfor %} +{% endblock %} diff --git a/templates/sidebar.html.j2 b/templates/sidebar.html.j2 new file mode 100644 index 0000000..2c75a8c --- /dev/null +++ b/templates/sidebar.html.j2 @@ -0,0 +1,35 @@ + +

About me

+

I'm a game developer by occupation and a computer enthusiast by hobby. +I love learning about and working on anything related to computers or geek stuff, +although I consider myself only a passionate greenhorn. +Sometimes I touch upon some more artistic stuff, but mostly just to amuse myself.

+
+

btw I use arch

+ +
+

Stuff I do

+ + +My website + + + +Git repositories + +

Top tags

+

{% for tag in site.top_tags %}{{ tag }}/{% if not loop.last %} {% endif %}{% endfor %}

+

more: cd ~/tags

+

Never miss a post

+ + +RSS feed + +

Contact me at

+ + +contact@wazul.moe + +

especially if you find some typos or bugs on the page

+

Thank you

+

for everyone who made this blog possible

diff --git a/templates/tag.html.j2 b/templates/tag.html.j2 new file mode 100644 index 0000000..093f41b --- /dev/null +++ b/templates/tag.html.j2 @@ -0,0 +1,18 @@ +{% extends "base.html.j2" %} +{% block page_title %}tags/{{ tag }} {{ super() }}{% endblock %} +{% block page_title_short %}tags/{{ tag }}{% endblock %} +{% block content %} +

tags/{{ tag }}/

+

{{ config.get_tag_prompt(tag, "find other_posts/ -type f -exec head {} +") }}

+{% for post in posts %} + +
+

{{ post.title() }}

+

{{ post.intro }}

+
+
+ +
+
+{% endfor %} +{% endblock %} diff --git a/templates/tags.html.j2 b/templates/tags.html.j2 new file mode 100644 index 0000000..8812559 --- /dev/null +++ b/templates/tags.html.j2 @@ -0,0 +1,8 @@ +{% extends "base.html.j2" %} +{% block page_title %}tags/ {{ super() }}{% endblock %} +{% block page_title_short %}tags/{% endblock %} +{% block content %} +

tags/

+

{{ config.get_tag_prompt("", "ls .") }}

+

{{ tags_ls }}

+{% endblock %} -- cgit v1.2.3-70-g09d2