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" }, ] diff --git a/content/archive/_index.md b/content/archive/_index.md new file mode 100644 index 0000000..2c032c0 --- /dev/null +++ b/content/archive/_index.md @@ -0,0 +1,5 @@ ++++ +title = "Archive" +path = "archive" +template = "archive.html" ++++ diff --git a/sass/main.scss b/sass/main.scss index 2fc0a40..157aa1b 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 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 %}