header links

This commit is contained in:
Nathan McCarty 2025-02-05 00:26:12 -05:00
parent d4f11a5585
commit d861c7ef87
3 changed files with 49 additions and 3 deletions

View file

@ -11,7 +11,7 @@ method generate-head(Str:D $title, BlogMeta:D $meta, $description?) {
meta :charset<utf-8>;
meta :name<viewport>, :content<width=device-width, initial-scale=1>;
meta :author :content<Nathan McCarty>;
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<header-links>, [
]
a :href</index.html>, [
icon 'home';
' ';
span [
'Home';
];
];
a :href</archive.html>, [
icon 'archive';
' ';
span [
'Archive';
];
];
a :href</about.html>, [
icon 'info-circle';
' ';
span [
'About';
];
];
a :href</feed.xml>, [
icon 'rss';
' ';
span [
'Feed';
];
];
];
]
}