28 lines
962 B
HTML
28 lines
962 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>
|