From 3434cbc92630d7a60963f51990216facd586e546 Mon Sep 17 00:00:00 2001 From: serginogal Date: Tue, 7 Feb 2023 17:26:29 +0900 Subject: [PATCH 1/5] :sparkles: feat: add archive screen --- content/archive/_index.md | 4 ++++ templates/archive.html | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 content/archive/_index.md create mode 100644 templates/archive.html diff --git a/content/archive/_index.md b/content/archive/_index.md new file mode 100644 index 0000000..5bc9a67 --- /dev/null +++ b/content/archive/_index.md @@ -0,0 +1,4 @@ ++++ +title = "archive" +template = "archive.html" ++++ diff --git a/templates/archive.html b/templates/archive.html new file mode 100644 index 0000000..5c49cf6 --- /dev/null +++ b/templates/archive.html @@ -0,0 +1,32 @@ +{% extends "base.html" %} {% block main_content %} + +
+ {{ post_macros::page_header(title=section.title) }} +
+ +
+ +
+{% endblock main_content %} From 19caf3fab117121e6d7e168cb4f189e44ae1f038 Mon Sep 17 00:00:00 2001 From: serginogal Date: Tue, 7 Feb 2023 17:28:42 +0900 Subject: [PATCH 2/5] :lipstick: style: add styles for archive screen --- sass/main.scss | 1 + sass/parts/_archive.scss | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 sass/parts/_archive.scss diff --git a/sass/main.scss b/sass/main.scss index 2fc0a40..58ee096 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -3,6 +3,7 @@ src: url('fonts/Inter.ttf'); font-display: swap; } +@import 'parts/archive.scss'; @import 'parts/_cards.scss'; @import 'parts/_code.scss'; @import 'parts/_header.scss'; diff --git a/sass/parts/_archive.scss b/sass/parts/_archive.scss new file mode 100644 index 0000000..0ed6508 --- /dev/null +++ b/sass/parts/_archive.scss @@ -0,0 +1,25 @@ +.archive { + .listing-title { + font-size: 1.5rem; + opacity: 0.8; + margin-bottom: 1rem; + } + + .listing-item { + padding: 0.2rem 1rem; + display: flex; + gap: 1rem; + .post-time { + width: 4rem; + .date { + opacity: 0.4; + } + } + } + + ul { + list-style: none; + padding: 0; + margin: 0; + } +} \ No newline at end of file From 3b5cc60e433a0c11039527a8785fdd8ced031377 Mon Sep 17 00:00:00 2001 From: serginogal Date: Tue, 7 Feb 2023 17:29:55 +0900 Subject: [PATCH 3/5] :wrench: chore: add archive route to nav-links --- config.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/config.toml b/config.toml index 071f5ec..193762f 100644 --- a/config.toml +++ b/config.toml @@ -27,6 +27,7 @@ headerImage = "" # The icon is display besides the menu text but is not necessary. It needs to be placed under "menu_icon" in the static "folder" menu = [ { name = "home", url = "$BASE_URL/" }, + { name = "archive", url = "$BASE_URL/archive" }, { name = "tags", url = "$BASE_URL/tags" }, { name = "projects", url = "$BASE_URL/projects" }, ] From 31f70fffafd0a0adc0cae41368bbfbd25fb27880 Mon Sep 17 00:00:00 2001 From: welpo Date: Tue, 7 Feb 2023 13:58:02 +0100 Subject: [PATCH 4/5] =?UTF-8?q?=F0=9F=92=AC=20fix:=20capitalise=20Archive?= =?UTF-8?q?=20title?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/archive/_index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/archive/_index.md b/content/archive/_index.md index 5bc9a67..2c032c0 100644 --- a/content/archive/_index.md +++ b/content/archive/_index.md @@ -1,4 +1,5 @@ +++ -title = "archive" +title = "Archive" +path = "archive" template = "archive.html" +++ From 55d928a3d59279eb5c54c861c293de3714342c48 Mon Sep 17 00:00:00 2001 From: serginogal Date: Tue, 7 Feb 2023 22:48:19 +0900 Subject: [PATCH 5/5] :pencil2: fix: _archive import typo --- sass/main.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sass/main.scss b/sass/main.scss index 58ee096..157aa1b 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -3,7 +3,7 @@ src: url('fonts/Inter.ttf'); font-display: swap; } -@import 'parts/archive.scss'; +@import 'parts/_archive.scss'; @import 'parts/_cards.scss'; @import 'parts/_code.scss'; @import 'parts/_header.scss';