diff options
| author | altaf-creator <dev@altafcreator.com> | 2026-05-21 20:45:15 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2026-05-21 20:45:15 +0800 |
| commit | 8fea6e4be4a61cd2bfcb310166fbe6b2541b9ff4 (patch) | |
| tree | 3e144c0033200ef792b6e4284ac2789d77b18ccb /www/scripts/blog.js | |
| parent | 39c92cd0c75193465ddc7b96e9d8bbe23dff795c (diff) | |
video and blog
Diffstat (limited to 'www/scripts/blog.js')
| -rw-r--r-- | www/scripts/blog.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/www/scripts/blog.js b/www/scripts/blog.js index 0e8fa2f..5c5ad67 100644 --- a/www/scripts/blog.js +++ b/www/scripts/blog.js @@ -1,10 +1,8 @@ var evaluatedTags = ""; const clamp = (val, min, max) => Math.min(Math.max(val, min), max) -const api_url = "https://altafcreator.com" - function postList(n = 0) { - fetch(`${api_url}/api/blogs/`, { + fetch(`${API_URL}/blogs/`, { method: "POST", headers: { "Content-Type": "application/json", @@ -47,7 +45,7 @@ function postCard(post) { <div class="flex-container-normal chip-container"> ${evaluatedTags} </div> - <a href="/blog/post.html?post=${id}" class="link"><h2>${title}</h2></a> + <a href="/blog/${id}" class="link"><h2>${title}</h2></a> <p>${date}</p> </div> </div> |
