Clean up statuses

This commit is contained in:
Daniel Nitsikopoulos
2024-10-19 18:42:46 +11:00
parent 9d9828246e
commit a2e7b33363
5 changed files with 58 additions and 45 deletions

View File

@@ -3,11 +3,31 @@ div class="mb-8 h-entry border border-gray-200 m-2 p-4 bg-gray-50 hover:bg-gray-
div
- if !post.photos? && post.key_image.nil?
div class="flex"
div class="text-8xl px-8"
div class="text-5xl px-8"
= post.prefix_emoji
a href="/post/#{post.slug}"
div class="e-content prose-p:mb-0 prose-img:my-2 prose-a:text-blue-600 prose-a:no-underline hover:prose-a:underline p-name text-base prose prose-ul:list-none prose-ul:pl-0 prose-li:pl-0 text-gray-800 dark:text-gray-200 prose-a:dark:text-gray-100 mb-4 prose-img:rounded"
== post.raw_content
div
a href="/post/#{post.slug}"
div class="e-content prose-p:mb-0 prose-img:my-2 prose-a:text-blue-600 prose-a:no-underline hover:prose-a:underline p-name text-base prose prose-ul:list-none prose-ul:pl-0 prose-li:pl-0 text-gray-800 dark:text-gray-200 prose-a:dark:text-gray-100 mb-4 prose-img:rounded"
== post.raw_content
div class="mb-8"
p class="text-sm text-blue-400 dark:text-indigo-400"
a class="u-url float-left mr-0 border-dotted border-b-2 border-blue-100 hover:border-blue-200 dark:border-indigo-900 dark:hover:border-indigo-800" href="#{post.permalink}"
time class="dt-published" datetime=post.machine_published_at
= post.display_published_at
- if post.webmentions.count > 0
== " · #{post.webmentions.count} comment(s)"
- post.syndicated_to.each do |loc|
== " ·"
a rel="syndication" class="u-syndication inline-block ml-1 float-left" href=loc[:url]
- if loc[:location] != ""
== render "shared/#{loc[:location]}", width: "w-4"
- if post.tags.count > 0
span class="text-sm float-left text-blue-400 dark:text-indigo-400 ml-1"
== " · tagged: "
- post.tags.each do |post_tag|
a class="text-sm p-category float-left mr-1 u-url text-pink-400 hover:text-pink-600 dark:text-pink-400 dark:hover:text-pink-100 text-gray-600 ml-1" href="/tagged/#{post_tag.slug}"
= "##{post_tag.label}"
-else
a href="/post/#{post.slug}"
div class="e-content prose-p:mb-0 prose-img:my-2 prose-a:text-blue-600 prose-a:no-underline hover:prose-a:underline p-name text-base prose prose-ul:list-none prose-ul:pl-0 prose-li:pl-0 text-gray-800 dark:text-gray-200 prose-a:dark:text-gray-100 mb-4 prose-img:rounded"
@@ -21,18 +41,22 @@ div class="mb-8 h-entry border border-gray-200 m-2 p-4 bg-gray-50 hover:bg-gray-
- post.videos.each do |video|
video class="rounded w-max" autoplay=false loop=false muted=true controls=true
source type="video/mp4" src="#{video["value"]}"
== render "shared/tags", tags: post.tags
div class="mb-8"
p class="text-sm text-blue-400 dark:text-indigo-400"
a class="u-url float-left mr-0 border-dotted border-b-2 border-blue-100 hover:border-blue-200 dark:border-indigo-900 dark:hover:border-indigo-800" href="#{post.permalink}"
time class="dt-published" datetime=post.machine_published_at
= post.display_published_at
- if post.webmentions.count > 0
== " · #{post.webmentions.count} comment(s)"
div class="mb-8"
p class="text-sm text-blue-400 dark:text-indigo-400"
a class="u-url float-left mr-0" href="#{post.permalink}"
time class="dt-published" datetime=post.machine_published_at
= post.display_published_at
- if post.webmentions.count > 0
== " · #{post.webmentions.count} comment(s)"
- post.syndicated_to.each do |loc|
== " ·"
a rel="syndication" class="u-syndication inline-block ml-1 float-left" href=loc[:url]
- if loc[:location] != ""
== render "shared/#{loc[:location]}", width: "w-4"
- post.syndicated_to.each do |loc|
== " ·"
a rel="syndication" class="u-syndication inline-block ml-1 float-left" href=loc[:url]
- if loc[:location] != ""
== render "shared/#{loc[:location]}", width: "w-4"
- if post.tags.count > 0
span class="text-sm float-left text-blue-400 dark:text-indigo-400 ml-1"
== " · tagged: "
- post.tags.each do |post_tag|
a class="text-sm p-category float-left mr-1 u-url text-pink-400 hover:text-pink-600 dark:text-pink-400 dark:hover:text-pink-100 text-gray-600 ml-1" href="/tagged/#{post_tag.slug}"
= "##{post_tag.label}"

View File

@@ -27,14 +27,14 @@ div class="justify-between max-w-prose mx-auto mb-8"
h2 class="text-xl text-emerald-600 dark:text-emerald-100" Projects
div class="flex max-w-prose mx-auto mb-4 gap-4"
a class="p-2 flex flex-col flex-1 rounded bg-emerald-100 hover:bg-emerald-400 dark:bg-emerald-600 hover:dark:bg-emerald-400 block text-emerald-900 dark:text-emerald-200 hover:dark:text-emerald-800" href="https://reprint.computer"
strong 🖥️ reprint.computer
p class="font-semibold" 🖥️ reprint.computer
small Syndicate blog posts around the web
a class="p-2 flex flex-col flex-1 rounded bg-emerald-100 hover:bg-emerald-400 dark:bg-emerald-600 hover:dark:bg-emerald-400 block text-emerald-900 dark:text-emerald-200 hover:dark:text-emerald-800" href="https://apps.apple.com/au/app/patternmate/id6464105499"
strong 🧵️ PatternMate
p class="font-semibold" 🧵️ PatternMate
small Organise your sewing patterns
div class="flex max-w-prose mx-auto mb-2 gap-4"
a class="p-2 flex flex-col flex-1 rounded bg-emerald-100 hover:bg-emerald-400 dark:bg-emerald-600 hover:dark:bg-emerald-400 block text-emerald-900 dark:text-emerald-200 hover:dark:text-emerald-800" href="https://github.com/dnitza/adamantium"
strong 📝 Adamantium
p class="font-semibold" 📝 Adamantium
small The source code behind this blog
div class="flex justify-between max-w-prose mx-auto mb-2"

View File

@@ -1,13 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Adamantium - Micropub</title>
<%= stylesheet_tag "app" %>
</head>
<body>
<%= yield %>
<%= javascript_tag "micropub/app" %>
</body>
</html>