summaryrefslogtreecommitdiff
path: root/www/scripts/blog.js
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2026-05-17 13:01:57 +0800
committeraltaf-creator <dev@altafcreator.com>2026-05-17 13:01:57 +0800
commit9e7fe6d8dad56c237adb1905e130c1d723131812 (patch)
treedd067e14b3ec5af719d748427bb322320c248879 /www/scripts/blog.js
parentd04598ba59d7267ee4db3745ff90eaa1a990072a (diff)
big structural change, altafcreator.com no longer served statically, projects now use md, blog is being reworked, videos removed temp
Diffstat (limited to 'www/scripts/blog.js')
-rw-r--r--www/scripts/blog.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/www/scripts/blog.js b/www/scripts/blog.js
index 1cf6657..767d1f0 100644
--- a/www/scripts/blog.js
+++ b/www/scripts/blog.js
@@ -1,8 +1,10 @@
var evaluatedTags = "";
const clamp = (val, min, max) => Math.min(Math.max(val, min), max)
+const api_url = "https://backend.altafcreator.com"
+
function postList(n = 0) {
- fetch("/data/posts.json")
+ fetch(`${api_url}/api/blogs/`)
.then((response) => response.json())
.then((data) => {
n = clamp(n, 0, data.posts.length);