This commit is contained in:
parent
3e364b3dac
commit
a5793e087c
|
@ -63,8 +63,10 @@
|
|||
const renderer = document.getElementById('renderer');
|
||||
const return_back = document.getElementById("return_back");
|
||||
const req = await fetch("/blogs/" + uriParams.get("md"));
|
||||
const giscus = document.querySelector(".giscus");
|
||||
if (req.status != 200) {
|
||||
error.style.display = "block";
|
||||
giscus.style.display = "none";
|
||||
} else {
|
||||
let text = await req.text();
|
||||
const metadata = parseMetadata(text);
|
||||
|
|
Loading…
Reference in a new issue