Skip to content

shoesandsocks/photo-to-markdown

Repository files navigation

Photo Markdowner

Makes markdown-style blog posts from a folder of photos

How to use & customize

Clone the repo, cd into it, npm install to install dependencies, then npm run dev.° Visit http://localhost:3001 in your browser.

Put your photos in the public/photos folder. Navigate to the /make-posts page. There you can edit the date (it will hopefully be populated with the photo's creation date, if your pics have valid EXIF encoded in them), and add a title, description, and tags.

When you submit an entry, it is validated and converted to a markdown file, ready to be copied into your .md-capable blog. Markdown files should start to pop up in the markdown-posts folder.

Obvious(?) note: Your blog's markdown files are different from mine; adjust the template at the top of src/mdMaker.js as appropriate - whatever frontmatter you want, whether you want more/other content in the body of each post... it's maybe not for beginners, but I think it's easy enough for a hobbyist to figure out. For that matter, it wouldn't be too tough to add additional fields to the form then use the data from those fields in the mdMaker.

(These screenshots aren't great but you get the idea...)

screenshot of form screenshot of resulting markdown file


° It uses Backpack under the hood (overkill for a small project but I like it); running in dev mode seems harmless enough.

About

Takes a folder of images; builds a page with pics and forms; user input is turned into blog-ready markdown files. Also makes KMLLayers for Google Maps

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published