chiya/lib/chiya_web/controllers/page_html/channel.html.heex
2023-09-05 21:59:37 +02:00

18 lines
576 B
Text

<section class="max-w-2xl mx-auto">
<.header>
<%= @channel.name %>
<:subtitle><%= Markdown.render(@channel.content) |> raw %></:subtitle>
</.header>
<div class="w-full mt-6 sm:w-auto flex flex-col gap-1.5">
<%= 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>
</section>