sitelen pona support
This commit is contained in:
@@ -12,3 +12,7 @@ Illum id sit laboriosam corrupti veritatis et quam. Ut ea quaerat omnis doloribu
|
|||||||
Molestias omnis ut voluptatem. Eius vel deleniti quia quam odio. Adipisci voluptas dolor nulla voluptatem. Molestiae sunt veritatis qui ex atque molestiae nobis. Expedita repellat dolores adipisci.
|
Molestias omnis ut voluptatem. Eius vel deleniti quia quam odio. Adipisci voluptas dolor nulla voluptatem. Molestiae sunt veritatis qui ex atque molestiae nobis. Expedita repellat dolores adipisci.
|
||||||
|
|
||||||
Deleniti totam molestiae necessitatibus rem dolores. Natus ut quos beatae aut. Corrupti eum provident perferendis eum dolores maiores eos.
|
Deleniti totam molestiae necessitatibus rem dolores. Natus ut quos beatae aut. Corrupti eum provident perferendis eum dolores maiores eos.
|
||||||
|
|
||||||
|
```toki-pona
|
||||||
|
|
||||||
|
```
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ createServer((req, res) => {
|
|||||||
req_path = path.join(__dirname, "build", "404.html");
|
req_path = path.join(__dirname, "build", "404.html");
|
||||||
}
|
}
|
||||||
//set content type
|
//set content type
|
||||||
let non_utf8_content_types: string[] = ["image/png", "image/gif", "image/jpeg", "video/mp4"];
|
let non_utf8_content_types: string[] = ["image/png", "image/gif", "image/jpeg", "video/mp4", "font/woff2"];
|
||||||
let content_type: string;
|
let content_type: string;
|
||||||
switch (req_path.split(".")[1]) {
|
switch (req_path.split(".")[1]) {
|
||||||
case "html":
|
case "html":
|
||||||
@@ -53,6 +53,9 @@ createServer((req, res) => {
|
|||||||
case "mp4":
|
case "mp4":
|
||||||
content_type = "video/mp4";
|
content_type = "video/mp4";
|
||||||
break;
|
break;
|
||||||
|
case "woff2":
|
||||||
|
content_type = "font/woff2";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
content_type = "text/plain";
|
content_type = "text/plain";
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
static/linjalipamanka-lili.woff2
Normal file
BIN
static/linjalipamanka-lili.woff2
Normal file
Binary file not shown.
@@ -1,3 +1,8 @@
|
|||||||
|
@font-face {
|
||||||
|
font-family: linjalipamanka;
|
||||||
|
src: url(/linjalipamanka-lili.woff2);
|
||||||
|
}
|
||||||
|
|
||||||
#post-md {
|
#post-md {
|
||||||
margin-top: 7px;
|
margin-top: 7px;
|
||||||
display: none;
|
display: none;
|
||||||
@@ -14,3 +19,7 @@
|
|||||||
#next-post-container {
|
#next-post-container {
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.code-toki-pona {
|
||||||
|
font-family: linjalipamanka !important;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user