crabbysearch/src/templates/partials/navbar.rs

20 lines
473 B
Rust
Raw Normal View History

2024-08-15 11:15:23 +02:00
//! A module that handles `navbar` partial for the header partial in the `crabbysearch` frontend.
use maud::{html, Markup};
/// A functions that handles the html code for the header partial.
///
/// # Returns
///
/// It returns the compiled html code for the navbar as a result.
pub fn navbar() -> Markup {
html!(
nav{
ul{
li{a href="about"{"about"}}
li{a href="settings"{"settings"}}
}
}
)
}