2015-03-27 07:08:58 -05:00
|
|
|
<%#
|
|
|
|
The fonts are loaded outside of the stylesheet so that we can dynamically change the path.
|
|
|
|
This is to get around CDN caching on the Origin:
|
2013-02-11 05:41:23 -06:00
|
|
|
|
2015-03-27 07:08:58 -05:00
|
|
|
https://forums.aws.amazon.com/thread.jspa?threadID=114646
|
2013-02-11 05:41:23 -06:00
|
|
|
|
2015-03-27 07:08:58 -05:00
|
|
|
Also added a cache breaker there in case we have breaking config changes
|
|
|
|
&1 was added last when the nginx sample config changed
|
|
|
|
%>
|
2013-02-11 05:41:23 -06:00
|
|
|
|
2015-03-27 10:33:15 -05:00
|
|
|
<% font_domain = "#{request.protocol}#{request.host_with_port}&2" %>
|
2017-04-26 14:16:30 -05:00
|
|
|
<% woff2_url = "#{asset_path("fontawesome-webfont.woff2")}?#{font_domain}&v=4.7.0".html_safe %>
|
2013-02-11 05:41:23 -06:00
|
|
|
|
2017-04-20 10:18:37 -05:00
|
|
|
<link rel="preload" href="<%=woff2_url%>" as="font" type="font/woff2" crossorigin />
|
2013-02-11 05:41:23 -06:00
|
|
|
<style>
|
|
|
|
@font-face {
|
|
|
|
font-family: 'FontAwesome';
|
2017-04-20 10:18:37 -05:00
|
|
|
src: url('<%=woff2_url %>') format('woff2'),
|
2017-04-26 14:16:30 -05:00
|
|
|
url('<%=asset_path "fontawesome-webfont.woff" %>?<%= font_domain %>&v=4.7.0') format('woff');
|
2013-02-11 05:41:23 -06:00
|
|
|
}
|
2013-02-25 10:42:20 -06:00
|
|
|
</style>
|