header links
This commit is contained in:
parent
d4f11a5585
commit
d861c7ef87
3 changed files with 49 additions and 3 deletions
|
@ -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';
|
||||
];
|
||||
];
|
||||
];
|
||||
]
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue