pict-rs-aggregator/templates/layout.rs.html
2020-12-08 16:03:18 -06:00

29 lines
1,005 B
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>
<link rel="stylesheet" href="@state.statics_path(&layout_css.name)" type="text/css" />
<meta property="og:title" content="@title" />
@if let Some(description) = description {
<meta property="og:description" content="@description" />
} else {
<meta property="og:description" content="Aggregate and share images" />
}
<meta property="og:type" content="website" />
<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>