Compare commits
2 commits
7bfd3094ad
...
a5793e087c
Author | SHA1 | Date | |
---|---|---|---|
Soph :3 | a5793e087c | ||
Soph :3 | 3e364b3dac |
|
@ -2,10 +2,6 @@
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.2/p5.min.js"
|
|
||||||
integrity="sha512-eu9vkh+EbAsW3fMmPTj/DP5W3UegIdu0Z/OABMocvoofx43MYBkcQ9hRIVxZndV1vcCYQwBg+U1PkWl04TD0Jg=="
|
|
||||||
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
||||||
|
|
||||||
<link rel="preconnect" href="https://rsms.me/">
|
<link rel="preconnect" href="https://rsms.me/">
|
||||||
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
|
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
|
||||||
|
|
||||||
|
@ -29,10 +25,6 @@
|
||||||
<meta name=" viewport" content="width=device-width, initial-scale=1.0">
|
<meta name=" viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/kimeiga/bahunya/dist/bahunya.min.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/kimeiga/bahunya/dist/bahunya.min.css">
|
||||||
|
|
||||||
<style>
|
|
||||||
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -71,8 +63,10 @@
|
||||||
const renderer = document.getElementById('renderer');
|
const renderer = document.getElementById('renderer');
|
||||||
const return_back = document.getElementById("return_back");
|
const return_back = document.getElementById("return_back");
|
||||||
const req = await fetch("/blogs/" + uriParams.get("md"));
|
const req = await fetch("/blogs/" + uriParams.get("md"));
|
||||||
|
const giscus = document.querySelector(".giscus");
|
||||||
if (req.status != 200) {
|
if (req.status != 200) {
|
||||||
error.style.display = "block";
|
error.style.display = "block";
|
||||||
|
giscus.style.display = "none";
|
||||||
} else {
|
} else {
|
||||||
let text = await req.text();
|
let text = await req.text();
|
||||||
const metadata = parseMetadata(text);
|
const metadata = parseMetadata(text);
|
||||||
|
|
Loading…
Reference in a new issue