迁移数据库为postgresql

This commit is contained in:
2026-07-17 18:43:24 +08:00
parent 690b4e2ed3
commit 7f0f9df727
10 changed files with 290 additions and 33 deletions

View File

@@ -10,7 +10,12 @@
<br>
<a href="{{ url_for('blog.home') }}">返回首页</a>__<a href="{{ url_for('blog.sitemap') }}">网页地图</a>
<hr id="hr_2">
本站建立于大概2025年8月前后<br>
数据库迁移至postgresql
<br>
<p>2026.07.11</p>
<br>
<hr id="hr_2">
本站建立于大概2025年8月前后<br>
差不多是个人博客多次重建后的成果<br>
如今我已经成长很多<br>
<br>

View File

@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html>
<head>
{% for posts in posts %}
<title>{{ posts['title'] }}</title>
<link rel="icon" type="image/x-icon" href="/static/icon/original.ico">
<meta property="og:title" content="{{ posts['title'] }}">
@@ -8,19 +8,20 @@
<meta property="og:image" content="https://ww3.tw/static/img/open-ww3-project.png">
<meta property="og:url" content="https://ww3.tw/blog/posts/{{ posts['id']}}/">
<meta property="og:type" content="website">
</head>
{% endfor %}
</head>
<body>
<a href="/blog">返回主页</a>
<br>
<h1>{{ posts['title'] }}</h1>
<br>
<br>
{{ posts['content'].replace('&a&a','<style>a{text-decoration: none;}</style>') | safe}}
<br>
<br>
<br>
最后修改时间: 【{{ posts['update_time'].replace('.', '-') }}】
{% for posts in posts %}
{{ posts['content'].replace('&a&a','<style>a{text-decoration: none;}</style>') | safe}}
<br>
<br>
<br>
最后修改时间: 【{{ posts['update_time'].replace('.', '-') }}】
{% endfor %}
<br>
<hr>
<h2>留言区: </h2>
@@ -45,6 +46,7 @@
{% endfor %}
</body>
</html>
<style>
body {
background-color: rgb(175, 223, 255);
@@ -74,4 +76,4 @@
el.innerText = formatted;
}
});
</script>
</script>