diff --git a/App.go b/App.go
index feae23e..41b09b1 100644
--- a/App.go
+++ b/App.go
@@ -1,6 +1,7 @@
package main
import (
+ "bytes"
"fmt"
"os"
"strings"
@@ -55,7 +56,13 @@ func (app *App) Run() {
}
s.Get("/", func(ctx web.Context) error {
- return render(ctx, "
akyoto.dev", markdown.Render("# Frontpage"))
+ md := bytes.Buffer{}
+
+ for slug := range app.posts {
+ fmt.Fprintf(&md, "- [%s](/%s)\n", slug, slug)
+ }
+
+ return render(ctx, "akyoto.dev", markdown.Render(md.String()))
})
s.Get("/:post", func(ctx web.Context) error {
diff --git a/public/app.css b/public/app.css
index 9f36718..322edd3 100644
--- a/public/app.css
+++ b/public/app.css
@@ -8,7 +8,7 @@
--grey-color: hsl(0, 0%, 61%);
--highlight-color: hsla(0, 0%, 100%, 0.05);
--body-color: hsl(220, 5%, 12%);
- --font-family: system-ui, sans-serif;
+ --font-family: "Segoe UI", system-ui;
--font-family-mono: monospace;
--font-size: 18px;
--line-height: 1.6;
@@ -139,8 +139,7 @@ th:empty {
}
header,
-main,
-footer {
+main {
width: 100%;
max-width: var(--max-width);
padding: var(--padding);
@@ -154,14 +153,6 @@ main {
flex: 1;
}
-footer {
- display: flex;
- flex-direction: column;
- align-items: center;
- font-size: 0.75em;
- color: var(--grey-color);
-}
-
nav {
display: flex;
gap: 1rem;
@@ -188,6 +179,7 @@ time {
code {
font-family: var(--font-family-mono);
+ font-size: 80%;
word-break: break-word;
}