Skip to content

Commit 95ae787

Browse files
committed
Update the README
1 parent fad6189 commit 95ae787

File tree

1 file changed

+13
-25
lines changed

1 file changed

+13
-25
lines changed

README.md

+13-25
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,32 @@
22

33
This is the official code repository for the Vapor Blog.
44

5-
## Creating a new blog post
6-
7-
Make sure you have the gohugo CLI installed locally.
8-
9-
MacOS:
10-
11-
```
12-
brew install hugo
13-
```
5+
## Install Publish
146

15-
Linux:
7+
Make sure you have publish installed:
168

17-
```
18-
snap install hugo
9+
```bash
10+
brew install publish
1911
```
2012

21-
### Creating file
13+
## Creating a new blog post
2214

23-
Clone this repository locally:
15+
Open the Swift Package:
2416

25-
```
26-
git clone [email protected]:qutheory/vapor-blog.git
27-
cd vapor-blog
17+
```bash
18+
open Package.swift
2819
```
2920

30-
Now create the file
31-
32-
```
33-
hugo new articles/my-blog-post-title.md
34-
```
21+
### Creating file
3522

36-
You can now edit the file `articles/my-blog-post-title.md`
23+
Now create the file in `Content/posts/my-blog-post-title` and add the new content. Run the Swift Package to generate the new content.
3724

3825
### Spin up local server
3926

4027
To spin up the project locally run
4128

4229
```
43-
hugo server
30+
publish run
4431
```
45-
You can now access http://localhost:1313/
32+
33+
You can now access http://localhost:8000/

0 commit comments

Comments
 (0)