added site generator meta
This commit is contained in:
parent
2aff9d06fc
commit
d3823741af
|
@ -50,8 +50,8 @@
|
|||
"error",
|
||||
"always",
|
||||
{
|
||||
"objectsInArrays": "false",
|
||||
"arraysInArrays": "false"
|
||||
"objectsInArrays": 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 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 -->
|
||||
|
|
|
@ -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) %}
|
||||
|
@ -27,4 +27,4 @@
|
|||
|
||||
<nav id="toTop">
|
||||
<span>top</span>
|
||||
</nav>
|
||||
</nav>
|
||||
|
|
Loading…
Reference in New Issue