浏览代码

nicer page title for blog posts

Thomas Buck 1年前
父节点
当前提交
0f41b464ae
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      page.html

+ 1
- 1
page.html 查看文件

@@ -7,7 +7,7 @@ else:
7 7
 %-->
8 8
 <head>
9 9
     <meta charset="{{ htmlspecialchars(__encoding__) }}" />
10
-    <title>{{ htmlspecialchars(page.title) }} - xythobuz.de</title>
10
+    <title>{{ htmlspecialchars(page.get("post", "Blog")) if page.title == "Blog" else htmlspecialchars(page.title) }} - xythobuz.de</title>
11 11
     <meta name="description" content="{{ htmlspecialchars(page.get("description", "Electronics & Software Projects")) }}" />
12 12
     <meta name="keywords" content="{{ htmlspecialchars(page.get("keywords", "xythobuz")) }}" />
13 13
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />

正在加载...
取消
保存