Skip to content

Commit 2b6e244

Browse files
authored
Update README.md
Fix outdated command to create a new blog post. Files must now be named index.md in order for image links to work.
1 parent 1351376 commit 2b6e244

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ Static, [Hugo-based](https://gohugo.io) home of Solus and its projects. This web
1212
### New Post
1313

1414
To create a new post, change to the main directory of this repo (solus-site.github.io).
15-
From there, call `hugo new PATH`. The `PATH` format is `blog/year/month/post-title/post-title.md`.
15+
From there, call `hugo new PATH`. The `PATH` format is `blog/year/month/post-title/index.md`.
1616

17-
For instance, to create a blog post for Feb. 2023 with the name "Welcome To The New Site", you would use: `hugo new blog/2023/02/welcome-to-the-new-site/welcome-to-the-new-site.md`.
18-
This would create `content/blog/2023/02/welcome-to-the-new-site/welcome-to-the-new-site.md`.
17+
For instance, to create a blog post for Feb. 2023 with the name "Welcome To The New Site", you would use: `hugo new blog/2023/02/welcome-to-the-new-site/index.md`.
18+
This would create `content/blog/2023/02/welcome-to-the-new-site/index.md`.
1919

2020
The markdown file will be created with our default configuration, which you can update as necessary. For metadata, most fields are self-explanatory.
2121

0 commit comments

Comments
 (0)