Browse Source

custom style: vendor web fonts and override left menu style

mainline
Trolli Schmittlauch 7 months ago
parent
commit
0b977eb226
  1. 3
      .gitattributes
  2. 3
      content/static/LICENSE.md
  3. BIN
      content/static/SourcCodePro700.ttf
  4. BIN
      content/static/SourceCodePro400.ttf
  5. BIN
      content/static/SourceCodeProI400.ttf
  6. BIN
      content/static/SourceSansPro300.ttf
  7. BIN
      content/static/SourceSansPro400.ttf
  8. BIN
      content/static/SourceSansPro700.ttf
  9. BIN
      content/static/SourceSansProI400.ttf
  10. 55
      content/static/custom.css
  11. 8
      pelicanconf.py

3
.gitattributes vendored

@ -1,2 +1,5 @@
*.jpg filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.woff filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.eot filter=lfs diff=lfs merge=lfs -text

3
content/static/LICENSE.md

@ -0,0 +1,3 @@
# License of included Web Fonts
The included fonts *Source Sans Pro* and *Source Code Pro* by Paul D. Hunt are licensed under the [SIL Open Font License](https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL)

BIN
content/static/SourcCodePro700.ttf (Stored with Git LFS)

Binary file not shown.

BIN
content/static/SourceCodePro400.ttf (Stored with Git LFS)

Binary file not shown.

BIN
content/static/SourceCodeProI400.ttf (Stored with Git LFS)

Binary file not shown.

BIN
content/static/SourceSansPro300.ttf (Stored with Git LFS)

Binary file not shown.

BIN
content/static/SourceSansPro400.ttf (Stored with Git LFS)

Binary file not shown.

BIN
content/static/SourceSansPro700.ttf (Stored with Git LFS)

Binary file not shown.

BIN
content/static/SourceSansProI400.ttf (Stored with Git LFS)

Binary file not shown.

55
content/static/custom.css

@ -0,0 +1,55 @@
aside nav ul li {
/* override left menu text style*/
text-transform: none !important;
}
/* replace Google Fonts */
@font-face {
font-family: 'Source Code Pro';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url(./SourceCodeProI400.ttf) format('truetype');
}
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(./SourceCodePro400.ttf) format('truetype');
}
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(./SourceCodePro700.ttf) format('truetype');
}
@font-face {
font-family: 'Source Sans Pro';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url(./SourceSansProI400.ttf) format('truetype');
}
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url(./SourceSansPro300.ttf) format('truetype');
}
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(./SourceSansPro300.ttf) format('truetype');
}
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(./SourceSansPro700.ttf) format('truetype');
}

8
pelicanconf.py

@ -6,16 +6,17 @@ from datetime import datetime
AUTHOR = 'Trolli Schmittlauch'
SITENAME = 'Schmittlauchs Blog & Homepage'
SITETITLE = 'schmittlauch'
SITETITLE = 'Tech, Politik & Leben'
SITESUBTITLE = 'Tech, Politik & Leben'
SITEURL = ''
SITELOGO = '/images/avatar.png'
FAVICON = '/images/favicon.svg'
PATH = 'content'
STATIC_PATHS = ['images', 'static']
ARTICLE_PATHS = ['blog']
INDEX_SAVE_AS = 'blog/index.html'
#CUSTOM_CSS = "static/custom.css"
CUSTOM_CSS = "static/custom.css"
TIMEZONE = 'Europe/Berlin'
@ -109,8 +110,9 @@ CC_LICENSE = {
"name": "Creative Commons Attribution-ShareAlike",
"version": "4.0",
"slug": "by-sa",
"icon": True,
"icon": False, # unfortunately the theme loads the image from a 3rd party
}
COPYRIGHT_YEAR = datetime.now().year
DISABLE_URL_HASH = True
USE_GOOGLE_FONTS = False

Loading…
Cancel
Save