2020-06-17 17:25:28 +00:00
|
|
|
@use super::statics::{layout_css, favicon_ico};
|
2022-06-06 21:01:43 +00:00
|
|
|
@use crate::CONFIG;
|
2020-06-13 21:23:43 +00:00
|
|
|
|
2020-12-03 19:40:16 +00:00
|
|
|
@(title: &str, description: Option<&str>, head: Content, body: Content)
|
2020-06-13 21:23:43 +00:00
|
|
|
|
2022-05-03 01:38:46 +00:00
|
|
|
<!DOCTYPE html>
|
2020-06-13 21:23:43 +00:00
|
|
|
|
2022-05-03 01:38:46 +00:00
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
<title>@title</title>
|
2022-06-06 21:01:43 +00:00
|
|
|
<meta property="twitter:title" content="@title" />
|
2022-05-03 01:38:46 +00:00
|
|
|
<meta property="og:title" content="@title" />
|
2022-06-06 21:01:43 +00:00
|
|
|
|
|
|
|
<meta property="og:site_name" content="pict-rs" />
|
|
|
|
@if let Some(desc) = description {
|
|
|
|
<meta property="description" content="@desc" />
|
|
|
|
<meta property="og:description" content="@desc" />
|
|
|
|
<meta property="twitter:description" content="@desc" />
|
2022-05-03 01:38:46 +00:00
|
|
|
} else {
|
2022-06-06 21:01:43 +00:00
|
|
|
<meta property="description" content="Upload and share image files" />
|
2022-05-03 01:38:46 +00:00
|
|
|
<meta property="og:description" content="Upload and share image files" />
|
2022-06-06 21:01:43 +00:00
|
|
|
<meta property="twitter:description" content="Upload and share image files" />
|
2022-05-03 01:38:46 +00:00
|
|
|
}
|
2022-06-06 21:01:43 +00:00
|
|
|
@if let Some(domain) = CONFIG.domain() {
|
|
|
|
<meta property="twitter:domain" content="@domain" />
|
|
|
|
}
|
|
|
|
<link rel="stylesheet" href="@crate::statics(layout_css.name)" type="text/css" />
|
2022-05-03 01:38:46 +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>
|