basic home button

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2026-03-18 23:06:39 +01:00
parent 49c9b373d6
commit db42d9b926
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
4 changed files with 34 additions and 2 deletions

View file

@ -7,6 +7,8 @@
#let html_body(
/// The visible header of the page
header: none,
/// Home button, more or less expect an image in a link
home: none,
/// The footer of the page
footer: none,
/// Logo of the site
@ -39,6 +41,20 @@
margin-left: 0.25rem;
margin-right: 0.25rem;
}
/* Typst keep inserting <p> tags everywhere */
& > p {
margin-top: 0.25rem;
margin-bottom: 0.25rem;
}
home-symbol, home-symbol a {
display: flex;
justify-content: center;
align-items: center;
/*height: 100%;*/
}
}
site-container {
@ -48,8 +64,10 @@
padding: 0 20px;
header {
// display: flex
// flex-wrap: wrap;
/*
* display: flex
* flex-wrap: wrap;
*/
justify-content: space-between;
align-items: center;
padding: 15px 5px;
@ -87,6 +105,7 @@
chtml.site-wrapper({
chtml.site-container({
html.nav({
if home != none { chtml.home-symbol(home) }
theme-picker()
if menu != none { nav-menu-toggle() }
})