add source code to footer, remove unneeded layouts
This commit is contained in:
@@ -66,16 +66,19 @@
|
|||||||
</span></code></pre>
|
</span></code></pre>
|
||||||
<p>This blog post is just a simple introduction to Elixir. Stay tuned for more in-depth tutorials and examples!</p>
|
<p>This blog post is just a simple introduction to Elixir. Stay tuned for more in-depth tutorials and examples!</p>
|
||||||
|
|
||||||
<time datetime="2024-01-15T00:00:00Z"></time>
|
|
||||||
|
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<p>
|
<p>
|
||||||
© 2025 MonoTab Blog. Built with
|
© 2025 MonoTab Blog. Built with
|
||||||
<a href="https://github.com/artalar/mono" target="_blank">Mono</a>
|
<a href="https://github.com/elixir-tools/tableau" target="_blank">Tableau</a>
|
||||||
and <a href="https://github.com/elixir-tools/tableau" target="_blank">Tableau</a>
|
and <a href="https://github.com/artalar/mono" target="_blank">Mono</a>
|
||||||
|
<br>
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
<p class="footer-extra">
|
||||||
|
<a href="https://git.silentsilas.com/silentsilas/monotab" target="_blank">
|
||||||
|
Source Code
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
@@ -59,18 +59,23 @@
|
|||||||
<section class="about-contact">
|
<section class="about-contact">
|
||||||
<h2>Get in Touch</h2>
|
<h2>Get in Touch</h2>
|
||||||
<p>
|
<p>
|
||||||
Interested in contributing or have questions? Feel free to reach out through
|
Proin neque ante, imperdiet quis tincidunt ut, viverra molestie nisl. Phasellus gravida quam metus, id ultricies turpis luctus sed. Suspendisse nec bibendum magna. Aenean eu ligula tellus.
|
||||||
our community channels or open an issue on our GitHub repository.
|
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<p>
|
<p>
|
||||||
© 2025 MonoTab Blog. Built with
|
© 2025 MonoTab Blog. Built with
|
||||||
<a href="https://github.com/artalar/mono" target="_blank">Mono</a>
|
<a href="https://github.com/elixir-tools/tableau" target="_blank">Tableau</a>
|
||||||
and <a href="https://github.com/elixir-tools/tableau" target="_blank">Tableau</a>
|
and <a href="https://github.com/artalar/mono" target="_blank">Mono</a>
|
||||||
|
<br>
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
<p class="footer-extra">
|
||||||
|
<a href="https://git.silentsilas.com/silentsilas/monotab" target="_blank">
|
||||||
|
Source Code
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
@@ -30,3 +30,8 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.footer-extra {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
@@ -32,15 +32,27 @@
|
|||||||
<p>
|
<p>
|
||||||
A simple blog built with Elixir, Phoenix LiveView, and Tableau static site generator.
|
A simple blog built with Elixir, Phoenix LiveView, and Tableau static site generator.
|
||||||
</p>
|
</p>
|
||||||
|
<h3>
|
||||||
|
Some Headers
|
||||||
|
</h3>
|
||||||
|
<p>
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ac ante sed lectus aliquet accumsan. Donec sed rutrum lacus. In ut tellus sit amet turpis efficitur condimentum.
|
||||||
|
</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<p>
|
<p>
|
||||||
© 2025 MonoTab Blog. Built with
|
© 2025 MonoTab Blog. Built with
|
||||||
<a href="https://github.com/artalar/mono" target="_blank">Mono</a>
|
<a href="https://github.com/elixir-tools/tableau" target="_blank">Tableau</a>
|
||||||
and <a href="https://github.com/elixir-tools/tableau" target="_blank">Tableau</a>
|
and <a href="https://github.com/artalar/mono" target="_blank">Mono</a>
|
||||||
|
<br>
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
<p class="footer-extra">
|
||||||
|
<a href="https://git.silentsilas.com/silentsilas/monotab" target="_blank">
|
||||||
|
Source Code
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>
|
<title>
|
||||||
MonoTab Blog
|
Latest Posts | MonoTab Blog
|
||||||
</title>
|
</title>
|
||||||
|
|
||||||
<link rel="stylesheet" href="/css/mono.css">
|
<link rel="stylesheet" href="/css/mono.css">
|
||||||
@@ -29,7 +29,12 @@
|
|||||||
<main>
|
<main>
|
||||||
<h1>Latest Posts</h1>
|
<h1>Latest Posts</h1>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<p>
|
||||||
|
Browse through our collection of articles on Elixir, functional programming,
|
||||||
|
web development, and software engineering best practices.
|
||||||
|
</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
@@ -45,31 +50,19 @@
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<section class="posts-archive">
|
|
||||||
<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>
|
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<p>
|
<p>
|
||||||
© 2025 MonoTab Blog. Built with
|
© 2025 MonoTab Blog. Built with
|
||||||
<a href="https://github.com/artalar/mono" target="_blank">Mono</a>
|
<a href="https://github.com/elixir-tools/tableau" target="_blank">Tableau</a>
|
||||||
and <a href="https://github.com/elixir-tools/tableau" target="_blank">Tableau</a>
|
and <a href="https://github.com/artalar/mono" target="_blank">Mono</a>
|
||||||
|
<br>
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
<p class="footer-extra">
|
||||||
|
<a href="https://git.silentsilas.com/silentsilas/monotab" target="_blank">
|
||||||
|
Source Code
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
@@ -30,3 +30,8 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.footer-extra {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
@@ -6,9 +6,7 @@ defmodule MonoTab.IndexLayout do
|
|||||||
~H"""
|
~H"""
|
||||||
<h1>{@page[:title] || "Latest Posts"}</h1>
|
<h1>{@page[:title] || "Latest Posts"}</h1>
|
||||||
|
|
||||||
<%= if @page[:description] do %>
|
{{:safe, render(@inner_content)}}
|
||||||
<p>{@page[:description]}</p>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= if assigns[:posts] && length(@posts) > 0 do %>
|
<%= if assigns[:posts] && length(@posts) > 0 do %>
|
||||||
<ul>
|
<ul>
|
||||||
@@ -27,8 +25,6 @@ defmodule MonoTab.IndexLayout do
|
|||||||
<% else %>
|
<% else %>
|
||||||
<p>No posts found.</p>
|
<p>No posts found.</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
{{:safe, render(@inner_content)}}
|
|
||||||
"""
|
"""
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@@ -5,19 +5,6 @@ defmodule MonoTab.PostLayout do
|
|||||||
def template(assigns) do
|
def template(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
{{:safe, render(@inner_content)}}
|
{{:safe, render(@inner_content)}}
|
||||||
<%= if @page[:date] do %>
|
|
||||||
<time datetime={@page[:date]}>{format_date(@page[:date])}</time>
|
|
||||||
<% end %>
|
|
||||||
"""
|
"""
|
||||||
end
|
end
|
||||||
|
|
||||||
defp format_date(date_string) when is_binary(date_string) do
|
|
||||||
case Date.from_iso8601(date_string) do
|
|
||||||
{:ok, date} -> Calendar.strftime(date, "%B %d, %Y")
|
|
||||||
{:error, _} -> date_string
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
defp format_date(%Date{} = date), do: Calendar.strftime(date, "%B %d, %Y")
|
|
||||||
defp format_date(_), do: ""
|
|
||||||
end
|
end
|
||||||
|
@@ -44,10 +44,16 @@ defmodule MonoTab.RootLayout do
|
|||||||
<footer>
|
<footer>
|
||||||
<p>
|
<p>
|
||||||
© {Date.utc_today().year} MonoTab Blog. Built with
|
© {Date.utc_today().year} MonoTab Blog. Built with
|
||||||
<a href="https://github.com/artalar/mono" target="_blank">Mono</a>
|
<a href="https://github.com/elixir-tools/tableau" target="_blank">Tableau</a>
|
||||||
and <a href="https://github.com/elixir-tools/tableau" target="_blank">Tableau</a>
|
and <a href="https://github.com/artalar/mono" target="_blank">Mono</a>
|
||||||
|
<br />
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
<p class="footer-extra">
|
||||||
|
<a href="https://git.silentsilas.com/silentsilas/monotab" target="_blank">
|
||||||
|
Source Code
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
@@ -39,8 +39,7 @@ defmodule MonoTab.Pages.About do
|
|||||||
<section class="about-contact">
|
<section class="about-contact">
|
||||||
<h2>Get in Touch</h2>
|
<h2>Get in Touch</h2>
|
||||||
<p>
|
<p>
|
||||||
Interested in contributing or have questions? Feel free to reach out through
|
Proin neque ante, imperdiet quis tincidunt ut, viverra molestie nisl. Phasellus gravida quam metus, id ultricies turpis luctus sed. Suspendisse nec bibendum magna. Aenean eu ligula tellus.
|
||||||
our community channels or open an issue on our GitHub repository.
|
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
"""
|
"""
|
||||||
|
@@ -12,6 +12,12 @@ defmodule MonoTab.Pages.Index do
|
|||||||
<p>
|
<p>
|
||||||
A simple blog built with Elixir, Phoenix LiveView, and Tableau static site generator.
|
A simple blog built with Elixir, Phoenix LiveView, and Tableau static site generator.
|
||||||
</p>
|
</p>
|
||||||
|
<h3>
|
||||||
|
Some Headers
|
||||||
|
</h3>
|
||||||
|
<p>
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ac ante sed lectus aliquet accumsan. Donec sed rutrum lacus. In ut tellus sit amet turpis efficitur condimentum.
|
||||||
|
</p>
|
||||||
</section>
|
</section>
|
||||||
"""
|
"""
|
||||||
end
|
end
|
||||||
|
@@ -1,29 +1,19 @@
|
|||||||
defmodule MonoTab.Pages.Posts do
|
defmodule MonoTab.Pages.Posts do
|
||||||
use Tableau.Page,
|
use Tableau.Page,
|
||||||
layout: MonoTab.IndexLayout,
|
layout: MonoTab.IndexLayout,
|
||||||
permalink: "/posts"
|
permalink: "/posts",
|
||||||
|
title: "Latest Posts"
|
||||||
|
|
||||||
use Phoenix.Component
|
use Phoenix.Component
|
||||||
|
|
||||||
def template(assigns) do
|
def template(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
<section class="posts-archive">
|
<section>
|
||||||
<p>
|
<p>
|
||||||
Browse through our collection of articles on Elixir, functional programming,
|
Browse through our collection of articles on Elixir, functional programming,
|
||||||
web development, and software engineering best practices.
|
web development, and software engineering best practices.
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</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
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user