phoenix_blog_template Tailwind Templates

Phoenix_blog_template

A boilerplate phoenix markdown blog using tailwindcss. No database required.

Terralixir Logo

Elixir/Phoenix static blog template

šŸŽ A boilerplate phoenix markdown blog using tailwindcss. No database required.

Thanks a lot to Alan Vardy for postex

šŸš€ Getting Started

To start your Phoenix server:

  • Install dependencies with mix setup
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

ā“ How to use

  • Add your post with the following format /posts/{year}/{month}-{day}-{slug}.md
  • Save your draft in the /posts/draft/ folder. They will not be published.

Example : /posts/2020/06-02-hello-terralixir.md

šŸ”¦ Adding Templates and Pictures

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

  ![alt text](picture.jpg "Awesome picture")

  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.

šŸ›  Built with

šŸ”® Demo

Take a look at terralixir.dev

šŸ“‹ License

Licensed under the MIT License - see the LICENSE file for details

Top categories

Loading Svelte Themes