Просмотр исходного кода

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

George Cushen 7 лет назад
Родитель
Сommit
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.