hyaenidae/templates/layouts/root.rs.html
2021-01-31 15:43:29 -06:00

25 lines
985 B
HTML

@use crate::{toolkit_path, statics_path, templates::statics::layout_css};
@use hyaenidae_toolkit::templates::statics::{toolkit_css, fork_awesome_min_css};
@(title: &str, description: &str, dark: bool, 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>@Html(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" />
<link href="@toolkit_path(fork_awesome_min_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 class="@crate::body_class(dark)">
@:body()
</body>
</html>