diff --git a/config.toml b/config.toml
index cae7e0b..c61e317 100644
--- a/config.toml
+++ b/config.toml
@@ -28,14 +28,10 @@ external_links_no_referrer = true
favicon = "/image/favicon.svg"
stylesheets = []
-use_cdn = false
-cdns = [
- # { url = "https://cdn.jsdelivr.net/npm/firacode@6.2.0/distr/fira_code.min.css", hash = "sWIpcFPnJFfPqQU7FWn8H9+Xax/h5ihI8hVjQTBa5WmUde6CZZLw9DUAaIyA6j5u" },
- # { url = "https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.5/dist/web/static/pretendard-std-dynamic-subset.min.css", hash = "UzN3sOqBetZN9G2CDFfxg1PNJ+Qrv8/HZIoBp6XsCD+2DOehpvXGqkj2WFCNge5Q" },
- # { url = "https://cdn.jsdelivr.net/gh/codex-src/iA-Fonts@master/iA%20Writer%20Quattro/Webfonts/index.min.css", hash = "Vx6OU3QBwm96rTUebUtdfD/AW3d3uzT896pixaUYg9Nb87zqHuXmjmv9aGwBmFjP" },
- # Disabling variable fonts to bring site weight down
- # { url = "https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.5/dist/web/variable/pretendardvariable-std.min.css", hash = "3OYJp8uUv2MJWyKGgrZOrSjf+WP+nD7ifpJ04kAsI02PYi+nghC4TF37YkN/2Qxt" },
- # { url = "https://cdn.jsdelivr.net/gh/codex-src/iA-Fonts@master/iA%20Writer%20Quattro/Variable/index.min.css", hash = "sFJyxW2UhZcJ0SAweDcoU6dBgqox5PbLK5nZStQSQitBeRHigPu7OPWDvoIHEXeo" },
+fonts = [
+ { path = "ia-writer-quattro", name = "iAWriterQuattroS" },
+ { path = "ibm-plex-mono", name = "IBMPlexMono" },
+ { path = "inria-sans", name = "InriaSans" }
]
menu = [
diff --git a/templates/partials/header.html b/templates/partials/header.html
index 12b66c2..23541e8 100644
--- a/templates/partials/header.html
+++ b/templates/partials/header.html
@@ -12,14 +12,13 @@
{% endif %}
- {# Font from cdn or disk #}
- {% if config.extra.use_cdn | default(value=false) %}
- {% for cdn in config.extra.cdns %}
-
+ {% for font in config.extra.fonts %}
+ {% for style in ["Bold", "BoldItalic", "Italic", "Regular"] %}
+ {% set font_path = 'font/' ~ font.path ~ '/' ~ font.name ~ '-' ~ style ~ '.woff2' %}
+
{% endfor %}
- {% else %}
-
- {% endif %}
+ {% endfor %}
+
{# RSS #}
{% if hero %}
-
+
{% endif %}
{# Twitter #}
@@ -67,6 +66,6 @@
{% if hero %}
-
+
{% endif %}
\ No newline at end of file