瀏覽代碼

archetypes: Make `hugo new home/<TITLE>.md` use the custom widget

George Cushen 7 年之前
父節點
當前提交
7b4bdd22bd
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      archetypes/home.md

+ 5 - 1
archetypes/home.md

@@ -1,7 +1,11 @@
 +++
+# Custom widget.
+widget = "custom"
+active = true
 date = {{ .Date }}
-draft = true
 
+# Note: a full width section format can be enabled by commenting out the `title` and `subtitle` with a `#`.
+title = "{{ replace .TranslationBaseName "-" " " | title }}"
 subtitle = ""
 
 # Order that this section will appear in.