Heroku and Google Fonts

前端 未结 6 1727
南笙
南笙 2020-12-31 02:06

Why doesn\'t embedding google fonts work on Heroku?

For example:

\' rel         


        
6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-31 03:02

    Or you can use the url without specifying the http protocol

    <%= stylesheet_link_tag "application", '//fonts.googleapis.com/css?family=', :media => "all" %>
    

    With this both http and https work.

提交回复
热议问题