diff --git a/package.json b/package.json index bcf5af2..6e417a9 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "main": "index.js", "scripts": { "dev": "npx @11ty/eleventy --serve", + "build": "npx @11ty/eleventy", "upload": "npx @11ty/eleventy && rsync -aP --delete dist/ joshua@seigler.net:/srv/www/joshua.seigler.net/public_html/" }, "keywords": [], diff --git a/assets/fonts/ftaurebesh/ftaurebesh.css b/site/_includes/css/ftaurebesh.css similarity index 64% rename from assets/fonts/ftaurebesh/ftaurebesh.css rename to site/_includes/css/ftaurebesh.css index fbe97e0..3cd5074 100644 --- a/assets/fonts/ftaurebesh/ftaurebesh.css +++ b/site/_includes/css/ftaurebesh.css @@ -3,7 +3,7 @@ font-style: normal; font-weight: 500; font-display: block; - src: url("ftaurebesh-medium.woff2") format("woff2"); + src: url("/fonts/ftaurebesh/ftaurebesh-medium.woff2") format("woff2"); size-adjust: 125%; } @font-face { @@ -11,6 +11,6 @@ font-style: normal; font-weight: 700; font-display: block; - src: url("ftaurebesh-bold.woff2") format("woff2"); + src: url("/fonts/ftaurebesh/ftaurebesh-bold.woff2") format("woff2"); size-adjust: 125%; } diff --git a/assets/fonts/inter/inter.css b/site/_includes/css/inter.css similarity index 60% rename from assets/fonts/inter/inter.css rename to site/_includes/css/inter.css index d80b71a..56f3762 100644 --- a/assets/fonts/inter/inter.css +++ b/site/_includes/css/inter.css @@ -3,12 +3,12 @@ font-style: normal; font-weight: 100 900; font-display: swap; - src: url("InterVariable.woff2") format("woff2"); + src: url("/fonts/inter/InterVariable.woff2") format("woff2"); } @font-face { font-family: Inter; font-style: italic; font-weight: 100 900; font-display: swap; - src: url("InterVariable-Italic.woff2") format("woff2"); + src: url("/fonts/inter/InterVariable-Italic.woff2") format("woff2"); } diff --git a/assets/site.css b/site/_includes/css/site.css similarity index 99% rename from assets/site.css rename to site/_includes/css/site.css index 96a3069..8fdfded 100644 --- a/assets/site.css +++ b/site/_includes/css/site.css @@ -1,6 +1,3 @@ -@import url(fonts/inter/inter.css); -@import url(fonts/ftaurebesh/ftaurebesh.css); - :root { font-size: 16px; font-size: clamp(16px, 8px + 1.5vw, 24px); diff --git a/site/css.njk b/site/css.njk new file mode 100644 index 0000000..77a31f7 --- /dev/null +++ b/site/css.njk @@ -0,0 +1,6 @@ +--- +permalink: /site.css +--- +{%include "css/inter.css"%} +{%include "css/ftaurebesh.css"%} +{%include "css/site.css"%}