Skip to content

Commit d673bc8

Browse files
committed
Improve style consistency between page summary and header
1 parent 72385c1 commit d673bc8

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

app/content/layouts/article.html.erb

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,12 @@
1818
<%= render Pages::Header::Container.new do |c| %>
1919
<%= c.title { page.title } %>
2020
<%= c.description { page.description } if page.description %>
21-
<div class="flex flex-col lg:flex-row justify-between">
22-
<%= render Pages::Timestamp.new published_on: page.published_on, updated_on: page.revised_on, class: "text-small" %>
23-
<span class="text-small">
24-
<% topics = @page.topics.approved.pluck(:slug) %>
25-
<% if topics.present? %>
26-
<%= render Pages::Topics.new(topics: topics) %>
27-
<% end %>
28-
</span>
21+
<%= render Pages::Timestamp.new published_on: page.published_on, updated_on: page.revised_on, class: "text-small block" %>
22+
<div class="text-small">
23+
<% topics = @page.topics.approved.pluck(:slug) %>
24+
<% if topics.present? %>
25+
<%= render Pages::Topics.new(topics: topics) %>
26+
<% end %>
2927
</div>
3028
<% end %>
3129
<div class="article-content container" itemprop="articleBody">

app/views/components/pages/summary.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ def content(**)
4545
end
4646
p(class: "description") { description } if description
4747
if published_on
48-
render Pages::Timestamp.new published_on: published_on, class: "block"
48+
render Pages::Timestamp.new published_on: published_on, class: "text-small block"
4949
end
50-
a(href: request_path, class: "block uppercase strong") do
51-
small { "Read now" }
50+
a(href: request_path, class: "block uppercase text-small") do
51+
"Read now"
5252
end
5353
end
5454
end

0 commit comments

Comments
 (0)