feat(archetype): add hugo new template for docs/tutorial layout

- To use: `hugo new --kind docs tutorial/hello.md`
- Remove [header] from exampleSite docs since it's deprecated for docs
This commit is contained in:
George Cushen committed 2018-10-21 21:00:43 +01:00
1 parent 8d8cddfdb2
commit e9597c72c7
3 files changed
+25 -12

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
+++
title = "{{ replace .Name "-" " " | title }}"
date = {{ .Date }}
draft = false
type = "docs" # Do not modify.
# Show table of contents? true/false
toc = true
# Add menu entry to sidebar.
# Uncomment to customize menu title, e.g. to abbreviate page title.
# linktitle = "Example"
# Substitute `tutorial` with the name of your tutorials folder.
[menu.tutorial]
# Define a parent ID if this page is a parent.
name = "YourParentID"
# Reference a parent ID if this page is a child.
# parent = "YourParentID"
# Order that this page appears in the menu.
weight = 1
+++
-6
View File
@@ -12,12 +12,6 @@ type = "docs" # Do not modify.
[menu.tutorial]
name = "Overview"
weight = 1
# Featured image.
# Uncomment below lines to use.
# [header]
# image = "headers/getting-started.png"
# caption = "Image credit: [**Academic**](https://github.com/gcushen/hugo-academic/)"
+++
This feature can be used for publishing content such as:
-6
View File
@@ -13,12 +13,6 @@ linktitle = "Example Page"
[menu.tutorial]
parent = "Example Topic"
weight = 1
# Featured image.
# Uncomment below lines to use.
# [header]
# image = "headers/getting-started.png"
# caption = "Image credit: [**Academic**](https://github.com/gcushen/hugo-academic/)"
+++
In this tutorial, I'll share my top 10 tips for getting started with Academic: