| 1 |
hugo new project my-project |
| 2 |
cd my-project |
| 3 |
hugo new content --kind post post/first-post.md |
| 4 |
! exists resources |
| 5 |
grep 'draft = true' content/post/first-post.md |
| 6 |
|
| 7 |
# Issue 12599 |
| 8 |
|
| 9 |
cd $WORK |
| 10 |
hugo new project --format toml --force issue-12599 |
| 11 |
cp hugo.toml issue-12599/hugo.toml |
| 12 |
cd issue-12599 |
| 13 |
hugo new content content/s1/2099-12-31-p1.md |
| 14 |
hugo -DF |
| 15 |
grep 'DATE _2099-12-31_' public/s1/p1/index.html |
| 16 |
grep 'SLUG _p1_' public/s1/p1/index.html |
| 17 |
grep 'TITLE _2099 12 31 P1_' public/s1/p1/index.html |
| 18 |
|
| 19 |
# Issue 12602 |
| 20 |
|
| 21 |
cd $WORK |
| 22 |
hugo new project issue-12602 |
| 23 |
cd issue-12602 |
| 24 |
hugo new content about/_index.md |
| 25 |
! hugo new content about.md |
| 26 |
stderr 'the target path conflicts with existing content' |
| 27 |
|
| 28 |
# Issue 12786 |
| 29 |
|
| 30 |
cd $WORK |
| 31 |
hugo new project issue-12786 |
| 32 |
cd issue-12786 |
| 33 |
hugo new content content/p1/index.md |
| 34 |
! hugo new content content/p1/p2.md |
| 35 |
stderr 'the target path conflicts with existing content' |
| 36 |
|
| 37 |
# Issue 14112 |
| 38 |
|
| 39 |
cd $WORK |
| 40 |
hugo new project issue-14112 |
| 41 |
cd issue-14112 |
| 42 |
hugo new content P1.md |
| 43 |
! hugo new content p1.md |
| 44 |
stderr 'the target path conflicts with existing content' |
| 45 |
|
| 46 |
-- hugo.toml -- |
| 47 |
disableKinds = ['home','rss','section','sitemap','taxonomy','term'] |
| 48 |
[frontmatter] |
| 49 |
date = [':filename', ':default'] |
| 50 |
publishDate = [':filename', ':default'] |
| 51 |
-- issue-12599/layouts/all.html -- |
| 52 |
DATE _{{ .Date.Format "2006-01-02" }}_ |
| 53 |
SLUG _{{ .Slug }}_ |
| 54 |
TITLE _{{ .Title }}_ |