This commit is contained in:
parent
3e364b3dac
commit
a5793e087c
|
@ -63,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