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

@@ -6,9 +6,7 @@ defmodule MonoTab.IndexLayout do
~H"""
<h1>{@page[:title] || "Latest Posts"}</h1>
<%= if @page[:description] do %>
<p>{@page[:description]}</p>
<% end %>
{{:safe, render(@inner_content)}}
<%= if assigns[:posts] && length(@posts) > 0 do %>
<ul>
@@ -27,8 +25,6 @@ defmodule MonoTab.IndexLayout do
<% else %>
<p>No posts found.</p>
<% end %>
{{:safe, render(@inner_content)}}
"""
end