2023-07-07 14:01:59 +02:00
|
|
|
<section class="mx-auto max-w-2xl">
|
2023-07-07 13:55:22 +02:00
|
|
|
<.header>
|
|
|
|
<:title>Wiki</:title>
|
|
|
|
</.header>
|
2023-07-07 11:07:46 +02:00
|
|
|
|
2023-07-07 14:01:59 +02:00
|
|
|
<section class="prose prose-gruvbox mt-6">
|
2023-07-07 13:55:22 +02:00
|
|
|
<%= Markdown.render(@channel.content) |> raw %>
|
|
|
|
</section>
|
2023-07-07 14:01:59 +02:00
|
|
|
</section>
|
2023-07-07 12:04:26 +02:00
|
|
|
|
2023-07-07 14:01:59 +02:00
|
|
|
<%= if @channel do %>
|
|
|
|
<section class="flex flex-col md:flex-row gap-3 mt-6 w-full px-3">
|
|
|
|
<div class="w-full mt-6 sm:w-auto flex flex-1 flex-col gap-1.5">
|
|
|
|
<h2 class="text-xl">Recently Updated</h2>
|
2023-07-07 13:59:56 +02:00
|
|
|
|
2023-07-07 14:01:59 +02:00
|
|
|
<.note_list notes={@notes_updated} layout={@channel.layout} />
|
|
|
|
</div>
|
2023-07-07 12:02:47 +02:00
|
|
|
|
2023-07-07 14:01:59 +02:00
|
|
|
<div class="w-full mt-6 sm:w-auto flex flex-1 flex-col gap-1.5">
|
|
|
|
<h2 class="text-xl">Recently Published</h2>
|
2023-07-07 13:59:56 +02:00
|
|
|
|
2023-07-07 14:01:59 +02:00
|
|
|
<.note_list notes={@notes_published} layout={@channel.layout} />
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<% end %>
|