Skip to content

Commit 518e284

Browse files
committed
Adding template for new pages added at GitHub
1 parent 6d63a21 commit 518e284

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

assets/stubs/new-page-template.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: "Long Page Title"
3+
linkTitle: "Short Nav Title"
4+
weight: 100
5+
description: >-
6+
Page description for heading and indexes.
7+
---
8+
9+
<!--
10+
In order to change the default frontmatter and the content for new pages,
11+
edit the template file `assets/stubs/new-page-template` of your project.
12+
-->
13+
14+
## Heading
15+
16+
Edit this template to create your new page.
17+
18+
* Give it a good name, ending in `.md` - e.g. `getting-started.md`
19+
* Edit the "front matter" section at the top of the page (weight controls how its ordered amongst other pages in the same directory; lowest number first).
20+
* Add a good commit message at the bottom of the page (< 80 characters; use the extended description field for more detail).
21+
* Create a new branch so you can preview your new file and request a review via Pull Request.

0 commit comments

Comments
 (0)