StandardRB

This commit is contained in:
2024-02-21 21:48:44 +11:00
parent 0a14ae1204
commit 6f663722ab
37 changed files with 43 additions and 41 deletions

View File

@@ -9,6 +9,5 @@ module Adamantium
slice :main, at: "/"
slice :admin, at: "/admin"
slice :micropub, at: "/micropub"
end
end

View File

@@ -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)

View File

@@ -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)

View File

@@ -3,6 +3,5 @@
module Main
class Action < Adamantium::Action
end
end

View File

@@ -1,4 +1,3 @@
module Main
class Routes < Hanami::Routes
root to: "site.home"

View File

@@ -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"

View File

@@ -2,7 +2,6 @@ module Main
module Views
module Blogroll
class Index < Main::View
end
end
end

View File

@@ -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