Moving so much stuff around

main
Jef Roosens 2024-06-05 21:43:47 +02:00
parent b1719e8d24
commit cd10df9d32
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
13 changed files with 34 additions and 22 deletions

View File

@ -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"

View File

@ -1,5 +1,5 @@
---
title: "Posts"
title: "Blog"
---
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
uwu

View File

@ -1,5 +1,5 @@
---
title: "Announcing Vieter 0.2.0"
title: "Vieter 0.2.0"
date: 2022-04-11
---

View File

@ -1,5 +1,5 @@
---
title: "Announcing Vieter 0.3.0"
title: "Vieter 0.3.0"
date: 2022-06-13
---

View File

@ -1,5 +1,5 @@
---
title: "Announcing Vieter 0.4.0"
title: "Vieter 0.4.0"
date: 2022-10-01
---

View File

@ -1,5 +1,5 @@
---
title: "Announcing Vieter 0.5.0"
title: "Vieter 0.5.0"
date: 2022-12-29
---

View File

@ -1,5 +1,5 @@
---
title: "Announcing Vieter 0.6.0"
title: "Vieter 0.6.0"
date: 2023-07-20
---

View File

@ -1,6 +1,7 @@
---
title: "Vieter"
summary: "Arch Linux repository server & build system, written in V"
type: "project"
---
lmao what

View File

@ -3,6 +3,8 @@
<header id="post-header">
<h1>{{ .Title }}</h1>
<div>
Part of the <a href="{{ .Parent.Permalink }}">{{ .Parent.Title }}</a> series
</br>
{{- if isset .Params "date" -}}
{{ if eq .Lastmod .Date }}
<time>{{ .Date | time.Format (i18n "post.created") }}</time>

View File

@ -1,4 +1,5 @@
{{ define "main" }}
{{ .Content }}
<h3>{{ i18n "posts.title" }}</h3>
<ul id="posts">
{{- range .Pages }}

View File

@ -1,12 +1,10 @@
{{ define "main" }}
{{ .Content }}
<h3>Latest blog posts</h3>
{{ with .GetPage "blog" }}
<ul id="posts">
{{- range first 5 .Pages }}
{{ .Render "li" }}
{{- end }}
{{ range .Site.RegularPages }}
{{ .Render "li" }}
{{ end }}
</ul>
<a href="{{ .Permalink }}">Older</a>
{{ end }}
{{ end }}

View File

@ -11,4 +11,14 @@
</nav>
{{ .Content }}
{{ if compare.Gt .Pages.Len 0 }}
<h3>{{ i18n "posts.title" }}</h3>
<ul id="posts">
{{- range .Pages }}
{{ .Render "li" }}
{{- end }}
</ul>
{{ end }}
{{ end }}