Skip to content

Configuration

Petr Mlčoch edited this page May 14, 2023 · 4 revisions

modify in an initializer

folio_dragonfly_keep_png

false, don't convert uploaded PNGs to JPGs

folio_public_page_title_reversed

false, swap title from title | site name to site name | title

folio_using_traco

false, use traco for localization, hides Node::Translation-related stuff from console, modifies layout for nodes and atoms

folio_console_locale

:cs

folio_users_omniauth_providers

%i[facebook google_oauth2 twitter2] see https://github.com/sinfin/folio/blob/62763fb45a938027cffbb199ae79645b4fb028bc/lib/folio/engine.rb#L63 Requires respective ENV keys in form

   ENV["OMNIAUTH_#{provider_key.to_s.upcase}_CLIENT_ID"],
   ENV["OMNIAUTH_#{provider_key.to_s.upcase}_CLIENT_SECRET"],

Do not forget to add

    == cell('folio/devise/modal')
    == cell('folio/devise/omniauth/forms')

to your layout file (to make Omniauth sign in buttons work)

folio_console_dashboard_redirect

:console_nodes_path default console path