StandardRB
This commit is contained in:
@@ -9,6 +9,5 @@ module Adamantium
|
||||
slice :main, at: "/"
|
||||
slice :admin, at: "/admin"
|
||||
slice :micropub, at: "/micropub"
|
||||
|
||||
end
|
||||
end
|
||||
|
@@ -9,7 +9,7 @@ module Adamantium
|
||||
youtube.com
|
||||
bsky.app
|
||||
bsky.social
|
||||
github.com]
|
||||
github.com].freeze
|
||||
|
||||
def call(content)
|
||||
links = URI::DEFAULT_PARSER.extract(content)
|
||||
|
@@ -8,7 +8,7 @@ module Adamantium
|
||||
|
||||
return cached_content if cached_content
|
||||
|
||||
rendered_content = content_proc.()
|
||||
rendered_content = content_proc.call
|
||||
|
||||
data = JSON.generate(expire: expiry.to_i, content: rendered_content)
|
||||
|
||||
|
@@ -3,6 +3,5 @@
|
||||
|
||||
module Main
|
||||
class Action < Adamantium::Action
|
||||
|
||||
end
|
||||
end
|
||||
|
@@ -1,4 +1,3 @@
|
||||
|
||||
module Main
|
||||
class Routes < Hanami::Routes
|
||||
root to: "site.home"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
# xml.instruct! "xml-stylesheet", {href: "/assets/style.xslt", type: "text/xsl"}
|
||||
xml.opml("xmlns:frss" => "https://freshrss.org/opml", version: "2.0") do
|
||||
xml.opml("xmlns:frss" => "https://freshrss.org/opml", :version => "2.0") do
|
||||
xml.head do |head|
|
||||
head.title "Daniel Nitsikopoulos's RSS subscriptions"
|
||||
head.link "https://dnitza.com/blogroll/opml"
|
||||
|
@@ -2,7 +2,6 @@ module Main
|
||||
module Views
|
||||
module Blogroll
|
||||
class Index < Main::View
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -10,6 +10,12 @@ module Main
|
||||
end
|
||||
end
|
||||
|
||||
expose :bookmarks_by_tag do
|
||||
post_repo.bookmark_listing(query: query).map do |bookmark|
|
||||
Decorators::Bookmarks::Decorator.new bookmark
|
||||
end
|
||||
end
|
||||
|
||||
expose :q do |query:|
|
||||
query
|
||||
end
|
||||
|
Reference in New Issue
Block a user