diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/blogs/_blog.html.haml | 2 | ||||
-rw-r--r-- | app/views/blogs/show.html.haml | 1 | ||||
-rw-r--r-- | app/views/layouts/application.html.haml | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/app/views/blogs/_blog.html.haml b/app/views/blogs/_blog.html.haml index d0b81d1..878b1a2 100644 --- a/app/views/blogs/_blog.html.haml +++ b/app/views/blogs/_blog.html.haml | |||
@@ -19,7 +19,7 @@ | |||
19 | %cite.bubble.blog-cite | 19 | %cite.bubble.blog-cite |
20 | %span.p-author.h-card | 20 | %span.p-author.h-card |
21 | %strong.p-name= blog.user.login.capitalize | 21 | %strong.p-name= blog.user.login.capitalize |
22 | %data.u-url{ value: "/" } | 22 | %data.u-url{ value: root_url } |
23 | on | 23 | on |
24 | %time.dt-published{ datetime: blog.visible_date.strftime("%Y-%m-%dT%H:%M:%SZ%z") }= blog.visible_date.strftime("%B #{blog.visible_date.day.ordinalize}, %Y at %-I:%M:%S%P") | 24 | %time.dt-published{ datetime: blog.visible_date.strftime("%Y-%m-%dT%H:%M:%SZ%z") }= blog.visible_date.strftime("%B #{blog.visible_date.day.ordinalize}, %Y at %-I:%M:%S%P") |
25 | .post-vote{ id: "blog-vote-section-#{blog.id}" } | 25 | .post-vote{ id: "blog-vote-section-#{blog.id}" } |
diff --git a/app/views/blogs/show.html.haml b/app/views/blogs/show.html.haml index 7558257..c849143 100644 --- a/app/views/blogs/show.html.haml +++ b/app/views/blogs/show.html.haml | |||
@@ -1,4 +1,5 @@ | |||
1 | - title @blog.title | 1 | - title @blog.title |
2 | - content_for :webmention_endpoint, webmention_blog_url(@blog) | ||
2 | - unless @prev.nil? | 3 | - unless @prev.nil? |
3 | .back-post= link_to "← #{@prev.title}", @prev | 4 | .back-post= link_to "← #{@prev.title}", @prev |
4 | - unless @next.nil? | 5 | - unless @next.nil? |
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 69cd6ba..ec37f73 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml | |||
@@ -6,6 +6,8 @@ | |||
6 | = stylesheet_link_tag 'main', media: 'all', 'data-turbolinks-track': 'reload' | 6 | = stylesheet_link_tag 'main', media: 'all', 'data-turbolinks-track': 'reload' |
7 | = javascript_include_tag 'application', 'data-turbolinks-track': 'reload' | 7 | = javascript_include_tag 'application', 'data-turbolinks-track': 'reload' |
8 | = display_meta_tags og: { site_name: "Four Island" } | 8 | = display_meta_tags og: { site_name: "Four Island" } |
9 | - if content_for?(:webmention_endpoint) | ||
10 | %link{rel: "webmention", href: yield(:webmention_endpoint)} | ||
9 | %body#main-body | 11 | %body#main-body |
10 | - if flash[:alert] | 12 | - if flash[:alert] |
11 | %div#flash.flash-alert= flash[:alert] | 13 | %div#flash.flash-alert= flash[:alert] |