Compare commits

...

2 commits

Author SHA1 Message Date
Soph :3 a5793e087c
hide giscus if error
All checks were successful
/ test (push) Successful in 12s
2024-07-20 16:20:24 +03:00
Soph :3 3e364b3dac
dont copy and paste kids 2024-07-20 16:19:30 +03:00

View file

@ -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);