From 05d44214be746558b2fdec9dc609a34ae21b3609 Mon Sep 17 00:00:00 2001 From: David Lapshin Date: Thu, 2 May 2024 21:54:47 +0300 Subject: [PATCH] Rename blog* to article* (breaking change!) Since these styles and templates can be used not only for blogs but for anything, more correct naming makes sense, at cost of a breaking change... --- content/blog/_index.md | 4 ++-- content/demo/comments.md | 2 +- content/demo/index.md | 2 +- sass/{_blog-list.scss => _article-list.scss} | 2 +- sass/style.scss | 2 +- templates/{blog.html => article.html} | 0 templates/{blog_list.html => article_list.html} | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) rename sass/{_blog-list.scss => _article-list.scss} (98%) rename templates/{blog.html => article.html} (100%) rename templates/{blog_list.html => article_list.html} (98%) diff --git a/content/blog/_index.md b/content/blog/_index.md index 113e1bf..d968c68 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -2,6 +2,6 @@ title = "Writings of Duck's Feet" description = "Welcome to my quack'in blog, I quack about various stuff, but mostly I'm a demo" sort_by = "date" -template = "blog_list.html" -page_template = "blog.html" +template = "article_list.html" +page_template = "article.html" +++ diff --git a/content/demo/comments.md b/content/demo/comments.md index 7304742..5742788 100644 --- a/content/demo/comments.md +++ b/content/demo/comments.md @@ -1,5 +1,5 @@ +++ -template = "blog.html" +template = "article.html" title = "ActivityPub/​Fediverse comments demo" [extra.comments] host = "toot.community" diff --git a/content/demo/index.md b/content/demo/index.md index 5fddd2f..9492630 100644 --- a/content/demo/index.md +++ b/content/demo/index.md @@ -1,5 +1,5 @@ +++ -template = "blog.html" +template = "article.html" title = "Demo Page" [extra] archive = "This page is, in fact, not archived, meaning it will receive content updates." diff --git a/sass/_blog-list.scss b/sass/_article-list.scss similarity index 98% rename from sass/_blog-list.scss rename to sass/_article-list.scss index 6c66edf..a6a3e44 100644 --- a/sass/_blog-list.scss +++ b/sass/_article-list.scss @@ -1,4 +1,4 @@ -.blog-list { +#article-list { article { position: relative; diff --git a/sass/style.scss b/sass/style.scss index 7887c68..2bc32dc 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -9,7 +9,7 @@ @use "variables"; @use "main"; -@use "blog-list"; +@use "article-list"; @use "buttons"; @use "comments"; @use "crt"; diff --git a/templates/blog.html b/templates/article.html similarity index 100% rename from templates/blog.html rename to templates/article.html diff --git a/templates/blog_list.html b/templates/article_list.html similarity index 98% rename from templates/blog_list.html rename to templates/article_list.html index 7d4c099..4a02d50 100644 --- a/templates/blog_list.html +++ b/templates/article_list.html @@ -11,7 +11,7 @@ From newest to oldest ↓ -
+
{% for page in section.pages %}