From cd10df9d32dc86e28f14a271b072505baf0610f0 Mon Sep 17 00:00:00 2001 From: Chewing_Bever Date: Wed, 5 Jun 2024 21:43:47 +0200 Subject: [PATCH] Moving so much stuff around --- config.toml | 20 +++++++++---------- content/blog/_index.md | 4 ++-- .../index.md => dev/vieter/0.2.0.md} | 2 +- .../index.md => dev/vieter/0.3.0.md} | 2 +- .../index.md => dev/vieter/0.4.0.md} | 2 +- .../index.md => dev/vieter/0.5.0.md} | 2 +- .../index.md => dev/vieter/0.6.0.md} | 2 +- content/dev/vieter/_index.md | 1 + .../layouts/_default/{rss.xml => rssold.xml} | 0 .../rb/layouts/{blog => _default}/single.html | 2 ++ themes/rb/layouts/blog/section.html | 1 + themes/rb/layouts/index.html | 8 +++----- themes/rb/layouts/project/section.html | 10 ++++++++++ 13 files changed, 34 insertions(+), 22 deletions(-) rename content/{blog/vieter-0.2.0/index.md => dev/vieter/0.2.0.md} (97%) rename content/{blog/vieter-0.3.0/index.md => dev/vieter/0.3.0.md} (98%) rename content/{blog/vieter-0.4.0/index.md => dev/vieter/0.4.0.md} (98%) rename content/{blog/vieter-0.5.0/index.md => dev/vieter/0.5.0.md} (99%) rename content/{blog/vieter-0.6.0/index.md => dev/vieter/0.6.0.md} (98%) rename themes/rb/layouts/_default/{rss.xml => rssold.xml} (100%) rename themes/rb/layouts/{blog => _default}/single.html (82%) diff --git a/config.toml b/config.toml index 78bd223..34ac0b7 100644 --- a/config.toml +++ b/config.toml @@ -14,18 +14,18 @@ pygmentsUseClasses = true [menu] [[menu.main]] - identifier = "blogroll" - name = "blogroll" - title = "blogroll" - url = "/blogroll/" - weight = 20 + identifier = "blog" + name = "blog" + title = "blog" + url = "/blog/" + weight = 1 [[menu.main]] - identifier = "Links" - name = "links" - title = "links" - url = "/links/" - weight = 30 + identifier = "projects" + name = "projects" + title = "projects" + url = "/dev/" + weight = 10 [[menu.main]] identifier = "about" diff --git a/content/blog/_index.md b/content/blog/_index.md index 388337f..a97f34d 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -1,5 +1,5 @@ --- -title: "Posts" +title: "Blog" --- -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +uwu diff --git a/content/blog/vieter-0.2.0/index.md b/content/dev/vieter/0.2.0.md similarity index 97% rename from content/blog/vieter-0.2.0/index.md rename to content/dev/vieter/0.2.0.md index 91de5eb..ae78ed7 100644 --- a/content/blog/vieter-0.2.0/index.md +++ b/content/dev/vieter/0.2.0.md @@ -1,5 +1,5 @@ --- -title: "Announcing Vieter 0.2.0" +title: "Vieter 0.2.0" date: 2022-04-11 --- diff --git a/content/blog/vieter-0.3.0/index.md b/content/dev/vieter/0.3.0.md similarity index 98% rename from content/blog/vieter-0.3.0/index.md rename to content/dev/vieter/0.3.0.md index d6a76f4..6d6bd52 100644 --- a/content/blog/vieter-0.3.0/index.md +++ b/content/dev/vieter/0.3.0.md @@ -1,5 +1,5 @@ --- -title: "Announcing Vieter 0.3.0" +title: "Vieter 0.3.0" date: 2022-06-13 --- diff --git a/content/blog/vieter-0.4.0/index.md b/content/dev/vieter/0.4.0.md similarity index 98% rename from content/blog/vieter-0.4.0/index.md rename to content/dev/vieter/0.4.0.md index a140e97..74c61e8 100644 --- a/content/blog/vieter-0.4.0/index.md +++ b/content/dev/vieter/0.4.0.md @@ -1,5 +1,5 @@ --- -title: "Announcing Vieter 0.4.0" +title: "Vieter 0.4.0" date: 2022-10-01 --- diff --git a/content/blog/vieter-0.5.0/index.md b/content/dev/vieter/0.5.0.md similarity index 99% rename from content/blog/vieter-0.5.0/index.md rename to content/dev/vieter/0.5.0.md index 109b0f0..8bed0ec 100644 --- a/content/blog/vieter-0.5.0/index.md +++ b/content/dev/vieter/0.5.0.md @@ -1,5 +1,5 @@ --- -title: "Announcing Vieter 0.5.0" +title: "Vieter 0.5.0" date: 2022-12-29 --- diff --git a/content/blog/vieter-0.6.0/index.md b/content/dev/vieter/0.6.0.md similarity index 98% rename from content/blog/vieter-0.6.0/index.md rename to content/dev/vieter/0.6.0.md index d639d3b..65da6c0 100644 --- a/content/blog/vieter-0.6.0/index.md +++ b/content/dev/vieter/0.6.0.md @@ -1,5 +1,5 @@ --- -title: "Announcing Vieter 0.6.0" +title: "Vieter 0.6.0" date: 2023-07-20 --- diff --git a/content/dev/vieter/_index.md b/content/dev/vieter/_index.md index 457b6fb..223931a 100644 --- a/content/dev/vieter/_index.md +++ b/content/dev/vieter/_index.md @@ -1,6 +1,7 @@ --- title: "Vieter" summary: "Arch Linux repository server & build system, written in V" +type: "project" --- lmao what diff --git a/themes/rb/layouts/_default/rss.xml b/themes/rb/layouts/_default/rssold.xml similarity index 100% rename from themes/rb/layouts/_default/rss.xml rename to themes/rb/layouts/_default/rssold.xml diff --git a/themes/rb/layouts/blog/single.html b/themes/rb/layouts/_default/single.html similarity index 82% rename from themes/rb/layouts/blog/single.html rename to themes/rb/layouts/_default/single.html index 281e064..76fd585 100644 --- a/themes/rb/layouts/blog/single.html +++ b/themes/rb/layouts/_default/single.html @@ -3,6 +3,8 @@

