summaryrefslogtreecommitdiff
path: root/scripts/blog.js
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2024-05-01 21:33:28 +0700
committeraltaf-creator <dev@altafcreator.com>2024-05-01 21:33:28 +0700
commit9a511ebd3d1256bfb5d4fabca5a0cb5717bbf4ed (patch)
tree7353adea32170f6a9ab91c65ae947804dd46bf33 /scripts/blog.js
parent55c08b9dce24bdd12887d82f41a529fbadfaef55 (diff)
school
Diffstat (limited to 'scripts/blog.js')
-rw-r--r--scripts/blog.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/blog.js b/scripts/blog.js
index 8f36fdb..65fc02e 100644
--- a/scripts/blog.js
+++ b/scripts/blog.js
@@ -110,6 +110,7 @@ function loadPost(n) {
var result = md.render(data);
result = result.replaceAll("<a", `<a class="link"`);
+ result = result.replaceAll("<img", `<img style="max-width: 100%;"`);
content.innerHTML = result;
}).then(() => addNodes());
});