File tree 1 file changed +13
-25
lines changed
1 file changed +13
-25
lines changed Original file line number Diff line number Diff line change 2
2
3
3
This is the official code repository for the Vapor Blog.
4
4
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
14
6
15
- Linux :
7
+ Make sure you have publish installed :
16
8
17
- ```
18
- snap install hugo
9
+ ``` bash
10
+ brew install publish
19
11
```
20
12
21
- ### Creating file
13
+ ## Creating a new blog post
22
14
23
- Clone this repository locally :
15
+ Open the Swift Package :
24
16
25
- ```
26
- git clone [email protected] :qutheory/vapor-blog.git
27
- cd vapor-blog
17
+ ``` bash
18
+ open Package.swift
28
19
```
29
20
30
- Now create the file
31
-
32
- ```
33
- hugo new articles/my-blog-post-title.md
34
- ```
21
+ ### Creating file
35
22
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.
37
24
38
25
### Spin up local server
39
26
40
27
To spin up the project locally run
41
28
42
29
```
43
- hugo server
30
+ publish run
44
31
```
45
- You can now access http://localhost:1313/
32
+
33
+ You can now access http://localhost:8000/
You can’t perform that action at this time.
0 commit comments