diff --git a/.eleventy.js b/.eleventy.js index 62a855c..24302af 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -25,7 +25,7 @@ const markdownClassMapping = { h4: ['text-xl', 'mt-2', 'text-text'], h5: ['text-lg', 'mt-2', 'text-text'], h6: ['mt-2', 'text-text'], - blockquote: ['border-l-2', 'border-lavender', 'px-4', 'pt-4', 'pb-px', 'my-8', 'bg-mantle'], + blockquote: ['font-mono', 'italic', 'border-l-2', 'border-lavender', 'px-4', 'pt-4', 'pb-px', 'my-8', 'bg-mantle'], a: ['link'], s: ['text-red'], p: ['mb-4', 'text-text', 'leading-7'], @@ -60,6 +60,7 @@ module.exports = function (eleventyConfig) { eleventyConfig.setLibrary('md', md); + eleventyConfig.addPassthroughCopy('assets'); eleventyConfig.addPassthroughCopy('img'); eleventyConfig.addPassthroughCopy('files'); diff --git a/_includes/base-footer.html b/_includes/base-footer.html index 4fc183a..ac4b3c2 100644 --- a/_includes/base-footer.html +++ b/_includes/base-footer.html @@ -4,7 +4,7 @@
{%- for navItem in links -%}
-

+

diff --git a/_includes/blog-list.njk b/_includes/blog-list.njk index c8244b5..e601976 100644 --- a/_includes/blog-list.njk +++ b/_includes/blog-list.njk @@ -3,7 +3,7 @@
-

+

{{ page.fileSlug | capitalize }}

@@ -17,7 +17,7 @@ {%- for post in collections.posts | reverse -%}
-

{{ post.data.title }}

+

{{ post.data.title }}

{{ post.data.description }}

-

+

diff --git a/_includes/content.njk b/_includes/content.njk index 608abbb..7092222 100644 --- a/_includes/content.njk +++ b/_includes/content.njk @@ -4,15 +4,13 @@
-

- {{description | markdown | safe}} -

+ {{description | markdown | safe}}
diff --git a/_includes/pinned.njk b/_includes/pinned.njk index 93a28e3..0d07182 100644 --- a/_includes/pinned.njk +++ b/_includes/pinned.njk @@ -3,7 +3,7 @@
-

+

{{ title | markdown | safe }}

@@ -22,7 +22,7 @@
-

+

{{ content.data.title }} diff --git a/assets/fonts/Inter-Italic-VariableFont_opsz,wght.ttf b/assets/fonts/Inter-Italic-VariableFont_opsz,wght.ttf new file mode 100644 index 0000000..43ed4f5 Binary files /dev/null and b/assets/fonts/Inter-Italic-VariableFont_opsz,wght.ttf differ diff --git a/assets/fonts/Inter-VariableFont_opsz,wght.ttf b/assets/fonts/Inter-VariableFont_opsz,wght.ttf new file mode 100644 index 0000000..e31b51e Binary files /dev/null and b/assets/fonts/Inter-VariableFont_opsz,wght.ttf differ diff --git a/assets/fonts/Sora-Medium.ttf b/assets/fonts/Sora-Medium.ttf new file mode 100644 index 0000000..3c7a97a Binary files /dev/null and b/assets/fonts/Sora-Medium.ttf differ diff --git a/assets/fonts/VictorMono-Light.ttf b/assets/fonts/VictorMono-Light.ttf new file mode 100755 index 0000000..551df75 Binary files /dev/null and b/assets/fonts/VictorMono-Light.ttf differ diff --git a/assets/fonts/VictorMono-LightItalic.ttf b/assets/fonts/VictorMono-LightItalic.ttf new file mode 100755 index 0000000..468a81a Binary files /dev/null and b/assets/fonts/VictorMono-LightItalic.ttf differ diff --git a/styles.css b/styles.css index 236dcc4..43652c5 100644 --- a/styles.css +++ b/styles.css @@ -2,6 +2,38 @@ @tailwind components; @tailwind utilities; +@layer base { + @font-face { + font-family: 'Sora'; + font-style: normal; + src: url(/assets/fonts/Sora-Medium.ttf) + } + + @font-face { + font-family: 'Inter'; + font-style: normal; + src: url(/assets/fonts/Inter-VariableFont_opsz,wght.ttf) + } + + @font-face { + font-family: 'Inter'; + font-style: italic; + src: url(/assets/fonts/Inter-Italic-VariableFont_opsz,wght.ttf) + } + + @font-face { + font-family: 'VictorMono'; + font-style: normal; + src: url(/assets/fonts/VictorMono-Light.ttf) + } + + @font-face { + font-family: 'VictorMono'; + font-style: italic; + src: url(/assets/fonts/VictorMono-LightItalic.ttf) + } +} + @layer components { .link { @apply text-blue underline underline-offset-2 ; @@ -20,16 +52,30 @@ } } +pre, p > code { + font-family: "VictorMono", monospace; + font-variant-ligatures: contextual; + color: rgb(var(--ctp-text)); + outline: 1px solid rgb(var(--ctp-surface0)); + border-radius: 0.25rem; +} +p > code { + padding: 0 .25rem; + display: inline-block; + background-color: rgb(var(--ctp-mantle)); + color: rgb(var(--ctp-blue)); + font-size: 0.875rem; +} pre { padding: 0.5rem 0.75rem; margin: 0.5rem 0 ; - border-radius: 0.25rem; - color: rgb(var(--ctp-text)); - background-color: rgb(var(--ctp-crust)); - outline: 1px solid rgb(var(--ctp-surface0)); overflow: auto; max-width: 100%; white-space: pre-wrap; page-break-inside: avoid; - font-family: monospace, monospace; + background-color: rgb(var(--ctp-crust)); +} + +.hljs-comment { + font-style: italic; } diff --git a/tailwind.config.js b/tailwind.config.js index 994c88b..d203827 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -15,6 +15,11 @@ module.exports = { 'cover': 'cover', 'contain': 'contain', '105%': '105%', + }, + fontFamily: { + 'serif': ['Sora', 'serif'], + 'sans': ['Inter', 'sans-serif'], + 'mono': ['VictorMono', 'monospace'] } }, plugins: [