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:
parent
55683ec08b
commit
7b57070c63
1 changed files with 14 additions and 14 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue