change blog title into left

This commit is contained in:
2025-07-26 21:11:03 +08:00
parent a32cd6aadd
commit bbc3fcef08
2 changed files with 6 additions and 5 deletions

View File

@@ -7,6 +7,8 @@
<body>
<!-- 添加样式使整个页面内容居中显示 -->
<div style="max-width: 800px; margin: 0 auto; padding: 0 20px;">
<!-- 添加网站标题 -->
<h1 style="text-align: left;">六桂流芳的com</h1>
<h1 style="text-align: center;">{{ post.title }}</h1>
<!-- 将返回首页链接放在发布时间的右侧 -->
<div style="display: flex; align-items: center; justify-content: space-between;">
@@ -22,4 +24,3 @@
</footer>
</body>
</html>

View File

@@ -5,9 +5,9 @@
<title>六桂流芳的com</title>
</head>
<body>
<!-- 添加样式使整个页面内容居中显示 -->
<div style="max-width: 800px; margin: 0 auto; padding: 0 20px; text-align: center;">
<h1>六桂流芳的com</h1>
<!-- 修改样式使页面内容靠左对齐,标题显示在左上角 -->
<div style="max-width: 800px; margin: 0 auto; padding: 0 20px; text-align: left;">
<h1 style="text-align: left;">六桂流芳的com</h1>
<ul style="list-style: none; padding: 0;">
{% for post in posts %}
<li style="margin: 10px 0; text-align: left;">