mirror of
https://github.com/kogakure/website-11ty-hamburg.stefanimhoff.de.git
synced 2026-02-03 12:15:28 +00:00
refactor: convert files from spaces to tabs
This commit is contained in:
@@ -36,10 +36,7 @@ task('js', () => {
|
|||||||
* Create CSS and Sourcemaps with PostCSS
|
* Create CSS and Sourcemaps with PostCSS
|
||||||
*/
|
*/
|
||||||
task('css', function () {
|
task('css', function () {
|
||||||
return src([
|
return src(['./src/assets/styles/*.css', './src/assets/styles/critical/*.css'])
|
||||||
'./src/assets/styles/*.css',
|
|
||||||
'./src/assets/styles/critical/*.css',
|
|
||||||
])
|
|
||||||
.pipe(plumber())
|
.pipe(plumber())
|
||||||
.pipe(sourcemaps.init())
|
.pipe(sourcemaps.init())
|
||||||
.pipe(postcss())
|
.pipe(postcss())
|
||||||
|
|||||||
@@ -3,11 +3,7 @@ import { btnHandler } from './modules/btn-handler';
|
|||||||
import { scrollHandler } from './modules/scroll-handler';
|
import { scrollHandler } from './modules/scroll-handler';
|
||||||
import { sourceCodeInfo } from './modules/source-code-info';
|
import { sourceCodeInfo } from './modules/source-code-info';
|
||||||
|
|
||||||
if (
|
if ('querySelector' in document && 'localStorage' in window && 'addEventListener' in window) {
|
||||||
'querySelector' in document &&
|
|
||||||
'localStorage' in window &&
|
|
||||||
'addEventListener' in window
|
|
||||||
) {
|
|
||||||
/* Initialize scroll reveal */
|
/* Initialize scroll reveal */
|
||||||
sal({
|
sal({
|
||||||
threshold: 0.1,
|
threshold: 0.1,
|
||||||
|
|||||||
@@ -15,10 +15,7 @@ export function scrollHandler() {
|
|||||||
if (currentScroll > lastScroll && !body.classList.contains(scrollDown)) {
|
if (currentScroll > lastScroll && !body.classList.contains(scrollDown)) {
|
||||||
body.classList.remove(scrollUp);
|
body.classList.remove(scrollUp);
|
||||||
body.classList.add(scrollDown);
|
body.classList.add(scrollDown);
|
||||||
} else if (
|
} else if (currentScroll < lastScroll && body.classList.contains(scrollDown)) {
|
||||||
currentScroll < lastScroll &&
|
|
||||||
body.classList.contains(scrollDown)
|
|
||||||
) {
|
|
||||||
body.classList.remove(scrollDown);
|
body.classList.remove(scrollDown);
|
||||||
body.classList.add(scrollUp);
|
body.classList.add(scrollUp);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ eleventyExcludeFromCollections: true
|
|||||||
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:webfeeds="http://webfeeds.org/rss/1.0">
|
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:webfeeds="http://webfeeds.org/rss/1.0">
|
||||||
<title>{{ site.title }}</title>
|
<title>{{ site.title }}</title>
|
||||||
<subtitle>{{ site.description }}</subtitle>
|
<subtitle>{{ site.description }}</subtitle>
|
||||||
<link href="{{ site.url }}/index.xml" rel="self" type="application/atom+xml" />
|
<link href="{{ site.url }}/index.xml" rel="self" type="application/atom+xml"/>
|
||||||
<link href="{{ site.url }}" rel="alternate" type="text/html"/>
|
<link href="{{ site.url }}" rel="alternate" type="text/html"/>
|
||||||
{% if collections.districts %}
|
{% if collections.districts %}
|
||||||
<updated>{{ collections.districts | rssLastUpdatedDate }}</updated>
|
<updated>{{ collections.districts | rssLastUpdatedDate }}</updated>
|
||||||
@@ -24,9 +24,11 @@ eleventyExcludeFromCollections: true
|
|||||||
<link href="{{ absolutePostUrl }}"/>
|
<link href="{{ absolutePostUrl }}"/>
|
||||||
<updated>{{ item.date | rssDate }}</updated>
|
<updated>{{ item.date | rssDate }}</updated>
|
||||||
<id>{{ absolutePostUrl }}</id>
|
<id>{{ absolutePostUrl }}</id>
|
||||||
<content type="html"><![CDATA[
|
<content type="html">
|
||||||
|
<![CDATA[
|
||||||
{{ item.templateContent | htmlToAbsoluteUrls(absolutePostUrl) | safe }}
|
{{ item.templateContent | htmlToAbsoluteUrls(absolutePostUrl) | safe }}
|
||||||
]]></content>
|
]]>
|
||||||
|
</content>
|
||||||
</entry>
|
</entry>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
|||||||
@@ -17,3 +17,4 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
@@ -8,5 +8,5 @@
|
|||||||
/assets/images/core/homepage-hero.jpg 1800w"
|
/assets/images/core/homepage-hero.jpg 1800w"
|
||||||
src="/assets/images/core/homepage-hero.jpg"
|
src="/assets/images/core/homepage-hero.jpg"
|
||||||
alt="Feuerschiff"
|
alt="Feuerschiff"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -17,3 +17,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
@@ -3,3 +3,4 @@
|
|||||||
{% include "icons.svg" %}
|
{% include "icons.svg" %}
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,46 +1,46 @@
|
|||||||
{%- set ogTitle -%}
|
{%- set ogTitle -%}
|
||||||
{%- if page.url === "/" -%}
|
{%- if page.url === "/" -%}
|
||||||
{{ site.author }} · {{ site.description }}
|
{{ site.author }} · {{ site.description }}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{{ title }} · {{ site.author }}
|
{{ title }} · {{ site.author }}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endset -%}
|
{%- endset -%}
|
||||||
|
|
||||||
{%- set ogDescription -%}
|
{%- set ogDescription -%}
|
||||||
{%- if page.url === "/" -%}
|
{%- if page.url === "/" -%}
|
||||||
{{ site.tagline }}
|
{{ site.tagline }}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{{ description or title }}
|
{{ description or title }}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endset -%}
|
{%- endset -%}
|
||||||
|
|
||||||
{%- set ogImage -%}
|
{%- set ogImage -%}
|
||||||
{%- if og -%}
|
{%- if og -%}
|
||||||
{{ site.url }}/assets/images/branding/og/{{ og }}
|
{{ site.url }}/assets/images/branding/og/{{ og }}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{{ site.url }}/assets/images/branding/og/banner.png
|
{{ site.url }}/assets/images/branding/og/banner.png
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endset -%}
|
{%- endset -%}
|
||||||
|
|
||||||
<!-- Meta -->
|
<!-- Meta -->
|
||||||
<meta name="author" content="{{ site.author }}" />
|
<meta name="author" content="{{ site.author }}"/>
|
||||||
<meta name="description" content="{{ ogDescription }}" />
|
<meta name="description" content="{{ ogDescription }}"/>
|
||||||
<meta name="theme-color" content="#e7e6e4" />
|
<meta name="theme-color" content="#e7e6e4"/>
|
||||||
<meta name="generator" content="{{ eleventy.generator }}" />
|
<meta name="generator" content="{{ eleventy.generator }}"/>
|
||||||
|
|
||||||
<!-- Open graph -->
|
<!-- Open graph -->
|
||||||
<meta property="og:title" content="{{ ogTitle }}" />
|
<meta property="og:title" content="{{ ogTitle }}"/>
|
||||||
<meta property="og:url" content="{{ site.url }}{{ page.url }}" />
|
<meta property="og:url" content="{{ site.url }}{{ page.url }}"/>
|
||||||
<meta property="og:description" content="{{ ogDescription }}" />
|
<meta property="og:description" content="{{ ogDescription }}"/>
|
||||||
<meta property="og:type" content="article" />
|
<meta property="og:type" content="article"/>
|
||||||
<meta property="og:image" content="{{ ogImage }}"/>
|
<meta property="og:image" content="{{ ogImage }}"/>
|
||||||
<meta property="og:image:width" content="1200" />
|
<meta property="og:image:width" content="1200"/>
|
||||||
<meta property="og:image:height" content="675" />
|
<meta property="og:image:height" content="675"/>
|
||||||
|
|
||||||
<!-- Twitter -->
|
<!-- Twitter -->
|
||||||
<meta name="twitter:title" content="{{ ogTitle }}" />
|
<meta name="twitter:title" content="{{ ogTitle }}"/>
|
||||||
<meta name="twitter:card" content="summary_large_image" />
|
<meta name="twitter:card" content="summary_large_image"/>
|
||||||
<meta name="twitter:site" content="{{ site.twitter }}" />
|
<meta name="twitter:site" content="{{ site.twitter }}"/>
|
||||||
<meta name="twitter:description" content="{{ ogDescription }}" />
|
<meta name="twitter:description" content="{{ ogDescription }}"/>
|
||||||
<meta name="twitter:image" content="{{ ogImage }}" />
|
<meta name="twitter:image" content="{{ ogImage }}"/>
|
||||||
<meta name="twitter:creator" content="{{ site.twitter }}" />
|
<meta name="twitter:creator" content="{{ site.twitter }}"/>
|
||||||
|
|||||||
@@ -2,3 +2,4 @@
|
|||||||
{% include "legal.njk" %}
|
{% include "legal.njk" %}
|
||||||
{% include "up-link.njk" %}
|
{% include "up-link.njk" %}
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
|||||||
@@ -3,3 +3,4 @@
|
|||||||
<use xlink:href="#arrow-left-s"></use>
|
<use xlink:href="#arrow-left-s"></use>
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -3,3 +3,4 @@
|
|||||||
<use xlink:href="#arrow-right-s"></use>
|
<use xlink:href="#arrow-right-s"></use>
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
<link rel="preload" href="{{ '/assets/fonts/secuela-regular-vf.woff2' | url }}" as="font" type="font/woff2" crossorigin />
|
<link rel="preload" href="{{ '/assets/fonts/secuela-regular-vf.woff2' | url }}" as="font" type="font/woff2" crossorigin/>
|
||||||
<link rel="preload" href="{{ '/assets/fonts/secuela-italic-vf.woff2' | url }}" as="font" type="font/woff2" crossorigin />
|
<link rel="preload" href="{{ '/assets/fonts/secuela-italic-vf.woff2' | url }}" as="font" type="font/woff2" crossorigin/>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{% if robots %}
|
{% if robots %}
|
||||||
<meta name="robots" content="{{ robots }}" />
|
<meta name="robots" content="{{ robots }}"/>
|
||||||
{% else %}
|
{% else %}
|
||||||
<meta name="robots" content="all" />
|
<meta name="robots" content="all"/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
{% set js %}
|
{% set js %}
|
||||||
{% include "../assets/scripts/embedded/theme-switcher.js" %}
|
{% include "../assets/scripts/embedded/theme-switcher.js" %}
|
||||||
{% if site.isProduction %}
|
{% if site.isProduction %}
|
||||||
{% include "../assets/scripts/embedded/register-serviceworker.js" %}
|
{% include "../assets/scripts/embedded/register-serviceworker.js" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endset %}
|
{% endset %}
|
||||||
<script>{{ js | jsmin | safe }}</script>
|
<script>
|
||||||
|
{{ js | jsmin | safe }}
|
||||||
|
</script>
|
||||||
|
|||||||
@@ -7,22 +7,21 @@
|
|||||||
{% endset %}
|
{% endset %}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
{{ criticalCSS | safe }}
|
{{criticalCSS | safe}}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
||||||
<link rel="stylesheet" href="{{ '/assets/styles/base.css' | url }}" />
|
<link rel="stylesheet" href="{{ '/assets/styles/base.css' | url }}"/>
|
||||||
{% if css %}
|
{% if css %}
|
||||||
<link rel="stylesheet" href="{{ '/assets/styles/' + css | url }}" />
|
<link rel="stylesheet" href="{{ '/assets/styles/' + css | url }}"/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<link rel="stylesheet" href="{{ '/assets/styles/main.css' | url }}" media="print" onload="this.media='all'" />
|
<link rel="stylesheet" href="{{ '/assets/styles/main.css' | url }}" media="print" onload="this.media='all'"/>
|
||||||
<link rel="stylesheet" href="{{ '/assets/styles/print.css' | url }}" media="print" />
|
<link rel="stylesheet" href="{{ '/assets/styles/print.css' | url }}" media="print"/>
|
||||||
|
|
||||||
|
|
||||||
<noscript>
|
<noscript>
|
||||||
<link rel="stylesheet" href="{{ '/assets/styles/main.css' | url }}" />
|
<link rel="stylesheet" href="{{ '/assets/styles/main.css' | url }}"/>
|
||||||
</noscript>
|
</noscript>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en" class="no-js">
|
<html lang="en" class="no-js">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8"/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||||
|
|
||||||
<title>
|
<title>
|
||||||
{%- if page.url === "/" -%}
|
{%- if page.url === "/" -%}
|
||||||
@@ -12,11 +12,17 @@
|
|||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
</title>
|
</title>
|
||||||
|
|
||||||
<link rel="canonical" href="{{ site.url }}{{ page.url }}" />
|
<link rel="canonical" href="{{ site.url }}{{ page.url }}"/>
|
||||||
|
|
||||||
<script type="module">
|
<script type="module">
|
||||||
document.documentElement.classList.remove('no-js');
|
document
|
||||||
document.documentElement.classList.add('js');
|
.documentElement
|
||||||
|
.classList
|
||||||
|
.remove('no-js');
|
||||||
|
document
|
||||||
|
.documentElement
|
||||||
|
.classList
|
||||||
|
.add('js');
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{% include "scripts.njk" %}
|
{% include "scripts.njk" %}
|
||||||
|
|||||||
@@ -4,12 +4,12 @@ eleventyExcludeFromCollections: true
|
|||||||
---
|
---
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
{%- for item in collections.all -%}
|
{%- for item in collections.all -%}
|
||||||
{%- if not item.data.excludeFromSitemap and item.url -%}
|
{%- if not item.data.excludeFromSitemap and item.url -%}
|
||||||
<url>
|
<url>
|
||||||
<loc>{{ site.url }}{{ item.url | url | absoluteUrl(meta.url) }}</loc>
|
<loc>{{ site.url }}{{ item.url | url | absoluteUrl(meta.url) }}</loc>
|
||||||
<lastmod>{{ item.date | dateToFormat('yyyy-MM-DD') }}</lastmod>
|
<lastmod>{{ item.date | dateToFormat('yyyy-MM-DD') }}</lastmod>
|
||||||
</url>
|
</url>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
</urlset>
|
</urlset>
|
||||||
|
|||||||
@@ -8,8 +8,6 @@ module.exports = {
|
|||||||
return moment(date).format();
|
return moment(date).format();
|
||||||
},
|
},
|
||||||
sortByTitle: function (values) {
|
sortByTitle: function (values) {
|
||||||
return values
|
return values.slice().sort((a, b) => a.data.title.localeCompare(b.data.title));
|
||||||
.slice()
|
|
||||||
.sort((a, b) => a.data.title.localeCompare(b.data.title));
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user