Skip to content

Commit

Permalink
fix: preload fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
saicaca committed Aug 26, 2023
1 parent 3de853c commit 9d4f244
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 3 additions & 3 deletions layout/_partial/head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
<title><% if (title){ %><%= title %> | <% } %><%= config.title %></title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<link rel="preload" href="<%- url_for("/css/fonts/Roboto-Regular.ttf") %>" as="font" type="font/ttf">
<link rel="preload" href="<%- url_for("/css/fonts/Roboto-Bold.ttf") %>" as="font" type="font/ttf">
<link rel="preload" href="<%- url_for("/css/fonts/MaterialSymbolsRounded.woff2") %>" as="font" type="font/woff2">
<link rel="preload" href="<%- url_for("/css/fonts/Roboto-Regular.ttf") %>" as="font" type="font/ttf" crossorigin="anonymous">
<link rel="preload" href="<%- url_for("/css/fonts/Roboto-Bold.ttf") %>" as="font" type="font/ttf" crossorigin="anonymous">
<link rel="preload" href="<%- url_for("/css/fonts/MaterialSymbolsRounded.woff2") %>" as="font" type="font/woff2" crossorigin="anonymous">

<%- open_graph({twitter_id: theme.twitter, fb_admins: theme.fb_admins, fb_app_id: theme.fb_app_id}) %>
<% if (config.feed) { %>
Expand Down
6 changes: 0 additions & 6 deletions source/css/style.styl
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ a
font-weight: 400
src: url(fonts/Roboto-Regular.ttf) format("truetype")

@font-face
font-family: Roboto
font-style: normal
font-weight: 500
src: url(fonts/Roboto-Medium.ttf) format("truetype")

@font-face
font-family: Roboto
font-style: normal
Expand Down

0 comments on commit 9d4f244

Please sign in to comment.