Building a Blog with Elixir and Phoenix
3 hours ago
- #Phoenix
- #Blogging
- #Elixir
- The blog is built using Elixir and Phoenix, with server-side rendered pages.
- NimblePublisher is used to generate blog post pages from Markdown.
- The blog is hosted on a self-hosted Dokploy instance running on Hetzner, with bunny.net as a CDN.
- Phoenix was chosen for its flexibility and control, allowing for interactive features beyond static sites.
- NimblePublisher setup involves loading posts, parsing frontmatter, and compiling into module attributes for efficiency.
- Tailwind CSS is used for styling, with custom classes applied to HTML tags via Earmark options.
- The blog includes features like RSS feeds, sitemap generation, and SEO optimizations.
- Deployment is automated via Github Actions and Dokploy, ensuring fast and efficient updates.
- The blog supports dark mode and includes minimal custom CSS, leveraging Phoenix's built-in features.
- Future plans include posts on setting up bunny.net and Dokploy on Hetzner.