Merge pull request 'devel' (#34) from devel into main

Reviewed-on: #34
This commit is contained in:
inhji 2023-03-31 13:55:26 +02:00
commit 192c8905bd
3 changed files with 5 additions and 4 deletions

View file

@ -23,7 +23,9 @@ defmodule Chiya.Channels do
"""
def list_channels do
Repo.all(Channel)
Channel
|> order_by(desc: :visibility)
|> Repo.all()
end
def preload_channel(channel), do: Repo.preload(channel, @preloads)

View file

@ -1,9 +1,9 @@
<div class="px-4 py-10 sm:py-28 sm:px-6 lg:px-8 xl:py-32 xl:px-28">
<div class="mx-auto max-w-xl lg:mx-0">
<h1 class="mt-4 text-[2rem] font-semibold leading-10 tracking-tighter text-gray-900">
<h1 class="mt-4 text-[2rem] font-semibold font-serif leading-10 tracking-tighter text-theme-primary">
<%= @channel.name %>
</h1>
<p class="mt-4 text-base leading-7 text-gray-600">
<p class="mt-4 text-base leading-7 text-theme-base">
<%= @channel.content %>
</p>

View file

@ -14,7 +14,6 @@
<a
rel={identity.rel}
href={identity.url}
target="_blank"
class="group -mx-2 -my-0.5 inline-flex items-center gap-3 rounded-lg px-2 py-0.5 hover:bg-theme-primary/10 transition"
>
<%= raw identity.icon %>