This commit is contained in:
Inhji 2023-05-22 21:05:33 +02:00
parent ed68734fc3
commit a41acf52da
4 changed files with 19 additions and 15 deletions

View file

@ -16,7 +16,6 @@ defmodule Chiya.Channels.Channel do
field :layout, Ecto.Enum, values: [
:default,
:microblog,
:photoblog,
:gallery
]

View file

@ -42,17 +42,21 @@
</main>
<footer class="mx-auto max-w-xl mt-8 text-theme-base/75 border-t pt-8 border-theme-background1">
<span>Served by Chiya v<%= Application.spec(:chiya, :vsn) %></span>
<.dot />
<span>Made by Inhji</span>
<.dot />
<span>Struggling to make a decent website since 2011</span>
<%= for identity <- @identities do %>
<.dot />
<p>
<span>Served by Chiya v<%= Application.spec(:chiya, :vsn) %></span>
<.dot />
<span>Made by Inhji</span>
<.dot />
<span>Struggling to make a decent website since 2011</span>
<.dot />
<span><a href={~p"/admin"}>Admin</a></span>
</p>
<p>
<%= for identity <- @identities do %>
<span><a href={identity.url}><%= identity.name %></a></span>
<% end %>
<.dot />
<span><a href={~p"/admin"}>Admin</a></span>
</p>
</footer>
</body>
</html>

View file

@ -9,6 +9,7 @@ defmodule ChiyaWeb.PublicComponents do
import ChiyaWeb.Format
import ChiyaWeb.Markdown, only: [render: 1]
import Phoenix.HTML, only: [raw: 1]
import ChiyaWeb.CoreComponents
@doc """
Renders a middot as divider
@ -113,15 +114,15 @@ defmodule ChiyaWeb.PublicComponents do
</time>
<.dot />
<a href={~p"/#{note.slug}"} class="text-theme-base/75">Permalink</a>
<%= if not Enum.empty?(note.images) do %>
<.dot />
<.icon name="hero-photo" />
<% end %>
</article>
<% end %>
</section>
"""
:photoblog ->
~H"""
"""
_ -> # default, show headings only
~H"""
<section class="note-list default | mt-6 sm:w-auto flex flex-col gap-1.5">

View file

@ -33,7 +33,7 @@
<%= Markdown.render(@note.content) |> raw %>
</section>
<section class="mt-8 mx-auto max-w-2xl">
<section class="mt-8 mx-auto max-w-xl">
<%= if !Enum.empty?(@note.images) do %>
<.line />