š A boilerplate phoenix markdown blog using tailwindcss. No database required.
Thanks a lot to Alan Vardy for postex
To start your Phoenix server:
mix setup
mix phx.server
Now you can visit localhost:4000
from your browser.
/posts/{year}/{month}-{day}-{slug}.md
/posts/draft/
folder. They will not be published. Example :
/posts/2020/06-02-hello-terralixir.md
Format your markdown file like so
==title==
Your Title Goes Here
==author==
Your name probably
==description==
More text and stuff
==tags==
separate,your tags, with, commas
==body==
# This is a title

This is a paragraph
Store your images in the path /assets/static/images/blog/{year}/{picture.jpg}
and reference them by the filename only (as seen in the example above).
You may have occasional issues getting a markdown file recognized after being added or renamed, in this case run mix recompile --force
.
Take a look at terralixir.dev
Licensed under the MIT License - see the LICENSE file for details