Align insta importer

This commit is contained in:
JP Hastings-Spital 2023-10-23 23:26:48 +01:00
parent ee7d4d38f6
commit 8409fa07b3

View file

@ -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 {