File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Create page with auto generated frontmatter.
8
8
### Usage
9
9
10
10
Make sure you run the command inside the root directory of your site projet.
11
- It will create a file in the src/pages path.
11
+ It will create a file in the src/content path.
12
12
13
13
``` bash
14
14
# $ astroadd [path]
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ var rootCmd = &cobra.Command{
32
32
Use : "astroadd [path]" ,
33
33
Short : "Create a new file" ,
34
34
Long : `Create a new file.
35
- Goes to src/pages
35
+ Goes to src/content
36
36
Based on the given path.
37
37
Automatically add the frontmatter (title, date, draft).
38
38
Ensure you run this within the root directory of your site.` ,
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import (
11
11
12
12
// Get the os platform separator
13
13
var sep = os .PathSeparator
14
- var basePath = fmt .Sprintf ("src%cpages %c" , sep , sep )
14
+ var basePath = fmt .Sprintf ("src%ccontent %c" , sep , sep )
15
15
16
16
// Return the title without dashes and the directory path for the given path.
17
17
// Or an error
Original file line number Diff line number Diff line change @@ -8,12 +8,12 @@ func TestSanitizer(t *testing.T) {
8
8
arg string
9
9
expected string
10
10
}{
11
- {"pages /posts.md" , "Posts" },
12
- {"pages /posts-1.md" , "Posts 1" },
13
- {"pages /posts_2.md" , "Posts 2" },
14
- {"pages /posts@3.md" , "Posts 3" },
15
- {"pages /posts_blog@4.md" , "Posts blog 4" },
16
- {"pages /posts_blog@/4.md" , "4" },
11
+ {"content /posts.md" , "Posts" },
12
+ {"content /posts-1.md" , "Posts 1" },
13
+ {"content /posts_2.md" , "Posts 2" },
14
+ {"content /posts@3.md" , "Posts 3" },
15
+ {"content /posts_blog@4.md" , "Posts blog 4" },
16
+ {"content /posts_blog@/4.md" , "4" },
17
17
}
18
18
19
19
for _ , tc := range cases {
You can’t perform that action at this time.
0 commit comments