Bundle and use Inconsolata v2.012

There's a newer version of the font available but ligatures seem
broken googlefonts/Inconsolata#58 and googlefonts/Inconsolata#52.

As part of this commit I also upgraded rust-embed to use the new
exclusion feature, which allows us to skip embedding OS files like
`.DS_Store`.
This commit is contained in:
Antonio Scandurra
2021-09-04 17:02:20 +02:00
parent 0e4f77750a
commit 00f6bdcb24
16 changed files with 65 additions and 26 deletions
+1 -1
View File
@@ -26,6 +26,6 @@ async fn get_static_asset(request: Request) -> tide::Result {
Ok(tide::Response::builder(200)
.content_type(content_type)
.body(content.as_ref())
.body(content.data.as_ref())
.build())
}
+2 -2
View File
@@ -83,7 +83,7 @@ impl AppState {
let partial = Templates::get(path.as_ref()).unwrap();
self.handlebars
.write()
.register_partial(partial_name, std::str::from_utf8(partial.as_ref()).unwrap())
.register_partial(partial_name, std::str::from_utf8(&partial.data).unwrap())
.unwrap()
}
}
@@ -98,7 +98,7 @@ impl AppState {
self.register_partials();
self.handlebars.read().render_template(
std::str::from_utf8(Templates::get(path).unwrap().as_ref()).unwrap(),
std::str::from_utf8(&Templates::get(path).unwrap().data).unwrap(),
data,
)
}