Skip to content
Permalink
Browse files

Add local font files instead of using Google CDN

See #30
  • Loading branch information...
dadosch authored and EmielH committed Oct 6, 2019
1 parent f5b10bf commit 636e30ecbb2b336712f054320eb0891513e9d9f3
@@ -15,7 +15,7 @@
{{- $cssOptions := cond ($inServerMode) (dict "targetPath" $cssTarget "enableSourceMap" true) (dict "targetPath" $cssTarget "outputStyle" "compressed") }}
{{- $style := resources.Get "scss/tale.scss" | toCSS $cssOptions }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Libre+Baskerville:400,400i,700">
<link rel="stylesheet" href="{{ "css/fonts.css" | relURL }}">
{{ range .Site.Params.css -}}
<link rel="stylesheet" href="{{ . | relURL }}">
{{ end -}}
@@ -0,0 +1,42 @@
/* libre-baskerville-regular - latin */
@font-face {
font-family: 'Libre Baskerville';
font-style: normal;
font-weight: 400;
src: url('/fonts/libre-baskerville-v7-latin-regular.eot'); /* IE9 Compat Modes */
src: local('Libre Baskerville'), local('LibreBaskerville-Regular'),
url('/fonts/libre-baskerville-v7-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/fonts/libre-baskerville-v7-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('/fonts/libre-baskerville-v7-latin-regular.woff') format('woff'), /* Modern Browsers */
url('/fonts/libre-baskerville-v7-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('/fonts/libre-baskerville-v7-latin-regular.svg#LibreBaskerville') format('svg'); /* Legacy iOS */
}

/* libre-baskerville-700 - latin */
@font-face {
font-family: 'Libre Baskerville';
font-style: normal;
font-weight: 700;
src: url('/fonts/libre-baskerville-v7-latin-700.eot'); /* IE9 Compat Modes */
src: local('Libre Baskerville Bold'), local('LibreBaskerville-Bold'),
url('/fonts/libre-baskerville-v7-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/fonts/libre-baskerville-v7-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
url('/fonts/libre-baskerville-v7-latin-700.woff') format('woff'), /* Modern Browsers */
url('/fonts/libre-baskerville-v7-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
url('/fonts/libre-baskerville-v7-latin-700.svg#LibreBaskerville') format('svg'); /* Legacy iOS */
}

/* libre-baskerville-italic - latin */
@font-face {
font-family: 'Libre Baskerville';
font-style: italic;
font-weight: 400;
src: url('/fonts/libre-baskerville-v7-latin-italic.eot'); /* IE9 Compat Modes */
src: local('Libre Baskerville Italic'), local('LibreBaskerville-Italic'),
url('/fonts/libre-baskerville-v7-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/fonts/libre-baskerville-v7-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
url('/fonts/libre-baskerville-v7-latin-italic.woff') format('woff'), /* Modern Browsers */
url('/fonts/libre-baskerville-v7-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('/fonts/libre-baskerville-v7-latin-italic.svg#LibreBaskerville') format('svg'); /* Legacy iOS */
}

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 636e30e

Please sign in to comment.
You can’t perform that action at this time.