增加文章最后修改日期,并且准备转向前端请求,并非后端模板的想法

This commit is contained in:
2026-04-11 02:03:21 +08:00
parent 98314cbfe3
commit abdf1b4258
4 changed files with 42 additions and 9 deletions

33
static/new_page/home.html Normal file
View File

@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
</body>
</html>
<!-- <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
fetch('https://open-ww3-project.ww3.tw/api/s/get/logs/')
.then(response => response.json())
.then(data => {
const textContent = JSON.stringify(data, null, 2);
str = textContent
arrayStr = JSON.parse(str)
arr = arrayStr.map(obj => obj.content)
document.write(arr)
})
</script>
</body>
</html> -->