2021-01-08 04:44:43 +00:00
|
|
|
@use crate::templates::layouts::root;
|
|
|
|
@use hyaenidae_toolkit::templates::centered;
|
|
|
|
|
2021-01-11 04:09:47 +00:00
|
|
|
@(title: &str, description: &str, dark: bool, head: Content, body: Content)
|
2021-01-08 04:44:43 +00:00
|
|
|
|
2021-01-11 04:09:47 +00:00
|
|
|
@:root(title, description, dark, { @:head() }, {
|
2021-01-08 04:44:43 +00:00
|
|
|
@:centered(true, {
|
|
|
|
<h2 class="title">@title</h2>
|
|
|
|
<p class="description">@description</p>
|
|
|
|
})
|
|
|
|
@:centered(false, {
|
|
|
|
@:body()
|
|
|
|
})
|
|
|
|
})
|