diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 15:54:39 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 15:54:39 -0500 |
commit | a996f3bd05fc480247fd112f23fa3e67f7d5d7b5 (patch) | |
tree | 2df0a56e8cc42ccd632db5b2c022b7dbf8d74444 /app/views/blogs | |
parent | 59f5508d5bc0cee856105a5bd52e1deaee44b842 (diff) | |
download | thoughts-a996f3bd05fc480247fd112f23fa3e67f7d5d7b5.tar.gz thoughts-a996f3bd05fc480247fd112f23fa3e67f7d5d7b5.tar.bz2 thoughts-a996f3bd05fc480247fd112f23fa3e67f7d5d7b5.zip |
Added support for liking blog posts via webmention
Diffstat (limited to 'app/views/blogs')
-rw-r--r-- | app/views/blogs/_blog.html.haml | 2 | ||||
-rw-r--r-- | app/views/blogs/show.html.haml | 1 |
2 files changed, 2 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? |