2015-03-27 20:08:58 +08: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 19:41:23 +08:00
|
|
|
|
2015-03-27 20:08:58 +08:00
|
|
|
https://forums.aws.amazon.com/thread.jspa?threadID=114646
|
2013-02-11 19:41:23 +08:00
|
|
|
|
2015-03-27 20:08:58 +08: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 19:41:23 +08:00
|
|
|
|
2018-08-14 04:44:35 +08:00
|
|
|
<% font_domain = "#{Discourse.base_url_no_prefix}&2".html_safe %>
|
2017-04-27 03:16:30 +08:00
|
|
|
<% woff2_url = "#{asset_path("fontawesome-webfont.woff2")}?#{font_domain}&v=4.7.0".html_safe %>
|
2013-02-11 19:41:23 +08:00
|
|
|
|
2017-04-20 23:18:37 +08:00
|
|
|
<link rel="preload" href="<%=woff2_url%>" as="font" type="font/woff2" crossorigin />
|
2013-02-11 19:41:23 +08:00
|
|
|
<style>
|
|
|
|
@font-face {
|
|
|
|
font-family: 'FontAwesome';
|
2017-04-20 23:18:37 +08:00
|
|
|
src: url('<%=woff2_url %>') format('woff2'),
|
2017-04-27 03:16:30 +08:00
|
|
|
url('<%=asset_path "fontawesome-webfont.woff" %>?<%= font_domain %>&v=4.7.0') format('woff');
|
2013-02-11 19:41:23 +08:00
|
|
|
}
|
2013-02-26 00:42:20 +08:00
|
|
|
</style>
|