mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-24 07:33:13 +01:00
Align insta importer
This commit is contained in:
parent
ee7d4d38f6
commit
8409fa07b3
1 changed files with 4 additions and 2 deletions
|
@ -96,7 +96,7 @@ func main() {
|
|||
|
||||
archive := os.Args[1]
|
||||
hugo := os.Args[2]
|
||||
outputDir := path.Join(hugo, "content", "instagram-posts")
|
||||
outputDir := path.Join(hugo, "content", "photos")
|
||||
|
||||
zf, err := zip.OpenReader(archive)
|
||||
check(err, "Unable to open instagram archive")
|
||||
|
@ -182,7 +182,9 @@ func postToPost(p post, mediaMap map[string]string, outputDir string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
fm := frontMatter{}
|
||||
fm := frontMatter{
|
||||
Tags: []string{"imported", "from-instagram"},
|
||||
}
|
||||
|
||||
fm.Title = text
|
||||
if len(fm.Title) > titleLength {
|
||||
|
|
Loading…
Reference in a new issue