basic home button
This commit is contained in:
parent
49c9b373d6
commit
db42d9b926
4 changed files with 34 additions and 2 deletions
|
|
@ -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() }
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue