Update index.html
Browse files- index.html +39 -17
index.html
CHANGED
|
@@ -1,19 +1,41 @@
|
|
| 1 |
<!doctype html>
|
| 2 |
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
<!doctype html>
|
| 2 |
<html>
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<title>Blog OpenEnv</title>
|
| 6 |
+
|
| 7 |
+
<script>
|
| 8 |
+
window.MathJax = {
|
| 9 |
+
tex: {
|
| 10 |
+
inlineMath: [['$', '$'], ['\\(', '\\)']],
|
| 11 |
+
displayMath: [['$$', '$$'], ['\\[', '\\]']]
|
| 12 |
+
},
|
| 13 |
+
svg: { fontCache: 'global' }
|
| 14 |
+
};
|
| 15 |
+
</script>
|
| 16 |
+
<script defer src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>
|
| 17 |
+
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
| 18 |
+
|
| 19 |
+
<style>
|
| 20 |
+
body { font-family: Arial, sans-serif; background: #fff; color: #111; }
|
| 21 |
+
.wrap { max-width: 920px; margin: 32px auto; line-height: 1.7; }
|
| 22 |
+
img { max-width: 100%; height: auto; border-radius: 8px; margin: 14px 0; display: block; }
|
| 23 |
+
h1, h2, h3 { margin-top: 1.2em; }
|
| 24 |
+
</style>
|
| 25 |
+
</head>
|
| 26 |
+
<body>
|
| 27 |
+
<div class="wrap" id="content">Loading blog...</div>
|
| 28 |
+
|
| 29 |
+
<script>
|
| 30 |
+
fetch("./MINIBLOG.md")
|
| 31 |
+
.then(r => r.text())
|
| 32 |
+
.then(md => {
|
| 33 |
+
document.getElementById("content").innerHTML = marked.parse(md);
|
| 34 |
+
if (window.MathJax) MathJax.typesetPromise();
|
| 35 |
+
})
|
| 36 |
+
.catch(() => {
|
| 37 |
+
document.getElementById("content").innerHTML = "<h2>Could not load MINIBLOG.md</h2>";
|
| 38 |
+
});
|
| 39 |
+
</script>
|
| 40 |
+
</body>
|
| 41 |
+
</html>
|