迁移数据库为postgresql
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user