From 0b977eb226f5ae77ec142818835c3cbe0e24adde Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Tue, 1 Mar 2022 01:53:07 +0100 Subject: [PATCH] custom style: vendor web fonts and override left menu style --- .gitattributes | 3 ++ content/static/LICENSE.md | 3 ++ content/static/SourcCodePro700.ttf | 3 ++ content/static/SourceCodePro400.ttf | 3 ++ content/static/SourceCodeProI400.ttf | 3 ++ content/static/SourceSansPro300.ttf | 3 ++ content/static/SourceSansPro400.ttf | 3 ++ content/static/SourceSansPro700.ttf | 3 ++ content/static/SourceSansProI400.ttf | 3 ++ content/static/custom.css | 55 ++++++++++++++++++++++++++++ pelicanconf.py | 8 ++-- 11 files changed, 87 insertions(+), 3 deletions(-) create mode 100644 content/static/LICENSE.md create mode 100644 content/static/SourcCodePro700.ttf create mode 100644 content/static/SourceCodePro400.ttf create mode 100644 content/static/SourceCodeProI400.ttf create mode 100644 content/static/SourceSansPro300.ttf create mode 100644 content/static/SourceSansPro400.ttf create mode 100644 content/static/SourceSansPro700.ttf create mode 100644 content/static/SourceSansProI400.ttf create mode 100644 content/static/custom.css diff --git a/.gitattributes b/.gitattributes index 3a24117..7b0ddbb 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/content/static/LICENSE.md b/content/static/LICENSE.md new file mode 100644 index 0000000..718e158 --- /dev/null +++ b/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) diff --git a/content/static/SourcCodePro700.ttf b/content/static/SourcCodePro700.ttf new file mode 100644 index 0000000..3300afd --- /dev/null +++ b/content/static/SourcCodePro700.ttf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8f684d3de390314cc2d3d0bf89dd4caddfa6b9da12795dc61a0ebec629aff7bb +size 107864 diff --git a/content/static/SourceCodePro400.ttf b/content/static/SourceCodePro400.ttf new file mode 100644 index 0000000..6f09c62 --- /dev/null +++ b/content/static/SourceCodePro400.ttf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c00f32c619164b03b4d84a960feff3073fdae2f516ebf5b17b440ee25ea660bd +size 108012 diff --git a/content/static/SourceCodeProI400.ttf b/content/static/SourceCodeProI400.ttf new file mode 100644 index 0000000..5b66fd6 --- /dev/null +++ b/content/static/SourceCodeProI400.ttf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b67bf57f05880b7a80f9d0ab631d4795855efdea85eeb91fcd73d36444fe517b +size 91372 diff --git a/content/static/SourceSansPro300.ttf b/content/static/SourceSansPro300.ttf new file mode 100644 index 0000000..a7d7cfc --- /dev/null +++ b/content/static/SourceSansPro300.ttf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b75f70c8b2dd10853ad68bb52265eadb5a6a28803a7b6992ba2bed03014a022 +size 167276 diff --git a/content/static/SourceSansPro400.ttf b/content/static/SourceSansPro400.ttf new file mode 100644 index 0000000..56ae3b2 --- /dev/null +++ b/content/static/SourceSansPro400.ttf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d0b6bd4fc8a69f547533cee01278c1e875f6da373486b1dbbfffac0c10692c53 +size 167952 diff --git a/content/static/SourceSansPro700.ttf b/content/static/SourceSansPro700.ttf new file mode 100644 index 0000000..315a3a6 --- /dev/null +++ b/content/static/SourceSansPro700.ttf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b585c58b95f9344a469869fed40e4d262f09dc6cd058e1b645d9b14a25401fff +size 167524 diff --git a/content/static/SourceSansProI400.ttf b/content/static/SourceSansProI400.ttf new file mode 100644 index 0000000..8463eb7 --- /dev/null +++ b/content/static/SourceSansProI400.ttf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c92cb054d027b3ed7a58bfe6e7eadf2db8636f57981c757367c683f002c0fe3 +size 96968 diff --git a/content/static/custom.css b/content/static/custom.css new file mode 100644 index 0000000..97bcfdd --- /dev/null +++ b/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'); +} diff --git a/pelicanconf.py b/pelicanconf.py index b8ba8c4..ec31eae 100644 --- a/pelicanconf.py +++ b/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