~edwardloveall/scribe

e365ee8be5266f32d2a2597be6cd3501b5e126ee — Edward Loveall 5 months ago 9f2b2a6
Add FAQ on how to use Scribe with custom domains

This is generic so as to not call out any specific website.
1 files changed, 31 insertions(+), 0 deletions(-)

M src/pages/faq/index_page.cr
M src/pages/faq/index_page.cr => src/pages/faq/index_page.cr +31 -0
@@ 9,6 9,7 @@ class Faq::IndexPage < MainLayout
      auto_redirect
      why_would_i_want_this
      other_instances
      custom_domains
      mount Shared::LayoutFooter
    end
  end


@@ 99,4 100,34 @@ class Faq::IndexPage < MainLayout
      end
    end
  end

  private def custom_domains
    section do
      h2 "What about Medium articles on custom domains?"
      para do
        text <<-TEXT
          Scribe can read these also. The URL just needs to end with the
          characters at the end of the URL called the Post ID. Here's an
          example:
        TEXT
      end
      para do
        code "example.com/my-post-"
        code "09a6af907a2", class: "highlight"
        text " can be converted to "
        br
        code app_domain
        code "/my-post-"
        code "09a6af907a2", class: "highlight"
      end
      para do
        text <<-TEXT
          To redirect automatically, follow the intructions above to on how to
          redirect medium articles. Replace
        TEXT
        code " medium\\.com"
        text " with the domain of your choosing."
      end
    end
  end
end