feat: Added tools page
All checks were successful
Build Docker / BuildImage (push) Successful in 2m9s

This commit is contained in:
2025-10-26 18:00:18 +11:00
parent f4f5f47ee7
commit 8f774ba8f0
9 changed files with 341 additions and 5 deletions

View File

@@ -10,6 +10,10 @@ blog_bp = Blueprint('blog', __name__)
def list_page_files():
blog_pages = os.listdir("data/blog")
# Sort pages by modified time, newest first
blog_pages.sort(
key=lambda x: os.path.getmtime(os.path.join("data/blog", x)), reverse=True)
# Remove .md extension
blog_pages = [page.removesuffix(".md")
for page in blog_pages if page.endswith(".md")]