mirror of
https://github.com/skoelle/moonweb-site.git
synced 2026-09-17 17:00:25 +00:00
Self-host Lobster font, remove Google Fonts calls from shared and stefankoelle
This commit is contained in:
@@ -56,6 +56,7 @@ module.exports = function (eleventyConfig) {
|
|||||||
|
|
||||||
// Root-level shared assets
|
// Root-level shared assets
|
||||||
eleventyConfig.addPassthroughCopy({ "shared/base.css": "shared-base.css" });
|
eleventyConfig.addPassthroughCopy({ "shared/base.css": "shared-base.css" });
|
||||||
|
eleventyConfig.addPassthroughCopy({ "shared/fonts/lobster-latin.woff2": "fonts/lobster-latin.woff2" });
|
||||||
eleventyConfig.addPassthroughCopy({ "shared/favicon/hub.svg": "favicon.svg" });
|
eleventyConfig.addPassthroughCopy({ "shared/favicon/hub.svg": "favicon.svg" });
|
||||||
eleventyConfig.addPassthroughCopy({ "hub/robots.txt": "robots.txt" });
|
eleventyConfig.addPassthroughCopy({ "hub/robots.txt": "robots.txt" });
|
||||||
|
|
||||||
|
|||||||
@@ -18,9 +18,6 @@
|
|||||||
<meta name="twitter:title" content="{{ title }}{% if 'moonweb' not in title and 'stefankoelle' not in title %} · moonweb.org{% endif %}">
|
<meta name="twitter:title" content="{{ title }}{% if 'moonweb' not in title and 'stefankoelle' not in title %} · moonweb.org{% endif %}">
|
||||||
<meta name="twitter:description" content="{{ description }}">
|
<meta name="twitter:description" content="{{ description }}">
|
||||||
{% if ogImage %}<meta name="twitter:image" content="{{ site.url }}{{ ogImage }}">{% endif %}
|
{% if ogImage %}<meta name="twitter:image" content="{{ site.url }}{{ ogImage }}">{% endif %}
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Lobster&display=swap" rel="stylesheet">
|
|
||||||
<link rel="icon" href="{% if section and section != 'hub' %}/{{ section }}/favicon.svg{% else %}/favicon.svg{% endif %}">
|
<link rel="icon" href="{% if section and section != 'hub' %}/{{ section }}/favicon.svg{% else %}/favicon.svg{% endif %}">
|
||||||
<link rel="stylesheet" href="/shared-base.css">
|
<link rel="stylesheet" href="/shared-base.css">
|
||||||
<style>:root { --accent: {% if section == 'infra' %}#99333A{% elif section == 'smarthome' %}#1f8a8a{% elif section == 'code' %}#3E5098{% elif section == 'retro' %}#8a6d3b{% else %}#3b6ea5{% endif %}; }</style>
|
<style>:root { --accent: {% if section == 'infra' %}#99333A{% elif section == 'smarthome' %}#1f8a8a{% elif section == 'code' %}#3E5098{% elif section == 'retro' %}#8a6d3b{% else %}#3b6ea5{% endif %}; }</style>
|
||||||
|
|||||||
@@ -10,6 +10,14 @@
|
|||||||
|
|
||||||
* { box-sizing: border-box; }
|
* { box-sizing: border-box; }
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Lobster';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-display: swap;
|
||||||
|
src: url('fonts/lobster-latin.woff2') format('woff2');
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||||
|
|||||||
Binary file not shown.
@@ -14,9 +14,6 @@
|
|||||||
<meta name="twitter:title" content="{{ title }} · {{ siteTitle | default("moonweb.org") }}">
|
<meta name="twitter:title" content="{{ title }} · {{ siteTitle | default("moonweb.org") }}">
|
||||||
<meta name="twitter:description" content="{{ description }}">
|
<meta name="twitter:description" content="{{ description }}">
|
||||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Lobster&display=swap" rel="stylesheet">
|
|
||||||
<link rel="stylesheet" href="/shared-base.css">
|
<link rel="stylesheet" href="/shared-base.css">
|
||||||
<link rel="stylesheet" href="/theme.css">
|
<link rel="stylesheet" href="/theme.css">
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ module.exports = function (eleventyConfig) {
|
|||||||
eleventyConfig.addPassthroughCopy({ "stefankoelle/.htaccess": ".htaccess" });
|
eleventyConfig.addPassthroughCopy({ "stefankoelle/.htaccess": ".htaccess" });
|
||||||
eleventyConfig.addPassthroughCopy({ "stefankoelle/pdf/cv.pdf": "pdf/cv.pdf" });
|
eleventyConfig.addPassthroughCopy({ "stefankoelle/pdf/cv.pdf": "pdf/cv.pdf" });
|
||||||
eleventyConfig.addPassthroughCopy({ "shared/base.css": "shared-base.css" });
|
eleventyConfig.addPassthroughCopy({ "shared/base.css": "shared-base.css" });
|
||||||
|
eleventyConfig.addPassthroughCopy({ "shared/fonts/lobster-latin.woff2": "fonts/lobster-latin.woff2" });
|
||||||
eleventyConfig.addPassthroughCopy({ "shared/theme-hub.css": "theme.css" });
|
eleventyConfig.addPassthroughCopy({ "shared/theme-hub.css": "theme.css" });
|
||||||
eleventyConfig.addPassthroughCopy({ "shared/favicon/hub.svg": "favicon.svg" });
|
eleventyConfig.addPassthroughCopy({ "shared/favicon/hub.svg": "favicon.svg" });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user