~edwardloveall/scribe

91687bb68908fd8376503a8bb04fb344bd839c9d — Edward Loveall 7 months ago dbddfc9
Add automatic redirect instructions to homepage
1 files changed, 32 insertions(+), 0 deletions(-)

M src/pages/home/index_page.cr
M src/pages/home/index_page.cr => src/pages/home/index_page.cr +32 -0
@@ 28,6 28,38 @@ class Home::IndexPage < MainLayout
        end
      end
      section do
        h2 "How-To Automatically"
        para do
          text "If you don't want to manually change the URL every time, you can use an extension to do it for you. "
          a "This extension", href: "https://einaregilsson.com/redirector/"
          text " works well across most browsers."
        end
        para "Once installed, create a new redirect with the following settings:"
        ul do
          li do
            strong "Description: "
            code "Medium -> Scribe"
          end
          li do
            strong "Example URL: "
            code "https://medium.com/@user/post-123456abcdef"
          end
          li do
            strong "Include pattern: "
            code ".*medium.com/(.*)"
          end
          li do
            strong "Redirect to: "
            code "https://scribe.rip/$1"
          end
          li do
            strong "Pattern type: "
            code "( ) Wildcard   (•) Regular Expression"
          end
        end
        para "Visiting any medium.com site (including user.medium.com subdomains) should now redirect to Scribe instead!"
      end
      section do
        footer do
          para do
            a "Source code", href: "https://git.sr.ht/~edwardloveall/scribe"