summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/custom/partials/_date_and_title.html.erb11
-rw-r--r--public/stylesheets/ccc.css10
2 files changed, 21 insertions, 0 deletions
diff --git a/app/views/custom/partials/_date_and_title.html.erb b/app/views/custom/partials/_date_and_title.html.erb
new file mode 100644
index 00000000..e9e69342
--- /dev/null
+++ b/app/views/custom/partials/_date_and_title.html.erb
@@ -0,0 +1,11 @@
1<div class="article_partial date_and_title_partial" lang="<%= page.effective_lang %>">
2 <div class="entry_date">
3 <time datetime="<%= (page.published_at || page.created_at).to_date.iso8601 %>"><%= date_for_page page %></time>
4 </div>
5 <div class="entry_body">
6 <h2 class="headline"><%= link_to_path page.title, page.node.unique_name %></h2>
7 <% if page.abstract.present? %>
8 <p class="excerpt"><%= page.abstract %></p>
9 <% end %>
10 </div>
11</div>
diff --git a/public/stylesheets/ccc.css b/public/stylesheets/ccc.css
index 9bd9f965..978b319b 100644
--- a/public/stylesheets/ccc.css
+++ b/public/stylesheets/ccc.css
@@ -730,6 +730,16 @@ div#center_column .chapter_partial h2.headline {
730 border-top: none; 730 border-top: none;
731} 731}
732 732
733div#center_column .date_and_title_partial h2.headline {
734 border-top: none;
735 padding-top: 0;
736}
737
738.date_and_title_partial {
739 border-top: 1px solid color-mix(in srgb, CanvasText, Canvas 70%);
740 padding-top: 30px;
741}
742
733div.article_partial h2 a { 743div.article_partial h2 a {
734 text-decoration: none; 744 text-decoration: none;
735} 745}