From 578bc74f5e4abafaac215633164ba2bfd02abcb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=A1=E6=A2=A6=E6=98=9F=E5=B0=98?= Date: Tue, 3 May 2022 20:48:56 +0800 Subject: [PATCH] use title replace Unix time as URL & add article' author parameter which more usable for SEO search. --- archetypes/default.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/archetypes/default.md b/archetypes/default.md index 8aa69db..dffea9f 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,9 +1,10 @@ --- title: '{{ replace .Name "-" " " | title }}' -description: '不超过65个汉字的文章简要概述' +description: '文章简要概述不超过65个汉字' keywords: '文章关键词1,文章关键词2,文章关键词3' isCJKLanguage: true +author: '文章作者' lastmod: '{{ .Date }}' publishDate: '{{ .Date }}' @@ -15,5 +16,5 @@ tags: toc: false draft: true -url: '{{ now.Unix }}.html' +url: '{{ lower .Name }}.html' ---