diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 18:58:50 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 18:58:50 -0500 |
commit | 9d8deddb0a9df7d4d7d4b649ddf01b15570719e0 (patch) | |
tree | 3e98477e2bf2e38a6c0bd372a417ac507950d194 /app/views | |
parent | a30b6daedb8b71606abe0e83f82e1f7c356cab6b (diff) | |
download | thoughts-9d8deddb0a9df7d4d7d4b649ddf01b15570719e0.tar.gz thoughts-9d8deddb0a9df7d4d7d4b649ddf01b15570719e0.tar.bz2 thoughts-9d8deddb0a9df7d4d7d4b649ddf01b15570719e0.zip |
Moved webmentions to a single endpoint
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/blogs/show.html.haml | 1 | ||||
-rw-r--r-- | app/views/layouts/application.html.haml | 3 | ||||
-rw-r--r-- | app/views/webmentions/.keep | 0 |
3 files changed, 1 insertions, 3 deletions
diff --git a/app/views/blogs/show.html.haml b/app/views/blogs/show.html.haml index c849143..7558257 100644 --- a/app/views/blogs/show.html.haml +++ b/app/views/blogs/show.html.haml | |||
@@ -1,5 +1,4 @@ | |||
1 | - title @blog.title | 1 | - title @blog.title |
2 | - content_for :webmention_endpoint, webmention_blog_url(@blog) | ||
3 | - unless @prev.nil? | 2 | - unless @prev.nil? |
4 | .back-post= link_to "← #{@prev.title}", @prev | 3 | .back-post= link_to "← #{@prev.title}", @prev |
5 | - unless @next.nil? | 4 | - unless @next.nil? |
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index d776b9c..b3928f2 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml | |||
@@ -7,8 +7,7 @@ | |||
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 | %link{rel: "me", href: "mailto:fefferburbia+thoughts@gmail.com"} | 9 | %link{rel: "me", href: "mailto:fefferburbia+thoughts@gmail.com"} |
10 | - if content_for?(:webmention_endpoint) | 10 | %link{rel: "webmention", href: webmentions_url} |
11 | %link{rel: "webmention", href: yield(:webmention_endpoint)} | ||
12 | %body#main-body | 11 | %body#main-body |
13 | - if flash[:alert] | 12 | - if flash[:alert] |
14 | %div#flash.flash-alert= flash[:alert] | 13 | %div#flash.flash-alert= flash[:alert] |
diff --git a/app/views/webmentions/.keep b/app/views/webmentions/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/app/views/webmentions/.keep | |||