use better source for aileron font

the previous one had incorrect font weight variants
This commit is contained in:
Lyn Fugmann 2024-09-20 13:22:58 +02:00
parent 383ba50d67
commit 4a0551c731
7 changed files with 10 additions and 14 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "submodules/aileron"]
path = submodules/aileron
url = https://github.com/reinhart1010/aileron

View file

@ -6,6 +6,7 @@ This is the WIP rewrite of the ESE website.
To build the website, install the dependencies and run the build script: To build the website, install the dependencies and run the build script:
```sh ```sh
git submodule update --init
npm install npm install
npm run build npm run build
``` ```

View file

@ -10,7 +10,7 @@ eleventyComputed:
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% if title %}{{ title }} | {% endif %}ESE {{ year }}</title> <title>{% if title %}{{ title }} | {% endif %}ESE {{ year }}</title>
<link rel="stylesheet" href="{% getBundleFileUrl "css" %}"> <link rel="stylesheet" href="{% getBundleFileUrl "css" %}">
<link rel="stylesheet" href="/fonts/aileron.css"> <link rel="stylesheet" href="/aileron.lite.min.css">
</head> </head>
<body> <body>
{% include 'header.njk' %} {% include 'header.njk' %}

View file

@ -20,8 +20,8 @@ module.exports = function(eleventyConfig) {
return value.filter(item => item.page.lang === this.page.lang) return value.filter(item => item.page.lang === this.page.lang)
}); });
eleventyConfig.addPassthroughCopy({'./node_modules/@fontsource/aileron/latin.css': 'fonts/aileron.css'}) eleventyConfig.addPassthroughCopy({'./submodules/aileron/fonts/*.(ttf|woff|woff2)': 'fonts'})
eleventyConfig.addPassthroughCopy({'./node_modules/@fontsource/aileron/files': 'fonts/files'}) eleventyConfig.addPassthroughCopy({'./submodules/aileron/aileron.lite.min.css': 'aileron.lite.min.css'})
// copy german start page to root url // copy german start page to root url
eleventyConfig.on( eleventyConfig.on(

10
package-lock.json generated
View file

@ -11,8 +11,7 @@
"devDependencies": { "devDependencies": {
"@11ty/eleventy": "^2.0.1", "@11ty/eleventy": "^2.0.1",
"@11ty/eleventy-navigation": "^0.3.5", "@11ty/eleventy-navigation": "^0.3.5",
"@11ty/eleventy-plugin-bundle": "^1.0.5", "@11ty/eleventy-plugin-bundle": "^1.0.5"
"@fontsource/aileron": "^5.1.0"
} }
}, },
"node_modules/@11ty/dependency-tree": { "node_modules/@11ty/dependency-tree": {
@ -222,13 +221,6 @@
"node": ">=6.9.0" "node": ">=6.9.0"
} }
}, },
"node_modules/@fontsource/aileron": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/@fontsource/aileron/-/aileron-5.1.0.tgz",
"integrity": "sha512-w204VNAH1a6VdKDn0vi7u8VAnTRH8tme485inHFYH0hUgnaRhY6Us8V75/10AqH8sCW3SuoTMbfg4/6B8y2jWQ==",
"dev": true,
"license": "CC0-1.0"
},
"node_modules/@iarna/toml": { "node_modules/@iarna/toml": {
"version": "2.2.5", "version": "2.2.5",
"resolved": "https://registry.npmjs.org/@iarna/toml/-/toml-2.2.5.tgz", "resolved": "https://registry.npmjs.org/@iarna/toml/-/toml-2.2.5.tgz",

View file

@ -12,7 +12,6 @@
"devDependencies": { "devDependencies": {
"@11ty/eleventy": "^2.0.1", "@11ty/eleventy": "^2.0.1",
"@11ty/eleventy-navigation": "^0.3.5", "@11ty/eleventy-navigation": "^0.3.5",
"@11ty/eleventy-plugin-bundle": "^1.0.5", "@11ty/eleventy-plugin-bundle": "^1.0.5"
"@fontsource/aileron": "^5.1.0"
} }
} }

1
submodules/aileron Submodule

@ -0,0 +1 @@
Subproject commit 0b12b2b472f8f580b4807b3f5d3ac7bdde331497