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