Skip to content

Commit dfd2a1a

Browse files
committed
posts are in content folder
1 parent 295c41b commit dfd2a1a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ Tool to take raw logseq Markdown files and turn them into a blog posts with fron
99
- [x] translate all other page attributes to front matter
1010
- [x] remove top level bullet points
1111
- [x] "post" or "book" type - focus on posts
12-
- [ ] copy folder structure of my blog (store posts in content/posts)
12+
- [x] copy folder structure of my blog (store posts in content/posts)
1313
- [ ] handle categories array in front matter
1414
- [ ] merge blog with the generated folder

transform.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"strings"
88
)
99

10+
const baseFolder = "content"
1011
const defaultFolder = "posts" // TODO configure default folder
1112

1213
func sanitizeName(orig string) string {
@@ -92,7 +93,7 @@ func transformPage(p page) page {
9293
removeTabFromMultiLevelBulletPoints,
9394
)
9495
return page{
95-
filename: filepath.Join(folder, filename),
96+
filename: filepath.Join(baseFolder, folder, filename),
9697
attributes: p.attributes,
9798
text: text,
9899
}

0 commit comments

Comments
 (0)