added site generator meta

This commit is contained in:
suroh 2023-01-10 18:12:00 +01:00
parent 2aff9d06fc
commit d3823741af
4 changed files with 16 additions and 7 deletions

View File

@ -50,8 +50,8 @@
"error",
"always",
{
"objectsInArrays": "false",
"arraysInArrays": "false"
"objectsInArrays": false,
"arraysInArrays": false
}
]
},

9
_data/site.js Normal file
View File

@ -0,0 +1,9 @@
const eleventyPackage = require('@11ty/eleventy/package.json')
module.exports = () => {
return {
siteName: 'wrk.suroh',
categories: ['work', 'audio', 'other'],
generator: `${eleventyPackage.name} v${eleventyPackage.version}`,
}
}

View File

@ -5,9 +5,9 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{{ siteSettings.siteName }}</title>
<title>{{ site.siteName }}</title>
<meta name="generator" content="{{ siteSettings.generator }}">
<meta name="generator" content="{{ site.generator }}">
<!-- styles -->

View File

@ -1,6 +1,6 @@
<nav id="primary">
<span data-link="~"><~</span>
{% for c in siteSettings.categories %}
{% for c in site.categories %}
<span data-link="{{c}}">█</span>
{% endfor %}
</nav>
@ -8,7 +8,7 @@
<span id="audioToggle" class="active"></span>
<nav id="sub">
{% for c in siteSettings.categories %}
{% for c in site.categories %}
<ul id="{{c}}">
{% for p in collections.pages %}
{% if (p.data.category == c) %}