album/templates/page_base.rs.html
Rasmus Kaj 8cd215cdc2 Improve handling of static files.
Use static files handling from updated ructe rather than local
handling, and use rsass rather than sass-rs and sass-sys.

Static files are now kept in the binary (no more need to access the
build directory at runtime).  Also, there is an admin command to save
the static files to a directory, for the benefit of fronting web
servers and backwards compatibility.
2017-01-29 19:03:35 +01:00

21 lines
451 B
HTML

@use ::Link;
@use templates::head;
@use templates::statics::style_css;
@(title: &str, lpath: Vec<Link>, user: Option<String>, content: Content)
<!doctype html>
<html>
<head>
<title>@title</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" href="/static/@style_css.name" type="text/css"/>
</head>
<body>
@:head(lpath, user)
<h1>@title</h1>
@:content()
</body>
</html>