pict-rs-aggregator/templates/layout.rs.html
asonix f823369f30
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/tag Build is passing
Improve opengraph tags
2022-06-06 16:42:07 -05:00

39 lines
1.2 KiB
HTML

@use crate::State;
@use super::statics::{layout_css, favicon_ico};
@(state: &State, title: &str, description: Option<&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>
<meta property="og:title" content="@title" />
@if let Some(description) = description {
<meta property="description" content="@description" />
<meta property="og:description" content="@description" />
<meta property="twitter:description" content="@description" />
} else {
<meta property="description" content="Collect and share images" />
<meta property="og:description" content="Collect and share images" />
<meta property="twitter:description" content="Collect and share images" />
}
<meta property="og:type" content="website" />
<link rel="stylesheet" href="@state.statics_path(layout_css.name)" type="text/css" />
<link rel="shortcut icon" type="image/png" href="@state.statics_path(favicon_ico.name)">
@:head()
</head>
<body>
<div class="title">
<h1>pict-rs aggregator</h1>
</div>
@:body()
</body>
</html>