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.
This commit is contained in:
parent
55683ec08b
commit
0446dd1e08
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;
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
--global-line-height: 1.6em;
|
--global-line-height: 1.6em;
|
||||||
--page-width: 70em;
|
--page-width: 70em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.sidebar-heading {
|
.sidebar-heading {
|
||||||
|
@ -221,13 +221,13 @@ figure {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.terminal-nav {
|
.terminal-nav {
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.terminal-menu ul {
|
.terminal-menu ul {
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -235,15 +235,15 @@ figure {
|
||||||
justify-content: left;
|
justify-content: left;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.terminal-menu li {
|
.terminal-menu li {
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
padding: calc(var(--global-space) * 1) 0 calc(var(--global-space) * 1);
|
padding: calc(var(--global-space) * 1) 0 calc(var(--global-space) * 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
figure {
|
figure {
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
|
@ -257,11 +257,11 @@ figure {
|
||||||
top: 0;
|
top: 0;
|
||||||
margin-top: 21px;
|
margin-top: 21px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post h1 {
|
.post h1 {
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.posts-list .date {
|
.posts-list .date {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -273,10 +273,10 @@ figure {
|
||||||
padding-top: 3px;
|
padding-top: 3px;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
padding-top: 5px;;
|
padding-top: 5px;;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue