mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-25 15:02:28 -05:00
32 lines
1.3 KiB
Text
32 lines
1.3 KiB
Text
<%#
|
|
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:
|
|
|
|
https://forums.aws.amazon.com/thread.jspa?threadID=114646
|
|
|
|
Also added a cache breaker there in case we have breaking config changes
|
|
&1 was added last when the nginx sample config changed
|
|
%>
|
|
|
|
<% font_domain = "#{request.protocol}#{request.host_with_port}&2" %>
|
|
|
|
<style>
|
|
@font-face {
|
|
font-family: 'FontAwesome';
|
|
src: url('<%=asset_path "fontawesome-webfont.eot" %>?<%= font_domain %>&v=4.3.0');
|
|
src: url('<%=asset_path "fontawesome-webfont.eot" %>?<%= font_domain %>&v=4.3.0#iefix') format('embedded-opentype'),
|
|
url('<%=asset_path "fontawesome-webfont.woff2" %>?<%= font_domain %>&v=4.3.0') format('woff2'),
|
|
url('<%=asset_path "fontawesome-webfont.woff" %>?<%= font_domain %>&v=4.3.0') format('woff'),
|
|
url('<%=asset_path "fontawesome-webfont.ttf" %>?<%= font_domain %>&v=4.3.0') format('truetype');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'zocial';
|
|
src: url('<%=asset_path "zocial-regular-webfont.woff" %>?<%= font_domain %>') format('woff'),
|
|
url('<%=asset_path "zocial-regular-webfont.ttf" %>?<%= font_domain %>') format('truetype');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
</style>
|