2023-07-07 13:48:41 +02:00
|
|
|
<section class="max-w-2xl mx-auto">
|
|
|
|
<.header>
|
2023-07-09 20:01:03 +02:00
|
|
|
<%= @channel.name %>
|
2023-07-14 14:01:21 +02:00
|
|
|
<:subtitle><%= Markdown.render(@channel.content) |> raw %></:subtitle>
|
2023-07-07 13:48:41 +02:00
|
|
|
</.header>
|
2023-03-31 13:23:18 +02:00
|
|
|
|
2023-07-07 13:48:41 +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 %>
|
2023-07-07 13:48:41 +02:00
|
|
|
</div>
|
2023-07-09 20:01:03 +02:00
|
|
|
</section>
|