„lib/chiya_web/controllers/page_html/wiki.html.heex“ ändern

This commit is contained in:
inhji 2023-07-07 14:01:59 +02:00
parent b54fa62675
commit 8fcb5a1858

View file

@ -1,25 +1,25 @@
<section class="w-full px-3"> <section class="mx-auto max-w-2xl">
<.header> <.header>
<:title>Wiki</:title> <:title>Wiki</:title>
</.header> </.header>
<section class="prose prose-gruvbox"> <section class="prose prose-gruvbox mt-6">
<%= Markdown.render(@channel.content) |> raw %> <%= Markdown.render(@channel.content) |> raw %>
</section> </section>
</section>
<%= if @channel do %> <%= if @channel do %>
<section class="flex flex-col md:flex-row gap-3"> <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"> <div class="w-full mt-6 sm:w-auto flex flex-1 flex-col gap-1.5">
<h2 class="text-xl">Recently Updated</h2> <h2 class="text-xl">Recently Updated</h2>
<.note_list notes={@notes_updated} layout={@channel.layout} /> <.note_list notes={@notes_updated} layout={@channel.layout} />
</div> </div>
<div class="w-full mt-6 sm:w-auto flex flex-1 flex-col gap-1.5"> <div class="w-full mt-6 sm:w-auto flex flex-1 flex-col gap-1.5">
<h2 class="text-xl">Recently Published</h2> <h2 class="text-xl">Recently Published</h2>
<.note_list notes={@notes_published} layout={@channel.layout} /> <.note_list notes={@notes_published} layout={@channel.layout} />
</div> </div>
</section> </section>
<% end %> <% end %>
</section>