diff --git a/app/commands/media/upload.rb b/app/commands/media/upload.rb index 5c542ab..d5e5166 100644 --- a/app/commands/media/upload.rb +++ b/app/commands/media/upload.rb @@ -11,7 +11,7 @@ module Adamantium include Deps["settings"] include Dry::Monads[:result] - VALID_UPLOAD_TYPES = %i[jpeg jpg png gif] + VALID_UPLOAD_TYPES = %i[jpeg jpg png gif mp4] def call(file:) mime = FileMagic.new diff --git a/app/decorators/posts/decorator.rb b/app/decorators/posts/decorator.rb index a616121..31a874d 100644 --- a/app/decorators/posts/decorator.rb +++ b/app/decorators/posts/decorator.rb @@ -26,7 +26,7 @@ module Adamantium end def prefix_emoji - name ? "📝" : "📯" + name ? "" : "📯" end def display_title diff --git a/app/templates/shared/_post.html.slim b/app/templates/shared/_post.html.slim index 16b7957..1f570e6 100644 --- a/app/templates/shared/_post.html.slim +++ b/app/templates/shared/_post.html.slim @@ -2,7 +2,7 @@ div class="mb-8 h-entry" h3 class="text-xl font-semibold text-blue-600 mb-2" a class="u-url border-b-2 border-transparent hover:border-blue-600 hover:border-b-2" href="/post/#{post.slug}" = post.display_title - div class="e-content p-name text-base text-gray-800 dark:text-gray-200" + div class="e-content p-name text-base prose prose-ul:list-none prose-ul:pl-0 prose-li:pl-0 text-gray-800 dark:text-gray-200" == post.excerpt == render :tags, tags: post.tags diff --git a/app/views/site/home.rb b/app/views/site/home.rb index 0504721..45b3808 100644 --- a/app/views/site/home.rb +++ b/app/views/site/home.rb @@ -11,7 +11,7 @@ module Adamantium end expose :posts do - post_repo.post_listing(limit: 10).map do |post| + post_repo.post_listing(limit: 5).map do |post| Decorators::Posts::Decorator.new(post) end end diff --git a/public/assets/index.css b/public/assets/index.css index 5cb43bd..dfc1c73 100644 --- a/public/assets/index.css +++ b/public/assets/index.css @@ -1520,6 +1520,22 @@ h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: rgb(219 234 254 / var(--tw-text-opacity)); } +.prose-ul\:ml-0 :is(:where(ul):not(:where([class~="not-prose"] *))) { + margin-left: 0px; +} + +.prose-ul\:list-none :is(:where(ul):not(:where([class~="not-prose"] *))) { + list-style-type: none; +} + +.prose-ul\:pl-0 :is(:where(ul):not(:where([class~="not-prose"] *))) { + padding-left: 0px; +} + +.prose-li\:pl-0 :is(:where(li):not(:where([class~="not-prose"] *))) { + padding-left: 0px; +} + .prose-img\:rounded :is(:where(img):not(:where([class~="not-prose"] *))) { border-radius: 0.25rem; }