Merge pull request 'devel' (#217) from devel into main
Reviewed-on: #217
This commit is contained in:
commit
9b7280ace2
2 changed files with 13 additions and 3 deletions
|
@ -3,11 +3,13 @@
|
|||
<%= @note.name %>
|
||||
</.header>
|
||||
|
||||
<aside class="max-w-2xl mx-auto mt-8 prose prose-gruvbox bg-theme-background1 rounded p-2 empty:hidden">
|
||||
<%= raw(render_outline(@note)) %>
|
||||
<aside class="max-w-2xl mx-auto mt-8 prose prose-gruvbox">
|
||||
<div class="bg-theme-background1 rounded p-2 empty:hidden">
|
||||
<%= raw(render_outline(@note)) %>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<section class="mt-8 mx-auto prose prose-gruvbox md:prose-lg lg:prose-xl | p-summary e-content">
|
||||
<section class="mt-8 mx-auto prose prose-gruvbox md:prose-lg lg:prose-xl | p-summary e-content">
|
||||
<%= Markdown.render(@note.content) |> raw %>
|
||||
</section>
|
||||
|
||||
|
@ -22,6 +24,13 @@
|
|||
</section>
|
||||
<% end %>
|
||||
|
||||
<%= if String.length(@note.url) > 0 do %>
|
||||
<section class="mt-8 max-w-2xl mx-auto text-center text-lg">
|
||||
<.divider text=" " />
|
||||
<.icon name="hero-link" /> <a href={@note.url}><%= @note.url %></a>
|
||||
</section>
|
||||
<% end %>
|
||||
|
||||
<footer class="max-w-2xl mx-auto mt-8 text-theme-base">
|
||||
<%= if @note.published_at do %>
|
||||
<span>Published</span>
|
||||
|
|
|
@ -19,6 +19,7 @@ defmodule ChiyaWeb.Indie.Micropub do
|
|||
|> Enum.with_index()
|
||||
|> Enum.map(fn {photo, index} ->
|
||||
featured = index == 0
|
||||
|
||||
Chiya.Notes.create_note_image(%{
|
||||
note_id: note.id,
|
||||
path: photo.path,
|
||||
|
|
Loading…
Reference in a new issue