chore: update to 11ty 1.0.0

This commit is contained in:
Stefan Imhoff
2022-03-22 12:11:21 +01:00
parent 9616e44c26
commit 170395e233
11 changed files with 519 additions and 565 deletions

View File

@@ -86,7 +86,7 @@ module.exports = function (config) {
layouts: 'layouts', layouts: 'layouts',
output: 'dist', output: 'dist',
}, },
templateFormats: ['njk', 'md', '11ty.js', 'jpg', 'png', 'svg'], templateFormats: ['njk', 'md', '11ty.js'],
htmlTemplateEngine: 'njk', htmlTemplateEngine: 'njk',
dataTemplateEngine: 'njk', dataTemplateEngine: 'njk',
markdownTemplateEngine: 'njk', markdownTemplateEngine: 'njk',

1076
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -32,7 +32,7 @@
"license": "ISC", "license": "ISC",
"homepage": "https://hamburg.stefanimhoff.de", "homepage": "https://hamburg.stefanimhoff.de",
"devDependencies": { "devDependencies": {
"@11ty/eleventy": "^0.12.1", "@11ty/eleventy": "1.0.0",
"@11ty/eleventy-plugin-rss": "^1.1.1", "@11ty/eleventy-plugin-rss": "^1.1.1",
"autoprefixer": "^10.2.5", "autoprefixer": "^10.2.5",
"babelify": "^10.0.0", "babelify": "^10.0.0",

View File

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View File

Before

Width:  |  Height:  |  Size: 358 KiB

After

Width:  |  Height:  |  Size: 358 KiB

View File

Before

Width:  |  Height:  |  Size: 371 KiB

After

Width:  |  Height:  |  Size: 371 KiB

View File

Before

Width:  |  Height:  |  Size: 169 KiB

After

Width:  |  Height:  |  Size: 169 KiB

View File

@@ -7,7 +7,7 @@
<li class="homepage-districts-item" {{ site.animation }}> <li class="homepage-districts-item" {{ site.animation }}>
<a class="homepage-districts-item-link" href="{{ item.url }}"> <a class="homepage-districts-item-link" href="{{ item.url }}">
<div class="image-shadow"> <div class="image-shadow">
<img src="/assets/images/districts/thumbnails/hamburg-{{ item.data.title | slug }}-450px.jpg" class="homepage-districts-item-image" alt="#"> <img src="/assets/images/districts/thumbnails/hamburg-{{ item.data.title | slugify }}-450px.jpg" class="homepage-districts-item-image" alt="#">
</div> </div>
<h3 class="homepage-districts-item-headline"> <h3 class="homepage-districts-item-headline">
{{ item.data.title }} {{ item.data.title }}

View File

@@ -7,7 +7,7 @@ css: district.css
{% set nextPost = collections.districts | sortByTitle | getNextCollectionItem(page) %} {% set nextPost = collections.districts | sortByTitle | getNextCollectionItem(page) %}
<div class="image-shadow district-hero-container"> <div class="image-shadow district-hero-container">
<img class="district-hero" src="/assets/images/hero/hamburg-{{ title | slug }}.jpg" alt="{{ title }}"/> <img class="district-hero" src="/assets/images/hero/hamburg-{{ title | slugify }}.jpg" alt="{{ title }}"/>
</div> </div>
<div class="district-title"> <div class="district-title">