diff --git a/lib/Config.rakumod b/lib/Config.rakumod index 9dc7b04..8348145 100644 --- a/lib/Config.rakumod +++ b/lib/Config.rakumod @@ -11,7 +11,7 @@ method generate-head(Str:D $title, BlogMeta:D $meta, $description?) { meta :charset; meta :name, :content; meta :author :content; - title "{$meta.title} — $title"; + title "$title — {$meta.title}"; # Add description, if one exists do if $description ~~ Str:D { meta :description :content($description) @@ -47,8 +47,35 @@ method site-header(BlogMeta:D $meta) { $meta.tagline ]; div :class, [ - - ] + a :href, [ + icon 'home'; + ' '; + span [ + 'Home'; + ]; + ]; + a :href, [ + icon 'archive'; + ' '; + span [ + 'Archive'; + ]; + ]; + a :href, [ + icon 'info-circle'; + ' '; + span [ + 'About'; + ]; + ]; + a :href, [ + icon 'rss'; + ' '; + span [ + 'Feed'; + ]; + ]; + ]; ] } diff --git a/lib/DB.rakumod b/lib/DB.rakumod index fd95f6f..576c309 100644 --- a/lib/DB.rakumod +++ b/lib/DB.rakumod @@ -91,6 +91,7 @@ class PostDB { # Render the archive # Render the rss/atom feed # Render the index + # Symlink the about article die "Not Implemented" } } diff --git a/resources/main.css b/resources/main.css index a14b9c1..4a530e1 100644 --- a/resources/main.css +++ b/resources/main.css @@ -13,6 +13,16 @@ body, .post { gap: 1rem; } +.header-links { + display: flex; + flex-direction: row; + align-items: center; + gap: 1rem; + font-size: 1.1rem; + flex-wrap: wrap; + margin-top: 0.5rem; +} + .site-header { width: 50%; display: block; @@ -97,3 +107,11 @@ body, .post { /* .post-body > p { */ /* text-indent: 2ch; */ /* } */ + +a > span { + text-decoration: underline; +} + +a { + text-decoration: none; +}