diff --git a/README.md b/README.md
index 87685fe..ebaaadc 100644
--- a/README.md
+++ b/README.md
@@ -62,7 +62,7 @@ paginate=3 # articles per page
[params]
mode="auto" # color-mode → light,dark or auto
- featherIconsCDN=true
+ useCDN=false # don't use CDNs for fonts and icons, instead serve them locally.
subtitle = "Minimal and Clean [blog theme for Hugo](https://github.com/athul/archie)"
# Social Tags
@@ -103,4 +103,4 @@ weight = 3
name = "Tags"
url = "/tags"
weight = 4
-```
\ No newline at end of file
+```
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 30779eb..af5063e 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -8,7 +8,7 @@ pygmentscodefences = true
pygmentscodefencesguesssyntax = true
[params]
mode="auto"
- featherIconsCDN=true
+ useCDN=false
subtitle = "Minimal and Clean [blog theme for Hugo](https://github.com/athul/archie)"
[[params.social]]
@@ -43,4 +43,4 @@ weight = 3
[[menu.main]]
name = "Tags"
url = "/tags"
-weight = 4
\ No newline at end of file
+weight = 4
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index d16fe3c..2884897 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -33,13 +33,18 @@
{{- template "_internal/opengraph.html" . -}}
{{- template "_internal/twitter_cards.html" . -}}
- {{ if and (isset .Site.Params "social") (isset .Site.Params "feathericonscdn") (eq .Site.Params.featherIconsCDN true) -}}
+ {{ if and (isset .Site.Params "social") (.Site.Params.useCDN | default false) -}}
{{- else if (isset .Site.Params "social") -}}
{{ end }}
-
-
+ {{ if .Site.Params.useCDN | default false -}}
+
+
+
+ {{- else -}}
+
+ {{ end }}
{{- if or (eq .Site.Params.mode "auto") (eq .Site.Params.mode "dark") -}}
diff --git a/static/css/fonts.css b/static/css/fonts.css
new file mode 100644
index 0000000..156ee63
--- /dev/null
+++ b/static/css/fonts.css
@@ -0,0 +1,38 @@
+/* fira-sans-regular - latin */
+@font-face {
+ font-family: 'Fira Sans';
+ font-style: normal;
+ font-weight: 400;
+ src: url('../fonts/fira-sans-v10-latin-regular.eot'); /* IE9 Compat Modes */
+ src: local('Fira Sans Regular'), local('FiraSans-Regular'),
+ url('../fonts/fira-sans-v10-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
+ url('../fonts/fira-sans-v10-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
+ url('../fonts/fira-sans-v10-latin-regular.woff') format('woff'), /* Modern Browsers */
+ url('../fonts/fira-sans-v10-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
+ url('../fonts/fira-sans-v10-latin-regular.svg#FiraSans') format('svg'); /* Legacy iOS */
+}
+/* roboto-mono-regular - latin */
+@font-face {
+ font-family: 'Roboto Mono';
+ font-style: normal;
+ font-weight: 400;
+ src: url('../fonts/roboto-mono-v12-latin-regular.eot'); /* IE9 Compat Modes */
+ src: url('../fonts/roboto-mono-v12-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
+ url('../fonts/roboto-mono-v12-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
+ url('../fonts/roboto-mono-v12-latin-regular.woff') format('woff'), /* Modern Browsers */
+ url('../fonts/roboto-mono-v12-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
+ url('../fonts/roboto-mono-v12-latin-regular.svg#RobotoMono') format('svg'); /* Legacy iOS */
+}
+/* ibm-plex-mono-500italic - latin */
+@font-face {
+ font-family: 'IBM Plex Mono';
+ font-style: italic;
+ font-weight: 500;
+ src: url('../fonts/ibm-plex-mono-v6-latin-500italic.eot'); /* IE9 Compat Modes */
+ src: local('IBM Plex Mono Medium Italic'), local('IBMPlexMono-MediumItalic'),
+ url('../fonts/ibm-plex-mono-v6-latin-500italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
+ url('../fonts/ibm-plex-mono-v6-latin-500italic.woff2') format('woff2'), /* Super Modern Browsers */
+ url('../fonts/ibm-plex-mono-v6-latin-500italic.woff') format('woff'), /* Modern Browsers */
+ url('../fonts/ibm-plex-mono-v6-latin-500italic.ttf') format('truetype'), /* Safari, Android, iOS */
+ url('../fonts/ibm-plex-mono-v6-latin-500italic.svg#IBMPlexMono') format('svg'); /* Legacy iOS */
+}
diff --git a/static/css/main.css b/static/css/main.css
index 3e6c953..97bbe5d 100644
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -1,5 +1,3 @@
-/* Fonts */
-@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@1,500&display=swap');
/* Markdown */
:root{
--maincolor: red;
@@ -28,7 +26,7 @@ body{
}
p {
- font-family: 'IBM Plex Sans', sans-serif;
+ font-family: 'Fira Sans', sans-serif;
line-height: 1.5;
}
@@ -292,4 +290,4 @@ color: royalblue ;
content: 'Markdown';
background: royalblue;
color: whitesmoke ;
-}
\ No newline at end of file
+}
diff --git a/static/fonts/fira-sans-v10-latin-regular.eot b/static/fonts/fira-sans-v10-latin-regular.eot
new file mode 100644
index 0000000..7abf4c2
Binary files /dev/null and b/static/fonts/fira-sans-v10-latin-regular.eot differ
diff --git a/static/fonts/fira-sans-v10-latin-regular.svg b/static/fonts/fira-sans-v10-latin-regular.svg
new file mode 100644
index 0000000..1e52097
--- /dev/null
+++ b/static/fonts/fira-sans-v10-latin-regular.svg
@@ -0,0 +1,330 @@
+
+
+
diff --git a/static/fonts/fira-sans-v10-latin-regular.ttf b/static/fonts/fira-sans-v10-latin-regular.ttf
new file mode 100644
index 0000000..572e442
Binary files /dev/null and b/static/fonts/fira-sans-v10-latin-regular.ttf differ
diff --git a/static/fonts/fira-sans-v10-latin-regular.woff b/static/fonts/fira-sans-v10-latin-regular.woff
new file mode 100644
index 0000000..d99ba57
Binary files /dev/null and b/static/fonts/fira-sans-v10-latin-regular.woff differ
diff --git a/static/fonts/fira-sans-v10-latin-regular.woff2 b/static/fonts/fira-sans-v10-latin-regular.woff2
new file mode 100644
index 0000000..9bb5760
Binary files /dev/null and b/static/fonts/fira-sans-v10-latin-regular.woff2 differ
diff --git a/static/fonts/ibm-plex-mono-v6-latin-500italic.eot b/static/fonts/ibm-plex-mono-v6-latin-500italic.eot
new file mode 100644
index 0000000..62b89b3
Binary files /dev/null and b/static/fonts/ibm-plex-mono-v6-latin-500italic.eot differ
diff --git a/static/fonts/ibm-plex-mono-v6-latin-500italic.svg b/static/fonts/ibm-plex-mono-v6-latin-500italic.svg
new file mode 100644
index 0000000..6423805
--- /dev/null
+++ b/static/fonts/ibm-plex-mono-v6-latin-500italic.svg
@@ -0,0 +1,365 @@
+
+
+
diff --git a/static/fonts/ibm-plex-mono-v6-latin-500italic.ttf b/static/fonts/ibm-plex-mono-v6-latin-500italic.ttf
new file mode 100644
index 0000000..e4d1ddf
Binary files /dev/null and b/static/fonts/ibm-plex-mono-v6-latin-500italic.ttf differ
diff --git a/static/fonts/ibm-plex-mono-v6-latin-500italic.woff b/static/fonts/ibm-plex-mono-v6-latin-500italic.woff
new file mode 100644
index 0000000..4504b41
Binary files /dev/null and b/static/fonts/ibm-plex-mono-v6-latin-500italic.woff differ
diff --git a/static/fonts/ibm-plex-mono-v6-latin-500italic.woff2 b/static/fonts/ibm-plex-mono-v6-latin-500italic.woff2
new file mode 100644
index 0000000..489745d
Binary files /dev/null and b/static/fonts/ibm-plex-mono-v6-latin-500italic.woff2 differ
diff --git a/static/fonts/roboto-mono-v12-latin-regular.eot b/static/fonts/roboto-mono-v12-latin-regular.eot
new file mode 100644
index 0000000..8c56483
Binary files /dev/null and b/static/fonts/roboto-mono-v12-latin-regular.eot differ
diff --git a/static/fonts/roboto-mono-v12-latin-regular.svg b/static/fonts/roboto-mono-v12-latin-regular.svg
new file mode 100644
index 0000000..1864328
--- /dev/null
+++ b/static/fonts/roboto-mono-v12-latin-regular.svg
@@ -0,0 +1,405 @@
+
+
+
diff --git a/static/fonts/roboto-mono-v12-latin-regular.ttf b/static/fonts/roboto-mono-v12-latin-regular.ttf
new file mode 100644
index 0000000..d5dee83
Binary files /dev/null and b/static/fonts/roboto-mono-v12-latin-regular.ttf differ
diff --git a/static/fonts/roboto-mono-v12-latin-regular.woff b/static/fonts/roboto-mono-v12-latin-regular.woff
new file mode 100644
index 0000000..f319fbf
Binary files /dev/null and b/static/fonts/roboto-mono-v12-latin-regular.woff differ
diff --git a/static/fonts/roboto-mono-v12-latin-regular.woff2 b/static/fonts/roboto-mono-v12-latin-regular.woff2
new file mode 100644
index 0000000..ed384d2
Binary files /dev/null and b/static/fonts/roboto-mono-v12-latin-regular.woff2 differ