diff options
Diffstat (limited to 'app/views/custom/partials/_date_and_title.html.erb')
| -rw-r--r-- | app/views/custom/partials/_date_and_title.html.erb | 11 |
1 files changed, 11 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> | ||
