pict-rs-proxy/templates/layout.rs.html

28 lines
960 B
HTML
Raw Normal View History

2020-06-17 17:25:28 +00:00
@use super::statics::{layout_css, favicon_ico};
2020-12-03 19:40:16 +00:00
@(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" />
2020-12-03 19:40:16 +00:00
<title>@title</title>
2021-09-12 16:27:22 +00:00
<link rel="stylesheet" href="@crate::statics(layout_css.name)" type="text/css" />
2020-12-03 19:40:16 +00:00
<meta property="og:title" content="@title" />
@if let Some(description) = description {
<meta property="og:description" content="@description" />
} else {
<meta property="og:description" content="Upload and share image files" />
}
2020-06-17 15:58:37 +00:00
<meta property="og:type" content="website" />
2021-09-12 16:27:22 +00:00
<link rel="shortcut icon" type="image/png" href="@crate::statics(favicon_ico.name)">
@:head()
</head>
<body>
<div class="title"><h1>pict-rs</h1></div>
@:body()
</body>
</html>