hyaenidae/server/templates/layouts/root.rs.html
asonix 4ff824b92d Delete 'Back' in favor of mobile nav query
Add submissions to home page
Add drafts page
Validate handle, display name, description, submission: title, description
Add block checks to submission iterator
Add user info to submission page
Abstract dark preference to a single source, not yet configurable
2021-01-10 22:09:47 -06:00

24 lines
857 B
HTML

@use crate::{toolkit_path, statics_path, templates::statics::layout_css};
@use hyaenidae_toolkit::templates::statics::toolkit_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>@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 class="@crate::body_class(dark)">
@:body()
</body>
</html>