Static blog with front page summary

Goal: have a personal blog, and try out another point in the 'modular
app design with elixir' space.

Designing OTP systems with elixir had some interesting ideas.
This commit is contained in:
Your Name
2026-03-17 11:17:21 +00:00
commit bc14696f57
94 changed files with 6846 additions and 0 deletions
@@ -0,0 +1,18 @@
defmodule FirehoseWeb.PageHTML do
@moduledoc """
This module contains pages rendered by PageController.
See the `page_html` directory for all templates available.
"""
use FirehoseWeb, :html
embed_templates "page_html/*"
defp blog_label(%{blog: :engineering}), do: "Engineering"
defp blog_label(%{blog: :release_notes}), do: "Releases"
defp blog_label(_), do: "Blog"
defp post_base_path(%{blog: :engineering}), do: "/blog/engineering"
defp post_base_path(%{blog: :release_notes}), do: "/blog/releases"
defp post_base_path(_), do: "/blog"
end