From c38a7d82fd7d5d187bc12c74ba684110b0b10e78 Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Sat, 18 Jul 2026 10:05:29 +1200 Subject: Finish list of blog pages --- content/blog/_index.md | 1 + content/blog/test.md | 1 + content/blog/test2.md | 17 ++++++++++++++ content/projects/_index.md | 1 + static/style.css | 56 ++++++++++++++++++++++++++++++++++++++++++++++ templates/blog.html | 24 ++++++++++++++++---- templates/header.html | 2 +- templates/index.html | 2 +- 8 files changed, 98 insertions(+), 6 deletions(-) create mode 100644 content/blog/test2.md diff --git a/content/blog/_index.md b/content/blog/_index.md index c504e1b..9345d65 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -3,4 +3,5 @@ title = "Blog" sort_by = "date" template = "blog.html" page_template = "blog-page.html" +extra.header_title = "blog" +++ diff --git a/content/blog/test.md b/content/blog/test.md index 8034961..1cd3ca6 100644 --- a/content/blog/test.md +++ b/content/blog/test.md @@ -1,6 +1,7 @@ +++ title = "Blog post test" date = 2026-07-17 +extra.image = "/assets/images/Arslaan Pathan.svg" +++ # Test blog post diff --git a/content/blog/test2.md b/content/blog/test2.md new file mode 100644 index 0000000..a79fa9b --- /dev/null +++ b/content/blog/test2.md @@ -0,0 +1,17 @@ ++++ +title = "Blog post test 2" +date = 2026-07-18 +extra.image = "/assets/images/Arslaan Pathan.svg" ++++ + +# Test blog post 2 + +```shell +echo "Codeblocks" +``` + +`smaller codeblocks` + +Testing testing 123 chicken nuggets not 3 + +Yellow text. diff --git a/content/projects/_index.md b/content/projects/_index.md index b0a2818..efb5169 100644 --- a/content/projects/_index.md +++ b/content/projects/_index.md @@ -3,4 +3,5 @@ title = "Projects" sort_by = "weight" template = "project.html" page_template = "projects-page.html" +extra.header_title = "projects" +++ diff --git a/static/style.css b/static/style.css index 647aee5..e6d610a 100644 --- a/static/style.css +++ b/static/style.css @@ -191,3 +191,59 @@ a { width: 70%; } } + +.blog-date { + text-decoration: none; +} + +.blog-entry { + display: flex !important; + flex-direction: column !important; + align-items: center !important; + justify-content: center !important; + gap: 0.8rem; + padding: 1rem !important; + text-align: center !important; + overflow-y: hidden; + overflow-x: hidden; + white-space: normal !important; + word-wrap: break-word; + word-break: break-word; +} + +.blog-image-wrap { + display: flex; + justify-content: center; + align-items: center; + width: 100%; +} + +.blog-thumbnail { + max-width: 90%; + height: auto; + max-height: 200px; + border-radius: 4px; + border: 4px solid #313244; + object-fit: cover; +} + +.blog-title a { + color: #cdd6f4; + text-decoration: none; + transition: color 0.4s; +} + +.blog-title { + margin: 0; + padding: 0; +} + +.blog-title a:hover { + color: #f9e2af; + text-decoration: underline; +} + +.blog-ls { + text-align: left; + margin: 0; +} diff --git a/templates/blog.html b/templates/blog.html index 4653d1c..2690196 100644 --- a/templates/blog.html +++ b/templates/blog.html @@ -1,10 +1,26 @@ {% extends "base.html" %} {% block content %} -

{{ section.title }}

- + + {% endblock content %} diff --git a/templates/header.html b/templates/header.html index ef38e96..5e64f05 100644 --- a/templates/header.html +++ b/templates/header.html @@ -1,7 +1,7 @@