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:
@@ -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
@@ -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,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user