From 9d8deddb0a9df7d4d7d4b649ddf01b15570719e0 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 7 Dec 2024 18:58:50 -0500 Subject: Moved webmentions to a single endpoint --- app/views/blogs/show.html.haml | 1 - app/views/layouts/application.html.haml | 3 +-- app/views/webmentions/.keep | 0 3 files changed, 1 insertion(+), 3 deletions(-) create mode 100644 app/views/webmentions/.keep (limited to 'app/views') 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 @@ - title @blog.title -- content_for :webmention_endpoint, webmention_blog_url(@blog) - unless @prev.nil? .back-post= link_to "← #{@prev.title}", @prev - 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 @@ = javascript_include_tag 'application', 'data-turbolinks-track': 'reload' = display_meta_tags og: { site_name: "Four Island" } %link{rel: "me", href: "mailto:fefferburbia+thoughts@gmail.com"} - - if content_for?(:webmention_endpoint) - %link{rel: "webmention", href: yield(:webmention_endpoint)} + %link{rel: "webmention", href: webmentions_url} %body#main-body - if flash[:alert] %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 -- cgit 1.4.1