From: Aidan Cornelius-Bell Date: Mon, 18 Nov 2024 06:42:45 +0000 (+1030) Subject: Group posts by date with a heading and some divider spacing; some css tweaks X-Git-Url: https://gitweb.mndrdr.org/?a=commitdiff_plain;h=96755040f62c24e148ec5c3216d643d09c9d622f;p=arelpe.git Group posts by date with a heading and some divider spacing; some css tweaks --- diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 21cc74d..c40fba6 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -350,6 +350,14 @@ footer p { margin-right: 1px; } +.lowlight a:active, +.lowlight a:hover, +.lowlight a:visited, +.lowlight a { + color: var(--quote-bg); + text-decoration: none; +} + ul li { list-style: none; margin-left: 2em; @@ -437,12 +445,23 @@ ul .pinned::before { font-size: 0.9em; } -.bookmark-item { - padding-bottom: 15px; +.bookmark-item, +.dispatch-item { + margin-bottom: 1em; } -.dispatch-item { - padding-bottom: 5px; +.date-heading:first-of-type { + margin-top: 0em; + margin-bottom: 0.5em; + font-weight: 500; + color: var(--dark-text); +} + +.date-heading { + margin-top: 2.5em; + margin-bottom: 0.5em; + font-weight: 500; + color: var(--dark-text); } table { diff --git a/app/views/pubview/index.html.erb b/app/views/pubview/index.html.erb index f2431e1..23e0232 100644 --- a/app/views/pubview/index.html.erb +++ b/app/views/pubview/index.html.erb @@ -14,32 +14,37 @@
diff --git a/app/views/pubview/post.html.erb b/app/views/pubview/post.html.erb index 44236aa..f71b8aa 100644 --- a/app/views/pubview/post.html.erb +++ b/app/views/pubview/post.html.erb @@ -5,11 +5,21 @@ <% content_for :title, @post.title %> <% content_for :meta_description, "#{@post.generate_excerpt(150)}." %> <% content_for :meta_keywords, "#{@post.tags}" %> + <% if @post.post_type != "bookmark" %>

<%= @post.title %>

<%= link_to "↼ Back to some other dispatches...", "#{root_path}?filter=posts" %>

Posted <%= @post.published_at.strftime('%B %d, %Y') %> and tagged <%= raw @post.format_tags %> <% if !@post.short_dispatch?%>Reading Time: about <%= @reading_time %> minute(s).<% end %>

+ <% else %> +

Bookmark comment permalink:

+

<%= @post.title %>

+ <%= link_to "View original content", @post.url, class: "button" %> + <%= link_to "More from mind reader", "#{root_path}?filter=bookmarks", class: "button", target: "_BLANK" %> +
+

Originally bookmarked on mind reader on <%= @post.published_at.strftime('%B %d, %Y') %>.

+
+ <% end %>
@@ -21,6 +31,8 @@
+<% if @post.post_type != "bookmark" %>
<%= render partial: "layouts/home_post_links" %>
+<% end %>