chiya/lib/chiya_web/controllers/page_html/channel.html.heex

19 lines
576 B
Text
Raw Normal View History

<section class="max-w-2xl mx-auto">
<.header>
2023-07-09 20:01:03 +02:00
<%= @channel.name %>
<:subtitle><%= Markdown.render(@channel.content) |> raw %></:subtitle>
</.header>
2023-03-31 13:23:18 +02:00
<div class="w-full mt-6 sm:w-auto flex flex-col gap-1.5">
2023-09-05 21:59:37 +02:00
<%= if @channel.layout == :default do %>
<.note_list_default notes={@channel.notes}/>
<% end %>
<%= if @channel.layout == :gallery do %>
<.note_list_gallery notes={@channel.notes}/>
<% end %>
<%= if @channel.layout == :microblog do %>
<.note_list_microblog notes={@channel.notes}/>
<% end %>
</div>
2023-07-09 20:01:03 +02:00
</section>