added site generator meta
This commit is contained in:
parent
2aff9d06fc
commit
d3823741af
|
@ -50,8 +50,8 @@
|
||||||
"error",
|
"error",
|
||||||
"always",
|
"always",
|
||||||
{
|
{
|
||||||
"objectsInArrays": "false",
|
"objectsInArrays": false,
|
||||||
"arraysInArrays": "false"
|
"arraysInArrays": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -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}`,
|
||||||
|
}
|
||||||
|
}
|
|
@ -5,9 +5,9 @@
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<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 -->
|
<!-- styles -->
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<nav id="primary">
|
<nav id="primary">
|
||||||
<span data-link="~"><~</span>
|
<span data-link="~"><~</span>
|
||||||
{% for c in siteSettings.categories %}
|
{% for c in site.categories %}
|
||||||
<span data-link="{{c}}">█</span>
|
<span data-link="{{c}}">█</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -8,7 +8,7 @@
|
||||||
<span id="audioToggle" class="active"></span>
|
<span id="audioToggle" class="active"></span>
|
||||||
|
|
||||||
<nav id="sub">
|
<nav id="sub">
|
||||||
{% for c in siteSettings.categories %}
|
{% for c in site.categories %}
|
||||||
<ul id="{{c}}">
|
<ul id="{{c}}">
|
||||||
{% for p in collections.pages %}
|
{% for p in collections.pages %}
|
||||||
{% if (p.data.category == c) %}
|
{% if (p.data.category == c) %}
|
||||||
|
|
Loading…
Reference in New Issue