From f00159f53b3774601500ec65345791311ff6efa1 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Tue, 30 Jan 2024 16:16:05 +0000 Subject: migrate to poem and askama --- templates/base.html | 88 ++++++++++++++++++++++++++++++++++++++ templates/base.html.tera | 82 ----------------------------------- templates/blog.html | 23 ++++++++++ templates/blog.html.tera | 22 ---------- templates/blogpost-panel.html | 10 +++++ templates/blogpost-panel.html.tera | 8 ---- templates/blogpost.html | 7 +++ templates/blogpost.html.tera | 7 --- templates/contact.html | 36 ++++++++++++++++ templates/contact.html.tera | 32 -------------- templates/error.html | 10 +++++ templates/error.html.tera | 10 ----- templates/filtertags.html | 10 +++++ templates/filtertags.html.tera | 7 --- templates/home.html | 52 ++++++++++++++++++++++ templates/home.html.tera | 58 ------------------------- templates/latestposts.html | 13 ++++++ templates/latestposts.html.tera | 10 ----- templates/latestskweets.html | 44 +++++++++++++++++++ templates/latestskweets.html.tera | 44 ------------------- 20 files changed, 293 insertions(+), 280 deletions(-) create mode 100644 templates/base.html delete mode 100644 templates/base.html.tera create mode 100644 templates/blog.html delete mode 100644 templates/blog.html.tera create mode 100644 templates/blogpost-panel.html delete mode 100644 templates/blogpost-panel.html.tera create mode 100644 templates/blogpost.html delete mode 100644 templates/blogpost.html.tera create mode 100644 templates/contact.html delete mode 100644 templates/contact.html.tera create mode 100644 templates/error.html delete mode 100644 templates/error.html.tera create mode 100644 templates/filtertags.html delete mode 100644 templates/filtertags.html.tera create mode 100644 templates/home.html delete mode 100644 templates/home.html.tera create mode 100644 templates/latestposts.html delete mode 100644 templates/latestposts.html.tera create mode 100644 templates/latestskweets.html delete mode 100644 templates/latestskweets.html.tera (limited to 'templates') diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..59e7984 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,88 @@ + + + + + + + + + celeste's hard drive + + + + + + + + + + + + + + + + + + + +
+ + {% block header %} + {% endblock header %} + + + +
+
+ + {% block content %} + {% endblock content %} + +
+ + {% block aside %} + {% endblock aside %} + +
+ +
+ + + + + {# TODO: random skin tone #} + + + +
+ +
+ + + \ No newline at end of file diff --git a/templates/base.html.tera b/templates/base.html.tera deleted file mode 100644 index 9884964..0000000 --- a/templates/base.html.tera +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - cel's garden - - - - - cherry blossom branch - cherry blossom branch - cherry blossom branch - cherry blossom branch - cherry blossom branch - cherry blossom branch - cherry blossom branch - cherry blossom branch - cherry blossom branch - cherry blossom branch - cherry blossom branch - cherry blossom branch - cherry blossom branch - cherry blossom branch - -
- - {% block header %} - {% endblock header %} - - - -
-
- - {% block content %} - {% endblock content %} - -
- - {% block aside %} - {% endblock aside %} - -
- -
- - - - - - - -
- -
- - diff --git a/templates/blog.html b/templates/blog.html new file mode 100644 index 0000000..42cf95f --- /dev/null +++ b/templates/blog.html @@ -0,0 +1,23 @@ +{% extends "base.html" %} + +{% block reverse %}reverse{% endblock %} +{% block nav_blog %}active{% endblock %} + +{% block content %} + +{% for blogpost in blogposts %} +{% include "blogpost-panel.html" %} +{% endfor %} + +{% endblock content %} + +{% block aside %} + + + +{% endblock aside %} \ No newline at end of file diff --git a/templates/blog.html.tera b/templates/blog.html.tera deleted file mode 100644 index 20ec08e..0000000 --- a/templates/blog.html.tera +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "base" %} - -{% block nav_blog %}active{% endblock %} - -{% block content %} - -{% for blogpost in blogposts %} -{% include "blogpost-panel" %} -{% endfor %} - -{% endblock content %} - -{% block aside %} - - - -{% endblock aside %} diff --git a/templates/blogpost-panel.html b/templates/blogpost-panel.html new file mode 100644 index 0000000..6375012 --- /dev/null +++ b/templates/blogpost-panel.html @@ -0,0 +1,10 @@ +
+

