Skip to content

Commit

Permalink
Merge pull request #59 from toppers/58-create-article
Browse files Browse the repository at this point in the history
新規の記事の書き方とOGPのimagesの設定
  • Loading branch information
mitsut authored Jul 11, 2020
2 parents 5ee353b + e8523cc commit 84140ca
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README-web.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,12 @@ or Reviewing the generated content.

[Install Hugo](https://gohugo.io/getting-started/installing/) (v0.72.0 or later)

## Create new article

$ hugo new hoge.md

### e.g. in `docs` section

$ hugo new docs/hoge.md

if only text article, you can remove `images` elements at front matter.
5 changes: 5 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
---
title: "{{ replace .Name "-" " " | title }}"
description: ""
date: {{ .Date }}
draft: true
bref: ""

images: [""]

---

2 changes: 2 additions & 0 deletions archetypes/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ weight = 20
draft = false
bref = ""
toc = true
images = [""]

+++

0 comments on commit 84140ca

Please sign in to comment.