{{ .Title }}

+ Part of the {{ .Parent.Title }} series +
{{- if isset .Params "date" -}} {{ if eq .Lastmod .Date }} diff --git a/themes/rb/layouts/blog/section.html b/themes/rb/layouts/blog/section.html index 22005ac..9a03772 100644 --- a/themes/rb/layouts/blog/section.html +++ b/themes/rb/layouts/blog/section.html @@ -1,4 +1,5 @@ {{ define "main" }} +{{ .Content }}

{{ i18n "posts.title" }}

    {{- range .Pages }} diff --git a/themes/rb/layouts/index.html b/themes/rb/layouts/index.html index 0f1a8b7..ff65f44 100644 --- a/themes/rb/layouts/index.html +++ b/themes/rb/layouts/index.html @@ -1,12 +1,10 @@ {{ define "main" }} {{ .Content }}

    Latest blog posts

    -{{ with .GetPage "blog" }}
      - {{- range first 5 .Pages }} - {{ .Render "li" }} - {{- end }} +{{ range .Site.RegularPages }} + {{ .Render "li" }} +{{ end }}
    Older {{ end }} -{{ end }} diff --git a/themes/rb/layouts/project/section.html b/themes/rb/layouts/project/section.html index fa59dd6..2b44d05 100644 --- a/themes/rb/layouts/project/section.html +++ b/themes/rb/layouts/project/section.html @@ -11,4 +11,14 @@ {{ .Content }} + +{{ if compare.Gt .Pages.Len 0 }} +

    {{ i18n "posts.title" }}

    +
      +{{- range .Pages }} + {{ .Render "li" }} +{{- end }} +
    +{{ end }} + {{ end }}