diff options
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> |
