From 7548895d0351b523efff3d52c9c2b60d7ca82e42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=B9=E5=AE=87=E7=90=A8?= Date: Thu, 10 Sep 2020 17:38:12 +0800 Subject: [PATCH] New layout: plain-page. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added a new layout to provide a plain look which is similar to built-in pages. It has a “page-type-title” and removes advance functions such as sharing. When switching pages in the sidebar, readers will have a constant experience. To use this layout, add “layout: plain-page” to Front-matter. 添加了一种新的布局“plain-page”以提供类似内置页面(「归档」、「分类」、「标签」、「友链」等)的外观。它使用一个左对齐的标题(page-type-title)并且移除了「分享」这类高级功能。用户在侧边栏切换页面时能得到更连贯的阅读体验。在 Front-matter 中添加“layout: plain-page”来使用这种布局。 --- layout/plain-page | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 layout/plain-page diff --git a/layout/plain-page b/layout/plain-page new file mode 100644 index 0000000..5d661a5 --- /dev/null +++ b/layout/plain-page @@ -0,0 +1,4 @@ +
+

<%= page.title %>

+ <%- page.content %> +