{{ blogpost.subject().unwrap_or("untitled") }}

+

{{ blogpost.published_at() }} permalink

+
{% for tag in blogpost.tags().clone() %}{{ tag }}{% + endfor %}
+
+ {{ blogpost.content()|safe }} +
+
\ No newline at end of file diff --git a/templates/blogpost-panel.html.tera b/templates/blogpost-panel.html.tera deleted file mode 100644 index 64f064c..0000000 --- a/templates/blogpost-panel.html.tera +++ /dev/null @@ -1,8 +0,0 @@ -
-

{{ blogpost.subject }}

-

{{ blogpost.created_at }} permalink

-
{% for tag in blogpost.tags %}{{ tag }}{% endfor %}
-
- {{ blogpost.render }} -
-
diff --git a/templates/blogpost.html b/templates/blogpost.html new file mode 100644 index 0000000..935d581 --- /dev/null +++ b/templates/blogpost.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} + +{% block content %} + +{% include "blogpost-panel.html" %} + +{% endblock content %} \ No newline at end of file diff --git a/templates/blogpost.html.tera b/templates/blogpost.html.tera deleted file mode 100644 index b73a24b..0000000 --- a/templates/blogpost.html.tera +++ /dev/null @@ -1,7 +0,0 @@ -{% extends "base" %} - -{% block content %} - -{% include "blogpost-panel" %} - -{% endblock content %} diff --git a/templates/contact.html b/templates/contact.html new file mode 100644 index 0000000..4302e88 --- /dev/null +++ b/templates/contact.html @@ -0,0 +1,36 @@ +{% extends "base.html" %} + +{% block nav_contact %}active{% endblock %} + +{% block header %} + +
+
+

celeste 🌸

+
+
+ +{% endblock header %} + +{% block content %} + + + +{% endblock content %} \ No newline at end of file diff --git a/templates/contact.html.tera b/templates/contact.html.tera deleted file mode 100644 index 28ec6e6..0000000 --- a/templates/contact.html.tera +++ /dev/null @@ -1,32 +0,0 @@ -{% extends "base" %} - -{% block nav_contact %}active{% endblock %} - -{% block header %} - -
-
-

cel 🌸

-
-
- -{% endblock header %} - -{% block content %} - - - -{% endblock content %} \ No newline at end of file diff --git a/templates/error.html b/templates/error.html new file mode 100644 index 0000000..a3ffff4 --- /dev/null +++ b/templates/error.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} + +{% block content %} + +
+

Error {{ status }}

+

{{ message }}

+
+ +{% endblock %} \ No newline at end of file diff --git a/templates/error.html.tera b/templates/error.html.tera deleted file mode 100644 index 5a4cc17..0000000 --- a/templates/error.html.tera +++ /dev/null @@ -1,10 +0,0 @@ -{% extends "base" %} - -{% block content %} - -
-

Error {{ status }}: {{ req }}

-

{{ message }}

-
- -{% endblock %} diff --git a/templates/filtertags.html b/templates/filtertags.html new file mode 100644 index 0000000..55c802f --- /dev/null +++ b/templates/filtertags.html @@ -0,0 +1,10 @@ +
+

filter by tags

+
+ {% for tag in tags.clone() %}{% let contains_tag = filter_tags.contains(tag) %}{{ tag }}{% endfor + %} +
+
+
\ No newline at end of file diff --git a/templates/filtertags.html.tera b/templates/filtertags.html.tera deleted file mode 100644 index f79ee94..0000000 --- a/templates/filtertags.html.tera +++ /dev/null @@ -1,7 +0,0 @@ -
-

filter by tags

-
- {% for tag in tags %}{{ tag }}{% endfor %} -
-
-
diff --git a/templates/home.html b/templates/home.html new file mode 100644 index 0000000..7cd8c0f --- /dev/null +++ b/templates/home.html @@ -0,0 +1,52 @@ +{% extends "base.html" %} + +{% block nav_home %}active{% endblock %} + +{% block header %} + +
+
+

celeste 🌸

+
+ + {% if is_live %} + + {% endif %} + + {% if listenbrainz.is_scrobbling %} + now playing: {{ + listenbrainz.song.clone().unwrap_or_default() }} - + {{ listenbrainz.artist.clone().unwrap_or_default() }} + {% endif %} + +
+ +{% endblock header %} + +{% block content %} + +
+

hallo i am celeste welcome 2 my site 🌟

+

this is where i do the posting

+

i wish u a wonderful day

+
+ +

perpetually under construction

+ +
+ +{% endblock content %} + +{% block aside %} + + + +{% endblock aside %} \ No newline at end of file diff --git a/templates/home.html.tera b/templates/home.html.tera deleted file mode 100644 index 5017ea3..0000000 --- a/templates/home.html.tera +++ /dev/null @@ -1,58 +0,0 @@ -{% extends "base" %} - -{% block nav_home %}active{% endblock %} - -{% block header %} - -
-
-

cel 🌸

-
- - {% if is_live %} - - {% endif %} - - {% if listenbrainz.is_scrobbling %} - now playing: {{ listenbrainz.song }} - {{ listenbrainz.artist }} - {% endif %} - -
- -{% endblock header %} - -{% block content %} - -
-

hallo i am celeste welcome 2 my site 🌟

-

this is where i do the posting

-

i wish u a wonderful day

-
- -

perpetually under construction

- -
- -{% endblock content %} - -{% block aside %} - - - -{% endblock aside %} - - - diff --git a/templates/latestposts.html b/templates/latestposts.html new file mode 100644 index 0000000..e2dfa9f --- /dev/null +++ b/templates/latestposts.html @@ -0,0 +1,13 @@ +
+

latest posts atom newsfeed

+ + {% for blogpost in blogposts %} + + + + {% endfor %} +
{{ blogpost.subject().unwrap_or("untitled") + }}
+
\ No newline at end of file diff --git a/templates/latestposts.html.tera b/templates/latestposts.html.tera deleted file mode 100644 index 11528a4..0000000 --- a/templates/latestposts.html.tera +++ /dev/null @@ -1,10 +0,0 @@ -
-

latest posts atom newsfeed

- - {% for blogpost in blogposts %} - - - - {% endfor %} -
{{ blogpost.subject }}
-
\ No newline at end of file diff --git a/templates/latestskweets.html b/templates/latestskweets.html new file mode 100644 index 0000000..84798de --- /dev/null +++ b/templates/latestskweets.html @@ -0,0 +1,44 @@ +
+

latest skweets

+ {% for skweet in skweets %} + {% if not skweet.reblog %} +
+ +
+

{{ skweet.username }}

{{ skweet.time_since }} ago
+
{{ skweet.content }}
+ {% if skweet.media_attachments[0] %} + {% for media_attachment in skweet.media_attachments %} + {% if media_attachment.type == "image" %} + + {% elif media_attachment.type == "video" %} + + {% endif %} + {% endfor %} + {% endif %} +
+
+ {% elif skweet.reblog %} +
+

boosted:

+
+ +
+

{{ skweet.username }}

{{ skweet.time_since }} ago
+
{{ skweet.content }}
+ {% if skweet.media_attachments[0] %} + {% for media_attachment in skweet.media_attachments %} + {% if media_attachment.type == "image" %} + + {% elif media_attachment.type == "video" %} + + {% endif %} + {% endfor %} + {% endif %} +
+
+
+ {% endif %} + {% endfor %} +
+ diff --git a/templates/latestskweets.html.tera b/templates/latestskweets.html.tera deleted file mode 100644 index 84798de..0000000 --- a/templates/latestskweets.html.tera +++ /dev/null @@ -1,44 +0,0 @@ -
-

latest skweets

- {% for skweet in skweets %} - {% if not skweet.reblog %} -
- -
-

{{ skweet.username }}

{{ skweet.time_since }} ago
-
{{ skweet.content }}
- {% if skweet.media_attachments[0] %} - {% for media_attachment in skweet.media_attachments %} - {% if media_attachment.type == "image" %} - - {% elif media_attachment.type == "video" %} - - {% endif %} - {% endfor %} - {% endif %} -
-
- {% elif skweet.reblog %} -
-

boosted:

-
- -
-

{{ skweet.username }}

{{ skweet.time_since }} ago
-
{{ skweet.content }}
- {% if skweet.media_attachments[0] %} - {% for media_attachment in skweet.media_attachments %} - {% if media_attachment.type == "image" %} - - {% elif media_attachment.type == "video" %} - - {% endif %} - {% endfor %} - {% endif %} -
-
-
- {% endif %} - {% endfor %} -
- -- cgit