From 67f1181edd2eec860a3a84a54a3c87abf2190a94 Mon Sep 17 00:00:00 2001 From: m Date: Sat, 14 Mar 2026 15:44:32 +0100 Subject: [PATCH] timeline content --- app.py | 218 +++++++++++++++++++++++++++++ templates/base.html | 1 + templates/components/timeline.html | 7 +- 3 files changed, 222 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index 780e2b0..ee9a7cb 100644 --- a/app.py +++ b/app.py @@ -119,6 +119,224 @@ def post_detail(post_id): if post["id"] == 10: post["template"] = "components/timeline_post.html" + post["timeline"] = """ +
  • + + + +
    + + + +
    + +

    +moved some web-based tools to localhost +

    + +

    +a testing page for blog preview and some string formatter...
    It's also my first time to correctly using git, to upload edited pages directly via rsync and synchronization via git. +

    + +
    + +
    + +
  • + +
  • + + + +
    + + + +
    + +

    +Editing +

    + +

    +added a timeline component,
    but I have to generate a timeline html and paste it as text,
    then paste into content generation, and the upload to blog. +

    + +
    + +
    + +
  • + +
  • + + + +
    + + + +
    + +

    +Packing blog in Docker +

    + +

    +uwsgi + flask -> caddy, gunicorn, flask, docker +

    + +
    + +
    + +
  • + +
  • + + + +
    + + + +
    + +

    +moved all wiki pages into one repository +

    + +

    +have been using gitea's wiki page to take notes, which is a life-saver
    I made a script to pull all wiki pages into one repository, now I have a way to save all my notes. +

    + +
    + +
    + +
  • + +
  • + + + +
    + + + +
    + +

    +/root partition is full +

    + +

    +pacman -Sc doesnt work anymore
    I am confused very confused
    started to move gitea from /etc to /home
    accidentally deleted all gitea data...then recovered with a previous gitea dump +

    + +
    + +
    + +
  • + +
  • + + + +
    + + + +
    + +

    +have another gitea instance, docker +

    + +

    +all repositories have a mirror now +

    + +
    + +
    + +
  • + +
  • + + + +
    + + + +
    + +

    +Tailscale ip doesnt work +

    + +

    +system-wide caddy worked for https://ip
    but docked caddy didnt work for https://ip
    I have no clue... +

    + +
    + +
    + +
  • + +
  • + + + +
    + + + +
    + +

    +language tool +

    + +

    +trying to use language tool, which helps with spelling but it doesnt work well for grammar checking, also the current setting should be fixed, I am not sure if I am running locally or querying via API. +

    + +
    + +
    + +
  • + +""" # 2. Pass the post dictionary (with the raw HTML content) directly to the template diff --git a/templates/base.html b/templates/base.html index 27a5e69..94e7c2c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -21,6 +21,7 @@ href="{{ url_for('static', filename='css/blog.css') }}" rel="stylesheet" /> + diff --git a/templates/components/timeline.html b/templates/components/timeline.html index 1d19fb6..cae8a34 100644 --- a/templates/components/timeline.html +++ b/templates/components/timeline.html @@ -1,8 +1,8 @@

      hint

      - {% for item in timeline %} -
    1. + {{ post.timeline }} +