@@ -23,7 +23,7 @@ const router = new Router();
|
||||
koa.use<BaseContext, UserAgentContext>(userAgent);
|
||||
|
||||
// serve public assets
|
||||
router.use(["/images/*", "/email/*"], async (ctx, next) => {
|
||||
router.use(["/images/*", "/email/*", "/fonts/*"], async (ctx, next) => {
|
||||
let done;
|
||||
|
||||
if (ctx.method === "HEAD" || ctx.method === "GET") {
|
||||
|
||||
@@ -30,6 +30,21 @@
|
||||
title="Outline"
|
||||
/>
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: "Inter";
|
||||
font-display: swap;
|
||||
font-feature-settings: "ss03", "cv05";
|
||||
src: url("{cdn-url}/fonts/Inter.var.woff2") format("woff2");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Inter";
|
||||
font-display: swap;
|
||||
font-feature-settings: "ss03", "cv05";
|
||||
font-style: italic;
|
||||
src: url("{cdn-url}/fonts/Inter-italic.var.woff2") format("woff2");
|
||||
}
|
||||
|
||||
body,
|
||||
html {
|
||||
margin: 0;
|
||||
|
||||
Reference in New Issue
Block a user