Skip to content

Commit

Permalink
Selfhost fonts and MathJax
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jan 31, 2022
1 parent 7a0075e commit f5b7083
Show file tree
Hide file tree
Showing 32 changed files with 2,217 additions and 16 deletions.
25 changes: 9 additions & 16 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<head>
<link href="http://gmpg.org/xfn/11" rel="profile">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">

Expand All @@ -8,34 +7,28 @@

<title>
{% if page.title == "Home" %}
{{ site.title }} &middot; {{ site.tagline }}
{{ site.title | strip_html }} &middot; {{ site.tagline }}
{% else %}
{{ page.title }} &middot; {{ site.title }}
{{ page.title }} &middot; {{ site.title | strip_html }}
{% endif %}
</title>

<!-- CSS -->
<link rel="stylesheet" href="{{ site.baseurl }}/public/css/poole.css">
<link rel="stylesheet" href="{{ site.baseurl }}/public/css/syntax.css">
<link rel="stylesheet" href="{{ site.baseurl }}/public/css/hyde.css">
<link rel="stylesheet" href="{{ site.baseurl }}/public/css/forms.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface">
<link rel="stylesheet" href="{{ site.baseurl }}/public/css/poole.css?version=1">
<link rel="stylesheet" href="{{ site.baseurl }}/public/css/syntax.css?version=1">
<link rel="stylesheet" href="{{ site.baseurl }}/public/css/hyde.css?version=1">
<link rel="stylesheet" href="{{ site.baseurl }}/public/css/forms.css?version=1">
<link rel="stylesheet" href="{{ site.baseurl }}/public/css/fonts.css?version=1">

<!-- Icons -->
<link rel="shortcut icon" href="{{ site.baseurl }}/public/favicon.ico">


<!-- MathJax -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
processEscapes: true
}
root: "{{ site.baseurl }}/public/js/"
});
</script>
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML">
</script>
<script type="text/javascript" async src="{{ site.baseurl }}/public/js/MathJax-2.7.9.js?config=TeX-MML-AM_CHTML"></script>

</head>
68 changes: 68 additions & 0 deletions public/css/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/* generated via https://google-webfonts-helper.herokuapp.com/fonts */

/* abril-fatface-regular - latin */
@font-face {
font-family: 'Abril Fatface';
font-style: normal;
font-weight: 400;
src: url('../fonts/abril-fatface-v18-latin-regular.eot'); /* IE9 Compat Modes */
src: local(''),
url('../fonts/abril-fatface-v18-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/abril-fatface-v18-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/abril-fatface-v18-latin-regular.woff') format('woff'), /* Modern Browsers */
url('../fonts/abril-fatface-v18-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/abril-fatface-v18-latin-regular.svg#AbrilFatface') format('svg'); /* Legacy iOS */
}

/* pt-sans-regular - latin */
@font-face {
font-family: 'PT Sans';
font-style: normal;
font-weight: 400;
src: url('../fonts/pt-sans-v16-latin-regular.eot'); /* IE9 Compat Modes */
src: local(''),
url('../fonts/pt-sans-v16-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/pt-sans-v16-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/pt-sans-v16-latin-regular.woff') format('woff'), /* Modern Browsers */
url('../fonts/pt-sans-v16-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/pt-sans-v16-latin-regular.svg#PTSans') format('svg'); /* Legacy iOS */
}
/* pt-sans-italic - latin */
@font-face {
font-family: 'PT Sans';
font-style: italic;
font-weight: 400;
src: url('../fonts/pt-sans-v16-latin-italic.eot'); /* IE9 Compat Modes */
src: local(''),
url('../fonts/pt-sans-v16-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/pt-sans-v16-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/pt-sans-v16-latin-italic.woff') format('woff'), /* Modern Browsers */
url('../fonts/pt-sans-v16-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/pt-sans-v16-latin-italic.svg#PTSans') format('svg'); /* Legacy iOS */
}
/* pt-sans-700 - latin */
@font-face {
font-family: 'PT Sans';
font-style: normal;
font-weight: 700;
src: url('../fonts/pt-sans-v16-latin-700.eot'); /* IE9 Compat Modes */
src: local(''),
url('../fonts/pt-sans-v16-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/pt-sans-v16-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/pt-sans-v16-latin-700.woff') format('woff'), /* Modern Browsers */
url('../fonts/pt-sans-v16-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/pt-sans-v16-latin-700.svg#PTSans') format('svg'); /* Legacy iOS */
}
/* pt-sans-700italic - latin */
@font-face {
font-family: 'PT Sans';
font-style: italic;
font-weight: 700;
src: url('../fonts/pt-sans-v16-latin-700italic.eot'); /* IE9 Compat Modes */
src: local(''),
url('../fonts/pt-sans-v16-latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/pt-sans-v16-latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/pt-sans-v16-latin-700italic.woff') format('woff'), /* Modern Browsers */
url('../fonts/pt-sans-v16-latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/pt-sans-v16-latin-700italic.svg#PTSans') format('svg'); /* Legacy iOS */
}
Binary file added public/fonts/abril-fatface-v18-latin-regular.eot
Binary file not shown.
Loading

0 comments on commit f5b7083

Please sign in to comment.