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

43 lines
1.3 KiB
HTML
Raw Normal View History

2020-06-17 17:25:28 +00:00
@use super::statics::{layout_css, favicon_ico};
2024-02-01 23:22:19 +00:00
@use crate::config;
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" />
<title>@title</title>
2022-06-06 21:01:43 +00:00
<meta property="twitter:title" content="@title" />
<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" />
} else {
2022-06-06 21:01:43 +00:00
<meta property="description" content="Upload and share image files" />
<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" />
}
2024-02-01 23:22:19 +00:00
@if let Some(domain) = config().domain() {
2022-06-06 21:01:43 +00:00
<meta property="twitter:domain" content="@domain" />
}
<link rel="stylesheet" href="@crate::statics(layout_css.name)" type="text/css" />
<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>