18 lines
576 B
Text
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>
|