29 lines
999 B
HTML
29 lines
999 B
HTML
@use crate::{toolkit_path, statics_path, templates::statics::layout_css};
|
|
@use hyaenidae_toolkit::templates::{centered, statics::toolkit_css};
|
|
|
|
@(title: &str, description: &str, head: Content, body: Content)
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>@title</title>
|
|
<link href="@toolkit_path(toolkit_css.name)" rel="stylesheet" type="text/css" />
|
|
<link href="@statics_path(layout_css.name)" rel="stylesheet" type="text/css" />
|
|
<meta property="og:title" content="@title" />
|
|
<meta property="og:description" content="@description" />
|
|
<meta property="og:type" content="website" />
|
|
@:head()
|
|
</head>
|
|
<body>
|
|
@:centered(true, {
|
|
<h2 class="title">@title</h2>
|
|
<p class="description">@description</p>
|
|
})
|
|
@:centered(false, {
|
|
@:body()
|
|
})
|
|
</body>
|
|
</html>
|