css: change font paths to relative

If the base site is on "username.github.io/some-repo/", the "some-repo"
path will be ignored by the font urls.

Co-authored-by: Ruben Straube <ruben.straube@tngtech.com>
This commit is contained in:
Ruben 2020-07-04 08:58:20 +02:00 committed by GitHub
parent 55683ec08b
commit 7b57070c63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
@font-face { @font-face {
font-family: 'Roboto Mono'; font-family: 'Roboto Mono';
src: url('/hugo-theme-console/font/RobotoMono-Regular.ttf') format('truetype'); src: url('../font/RobotoMono-Regular.ttf') format('truetype');
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
@ -8,7 +8,7 @@
@font-face { @font-face {
font-family: 'Roboto Mono'; font-family: 'Roboto Mono';
src: url('/hugo-theme-console/font/RobotoMono-Italic.ttf') format('truetype'); src: url('../font/RobotoMono-Italic.ttf') format('truetype');
font-style: italic; font-style: italic;
font-weight: 400; font-weight: 400;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
@ -16,7 +16,7 @@
@font-face { @font-face {
font-family: 'Roboto Mono'; font-family: 'Roboto Mono';
src: url('/hugo-theme-console/font/RobotoMono-Bold.ttf') format('truetype'); src: url('../font/RobotoMono-Bold.ttf') format('truetype');
font-style: normal; font-style: normal;
font-weight: 700; font-weight: 700;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
@ -24,7 +24,7 @@
@font-face { @font-face {
font-family: 'Roboto Mono'; font-family: 'Roboto Mono';
src: url('/hugo-theme-console/font/RobotoMono-BoldItalic.ttf') format('truetype'); src: url('../font/RobotoMono-BoldItalic.ttf') format('truetype');
font-style: italic; font-style: italic;
font-weight: 700; font-weight: 700;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;