From 37214973dfed15aa77939f8949024c4b045536cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Niemier?= Date: Mon, 3 Jan 2022 13:25:29 +0100 Subject: [PATCH] chore: update layout of the blog --- .ignore | 1 - config.toml | 4 ++-- content/_index.md | 8 ++++---- content/about.md | 9 --------- content/post/_index.md | 5 +++-- sass/_footer.scss | 11 ++++------- templates/index.html | 9 +++++++++ themes/zerm | 2 +- 8 files changed, 23 insertions(+), 26 deletions(-) delete mode 100644 content/about.md diff --git a/.ignore b/.ignore index f54f93f..bbf441c 100644 --- a/.ignore +++ b/.ignore @@ -1,3 +1,2 @@ /static -/themes /styles diff --git a/config.toml b/config.toml index 59da5e4..dc4fe29 100644 --- a/config.toml +++ b/config.toml @@ -41,12 +41,12 @@ center = true # Must be placed in root of static/ directory... # og_preview_img = "" -copyright = "copyright by hauleth" +copyright = "copyright by hauleth" # Menu items to display. You define a url and the name of the menu item. # NOTE: `$BASE_URL/` must be included in the url name. main_menu = [ - {url="/about/", name="about"}, + {url="/post/", name="blog"}, {url="https://twitter.com/hauleth", name="twitter", rel="me"}, {url="https://github.com/hauleth", name="github", rel="me"}, ] diff --git a/content/_index.md b/content/_index.md index 29da8a1..52c9df5 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,6 +1,6 @@ +++ -sort_by = "date" -transparent = false -paginate_by = 4 -insert_anchor_links = "right" +title = "Hauleth" +template = "section.html" +++ + +{{ readme() }} diff --git a/content/about.md b/content/about.md deleted file mode 100644 index a80319d..0000000 --- a/content/about.md +++ /dev/null @@ -1,9 +0,0 @@ -+++ -title = "hauleth" -transparent = false - -[extra] -no_comments = true -+++ - -{{ readme() }} diff --git a/content/post/_index.md b/content/post/_index.md index 3d2917d..8778099 100644 --- a/content/post/_index.md +++ b/content/post/_index.md @@ -1,5 +1,6 @@ +++ -transparent = true -render = false +sort_by = "date" +paginate_by = 1000 insert_anchor_links = "right" +template = "index.html" +++ diff --git a/sass/_footer.scss b/sass/_footer.scss index c97203f..16453bf 100644 --- a/sass/_footer.scss +++ b/sass/_footer.scss @@ -23,19 +23,16 @@ } .copyright { + width: 100%; display: flex; - flex-direction: row; + flex-direction: column; align-items: center; + justify-content: center; // so `--light-color-secondary` color exists no where else in the stylings // color: var(--light-color-secondary); // As a substitute, I'm going to use the alpha-70 version of accent. color: var(--accent-alpha-70); - &--user { - margin: auto; - text-align: center; - } - & > *:first-child:not(:only-child) { margin-right: 10px; @@ -45,7 +42,7 @@ } @media (max-width: $tablet-max-width) { - flex-direction: column; + // flex-direction: column; margin-top: 10px; } } diff --git a/templates/index.html b/templates/index.html index 9962f5b..2648188 100644 --- a/templates/index.html +++ b/templates/index.html @@ -9,6 +9,15 @@ {%- endif -%} {% endblock %} +{% block copyright %} + +{% endblock copyright %} + {% block script %} {% endblock script %} diff --git a/themes/zerm b/themes/zerm index b316f90..5e1497c 160000 --- a/themes/zerm +++ b/themes/zerm @@ -1 +1 @@ -Subproject commit b316f904dcbe60a255beec68e6c23436c1d11f07 +Subproject commit 5e1497c9a5af1b209e36f11818f1637980051c90 -- 2.51.2