add source code to footer, remove unneeded layouts

This commit is contained in:
2025-07-26 15:09:57 -04:00
parent bc8bcfe9b3
commit 1fcc40d21d
12 changed files with 75 additions and 68 deletions

View File

@@ -1,29 +1,19 @@
defmodule MonoTab.Pages.Posts do
use Tableau.Page,
layout: MonoTab.IndexLayout,
permalink: "/posts"
permalink: "/posts",
title: "Latest Posts"
use Phoenix.Component
def template(assigns) do
~H"""
<section class="posts-archive">
<section>
<p>
Browse through our collection of articles on Elixir, functional programming,
web development, and software engineering best practices.
</p>
</section>
<section class="posts-filter">
<h3>Categories</h3>
<div class="category-tags">
<a href="/posts" class="category-tag active">All Posts</a>
<a href="/posts/elixir/" class="category-tag">Elixir</a>
<a href="/posts/phoenix/" class="category-tag">Phoenix</a>
<a href="/posts/functional-programming/" class="category-tag">Functional Programming</a>
<a href="/posts/web-development/" class="category-tag">Web Development</a>
</div>
</section>
"""
end
end