published site now uses minified Pico stylesheet and gets font files from CDN
This commit is contained in:
parent
b8e0903d0d
commit
9440f615d9
@ -23,6 +23,8 @@ Pip packages
|
||||
#### Fonts
|
||||
|
||||
* [Libertinus Sans](https://github.com/alerque/libertinus)
|
||||
* dev: local files
|
||||
* prod: [CDN](https://www.cdnfonts.com/libertinus-sans.font)
|
||||
|
||||
### Content generation
|
||||
|
||||
|
||||
@ -129,7 +129,7 @@ IMAGE_PROCESS = {
|
||||
# Self-defined Settings #
|
||||
###############################################################################
|
||||
|
||||
STYLESHEET_FILES = ("pico.zinc.css", "custom.css")
|
||||
STYLESHEET_FILES = ("pico.zinc.css", "font.local.css", "custom.css")
|
||||
DEFAULT_METADESC = "Tobias Radloff ist preisgekrönter Schriftsteller von Romanen, Kurzgeschichten und Lyrik auf deutsch und englisch. Zu seinen Genres gehören Fantasy, SF, Krimi, Kinder-/Jugendbuch und mehr. Er organisiert und moderiert die regelmäßigen Lesereihen 'Potsdams andere Welten' und 'Babelsberger Lesesalon'."
|
||||
|
||||
import datetime
|
||||
|
||||
@ -7,6 +7,9 @@ import sys
|
||||
sys.path.append(os.curdir)
|
||||
from pelicanconf import *
|
||||
|
||||
STYLESHEET_FILES = ("pico.zinc.min.css", "font.cdn.css", "custom.css")
|
||||
|
||||
|
||||
# If your site is available via HTTPS, make sure SITEURL begins with https://
|
||||
SITEURL = "https://tobias-radloff.de"
|
||||
RELATIVE_URLS = False
|
||||
|
||||
@ -1,23 +1,3 @@
|
||||
/*
|
||||
* Additional fonts
|
||||
*/
|
||||
@font-face {
|
||||
font-family: "LibertinusSans";
|
||||
src: url("../fonts/Libertinus/LibertinusSans-Regular.otf") format("opentype");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "LibertinusSans";
|
||||
font-weight: bold;
|
||||
src: url("../fonts/Libertinus/LibertinusSans-Bold.otf") format("opentype");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "LibertinusSans";
|
||||
font-style: italic;
|
||||
src: url("../fonts/Libertinus/LibertinusSans-Italic.otf") format("opentype");
|
||||
}
|
||||
|
||||
/*
|
||||
* General settings
|
||||
*/
|
||||
@ -26,7 +6,7 @@
|
||||
--tr-smallest-width: 350px;
|
||||
--tr-accent-color: #cf0000;
|
||||
|
||||
--pico-font-family-sans-serif: LibertinusSans, system-ui, "Segoe UI", Roboto,
|
||||
--pico-font-family-sans-serif: "Libertinus Sans", system-ui, "Segoe UI", Roboto,
|
||||
Oxygen, Ubuntu, Cantarell, Helvetica, Arial, "Helvetica Neue", sans-serif,
|
||||
var(--pico-font-family-emoji);
|
||||
--pico-font-size: 112.5%;
|
||||
|
||||
20
theme/static/css/font.cdn.css
Normal file
20
theme/static/css/font.cdn.css
Normal file
@ -0,0 +1,20 @@
|
||||
@font-face {
|
||||
font-family: 'Libertinus Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Libertinus Sans'), url('https://fonts.cdnfonts.com/s/19341/LibertinusSans-Regular.woff') format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Libertinus Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: local('Libertinus Sans'), url('https://fonts.cdnfonts.com/s/19341/LibertinusSans-Italic.woff') format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Libertinus Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: local('Libertinus Sans'), url('https://fonts.cdnfonts.com/s/19341/LibertinusSans-Bold.woff') format('woff');
|
||||
}
|
||||
|
||||
|
||||
20
theme/static/css/font.local.css
Normal file
20
theme/static/css/font.local.css
Normal file
@ -0,0 +1,20 @@
|
||||
@font-face {
|
||||
font-family: 'Libertinus Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local("Libertinus Sans"), url("../fonts/Libertinus/LibertinusSans-Regular.otf") format("opentype");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Libertinus Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: local("Libertinus Sans"), url("../fonts/Libertinus/LibertinusSans-Bold.otf") format("opentype");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Libertinus Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: local("Libertinus Sans"), url("../fonts/Libertinus/LibertinusSans-Italic.otf") format("opentype");
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user