Преглед изворни кода

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.