mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-08 22:49:44 +00:00
Fix missing fonts in demo page
- Update font path in style.sass to use urls.Parse - No sites should be affected if their baseURLs are correct - Address #260
This commit is contained in:
parent
49e5fb4ef4
commit
32d46f19f4
4 changed files with 15 additions and 16 deletions
|
@ -1,6 +1,6 @@
|
||||||
{{ $themeStyle := .Site.Params.themeStyle | default "light" }}
|
{{ $themeStyle := .Site.Params.themeStyle | default "light" }}
|
||||||
$fa-font-path: '{{ print $.Site.BaseURL "fonts/fontawesome-free/webfonts" }}'
|
$fa-font-path: '{{ urls.Parse "/fonts/fontawesome-free/webfonts" }}'
|
||||||
$nunito-font-path: '{{ print $.Site.BaseURL "fonts/NunitoSans" }}'
|
$nunito-font-path: '{{ urls.Parse "/fonts/NunitoSans" }}'
|
||||||
|
|
||||||
{{ if eq $themeStyle "auto" }}
|
{{ if eq $themeStyle "auto" }}
|
||||||
@import "fonts"
|
@import "fonts"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
font-family: "Nunito Sans";
|
font-family: "Nunito Sans";
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
src: local("Nunito Sans Regular"), local("NunitoSans-Regular"), url(http://localhost:1313/fonts/NunitoSans/NunitoSans-Regular.ttf) format("woff2");
|
src: local("Nunito Sans Regular"), local("NunitoSans-Regular"), url(/fonts/NunitoSans/NunitoSans-Regular.ttf) format("woff2");
|
||||||
unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB; }
|
unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB; }
|
||||||
|
|
||||||
/* latin-ext */
|
/* latin-ext */
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
font-family: "Nunito Sans";
|
font-family: "Nunito Sans";
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
src: local("Nunito Sans Regular"), local("NunitoSans-Regular"), url(http://localhost:1313/fonts/NunitoSans/NunitoSans-Regular.ttf) format("woff2");
|
src: local("Nunito Sans Regular"), local("NunitoSans-Regular"), url(/fonts/NunitoSans/NunitoSans-Regular.ttf) format("woff2");
|
||||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
|
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
|
||||||
|
|
||||||
/* latin */
|
/* latin */
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
font-family: "Nunito Sans";
|
font-family: "Nunito Sans";
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
src: local("Nunito Sans Regular"), local("NunitoSans-Regular"), url(http://localhost:1313/fonts/NunitoSans/NunitoSans-Regular.ttf) format("woff2");
|
src: local("Nunito Sans Regular"), local("NunitoSans-Regular"), url(/fonts/NunitoSans/NunitoSans-Regular.ttf) format("woff2");
|
||||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
|
||||||
|
|
||||||
.is-unselectable, .modal-close {
|
.is-unselectable, .modal-close {
|
||||||
|
@ -7840,8 +7840,8 @@ readers do not read off random characters that represent icons */
|
||||||
font-family: 'Font Awesome 5 Brands';
|
font-family: 'Font Awesome 5 Brands';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
src: url("http://localhost:1313/fonts/fontawesome-free/webfonts/fa-brands-400.eot");
|
src: url("/fonts/fontawesome-free/webfonts/fa-brands-400.eot");
|
||||||
src: url("http://localhost:1313/fonts/fontawesome-free/webfonts/fa-brands-400.eot?#iefix") format("embedded-opentype"), url("http://localhost:1313/fonts/fontawesome-free/webfonts/fa-brands-400.woff2") format("woff2"), url("http://localhost:1313/fonts/fontawesome-free/webfonts/fa-brands-400.woff") format("woff"), url("http://localhost:1313/fonts/fontawesome-free/webfonts/fa-brands-400.ttf") format("truetype"), url("http://localhost:1313/fonts/fontawesome-free/webfonts/fa-brands-400.svg#fontawesome") format("svg"); }
|
src: url("/fonts/fontawesome-free/webfonts/fa-brands-400.eot?#iefix") format("embedded-opentype"), url("/fonts/fontawesome-free/webfonts/fa-brands-400.woff2") format("woff2"), url("/fonts/fontawesome-free/webfonts/fa-brands-400.woff") format("woff"), url("/fonts/fontawesome-free/webfonts/fa-brands-400.ttf") format("truetype"), url("/fonts/fontawesome-free/webfonts/fa-brands-400.svg#fontawesome") format("svg"); }
|
||||||
|
|
||||||
.fab {
|
.fab {
|
||||||
font-family: 'Font Awesome 5 Brands'; }
|
font-family: 'Font Awesome 5 Brands'; }
|
||||||
|
@ -7854,8 +7854,8 @@ readers do not read off random characters that represent icons */
|
||||||
font-family: 'Font Awesome 5 Free';
|
font-family: 'Font Awesome 5 Free';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
src: url("http://localhost:1313/fonts/fontawesome-free/webfonts/fa-solid-900.eot");
|
src: url("/fonts/fontawesome-free/webfonts/fa-solid-900.eot");
|
||||||
src: url("http://localhost:1313/fonts/fontawesome-free/webfonts/fa-solid-900.eot?#iefix") format("embedded-opentype"), url("http://localhost:1313/fonts/fontawesome-free/webfonts/fa-solid-900.woff2") format("woff2"), url("http://localhost:1313/fonts/fontawesome-free/webfonts/fa-solid-900.woff") format("woff"), url("http://localhost:1313/fonts/fontawesome-free/webfonts/fa-solid-900.ttf") format("truetype"), url("http://localhost:1313/fonts/fontawesome-free/webfonts/fa-solid-900.svg#fontawesome") format("svg"); }
|
src: url("/fonts/fontawesome-free/webfonts/fa-solid-900.eot?#iefix") format("embedded-opentype"), url("/fonts/fontawesome-free/webfonts/fa-solid-900.woff2") format("woff2"), url("/fonts/fontawesome-free/webfonts/fa-solid-900.woff") format("woff"), url("/fonts/fontawesome-free/webfonts/fa-solid-900.ttf") format("truetype"), url("/fonts/fontawesome-free/webfonts/fa-solid-900.svg#fontawesome") format("svg"); }
|
||||||
|
|
||||||
.fa,
|
.fa,
|
||||||
.fas {
|
.fas {
|
||||||
|
@ -7899,8 +7899,6 @@ a {
|
||||||
|
|
||||||
h1, h2, .title, .subtitle {
|
h1, h2, .title, .subtitle {
|
||||||
color: #222222; }
|
color: #222222; }
|
||||||
h1 a, h2 a, .title a, .subtitle a {
|
|
||||||
color: #222222; }
|
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-weight: 300; }
|
font-weight: 300; }
|
||||||
|
@ -7995,7 +7993,8 @@ pre {
|
||||||
margin: 0 5px; }
|
margin: 0 5px; }
|
||||||
|
|
||||||
.navbar-burger {
|
.navbar-burger {
|
||||||
margin-right: auto; }
|
margin-right: auto;
|
||||||
|
color: #00b8d4; }
|
||||||
|
|
||||||
.navbar-burger:hover {
|
.navbar-burger:hover {
|
||||||
background-color: #ffffff; }
|
background-color: #ffffff; }
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
{"Target":"css/main.min.9193dfbd107a29912dfefd0efe4d35fe1b54d2f1bd41ccd6c8f364bfc4e90e64.css","MediaType":"text/css","Data":{"Integrity":"sha256-kZPfvRB6KZEt/v0O/k01/htU0vG9QczWyPNkv8TpDmQ="}}
|
{"Target":"css/main.min.941d414b5f8f2724f88888d5432c631eb46bc5e459c7009914db5bc605643532.css","MediaType":"text/css","Data":{"Integrity":"sha256-lB1BS1+PJyT4iIjVQyxjHrRrxeRZxwCZFNtbxgVkNTI="}}
|
Loading…
Reference in a new issue