pict-rs-proxy/templates/layout.rs.html
Aode (Lion) 903134c7c7
All checks were successful
continuous-integration/drone/push Build is passing
Use pict-rs's background uploading feature
2022-05-02 20:38:46 -05:00

33 lines
905 B
HTML

@use super::statics::{layout_css, favicon_ico};
@(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="@crate::statics(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="Upload and share image files" />
}
<meta property="og:type" content="website" />
<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>