Preload fonts

parent 94ea13e0
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<title><%= blog-name %></title>
</head>
<body>
<div method="POST" action=<%= action %> >
<div>
<textarea name="post-content" rows="20" cols="60">
<%= content %>
</textarea>
</div>
</div>
</body>
</html>
......@@ -10,6 +10,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport'>
<meta name="referrer" content="same-origin">
<link rel="preload" as="font" href="/pub/css/fonts/OpenSans-Regular.ttf">
<@css materialize.min.css %>
<@js materialize.min.js %>
<@css blog.css %>
......
......@@ -10,6 +10,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport'>
<meta name="referrer" content="same-origin">
<link rel="preload" as="font" href="/pub/css/fonts/OpenSans-Regular.ttf">
<@css materialize.min.css %>
<@js materialize.min.js %>
<@css blog.css %>
......
......@@ -10,6 +10,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport'>
<meta name="referrer" content="same-origin">
<link rel="preload" as="font" href="/pub/css/fonts/OpenSans-Regular.ttf">
<@css materialize.min.css %>
<@js materialize.min.js %>
<@css blog.css %>
......
......@@ -280,30 +280,31 @@ h2, h3 {
/* } */
/* Light */
@font-face {
font-family: 'Open Sans';
src: url('/pub/css/fonts/OpenSans-Light.ttf');
font-weight: 300;
font-style: normal;
}
/* Regular */
@font-face {
font-family: 'Open Sans';
src: url('/pub/css/fonts/OpenSans-Regular.ttf');
font-weight: 400;
font-style: normal;
}
/* Regular */
@font-face {
font-family: 'Open Sans';
src: url('/pub/css/fonts/OpenSans-Bold.ttf');
font-weight: 700;
font-style: normal;
}
/* @font-face { */
/* font-family: 'Open Sans'; */
/* src: url('/pub/css/fonts/OpenSans-Light.ttf'); */
/* font-weight: 300; */
/* font-style: normal; */
/* } */
/* /\* Regular *\/ */
/* @font-face { */
/* font-family: 'Open Sans'; */
/* font-weight: 400; */
/* font-style: normal; */
/* } */
/* /\* Regular *\/ */
/* @font-face { */
/* font-family: 'Open Sans'; */
/* src: url('/pub/css/fonts/OpenSans-Bold.ttf'); */
/* font-weight: 700; */
/* font-style: normal; */
/* } */
html,
body {
font-family: 'Open Sans', sans-serif;
font-weight: 400;
font-style: normal;
}
nav {
......
......@@ -8,6 +8,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport'>
<meta name="referrer" content="same-origin">
<link rel="preload" as="font" href="/pub/css/fonts/OpenSans-Regular.ttf">
<@css materialize.min.css %>
<@css blog.css %>
<@js jquery-3.3.1.min.js %>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment