generated from inherentlee/11ty
remove old header/footer content, add hero to page template, update img transform plugin
This commit is contained in:
@ -1,7 +1,2 @@
|
|||||||
<footer>
|
<footer>
|
||||||
<p>questions?
|
|
||||||
<a href="mailto:beall.greenhouses@gmail.com">email us!</a>
|
|
||||||
</p>
|
|
||||||
<p>brought to you in 2026</p>
|
|
||||||
<p><a href="/attribution/">site attribution</a></p>
|
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@ -1,23 +1,4 @@
|
|||||||
<header>
|
<header>
|
||||||
<nav title="background image shows the peak of a dilapidated greenhouse in black and white">
|
<nav>
|
||||||
|
|
||||||
<a href="#main" title="skip to main content" aria-label="skip to main content" id="skip">
|
|
||||||
skip ↷</a>
|
|
||||||
|
|
||||||
<a href="/" aria-label="Beall Greenhouses home" title="Beall Greenhouses home"
|
|
||||||
{% if page.url == "/" %}aria-current="page"{% endif %}>
|
|
||||||
<img src="/img/logo.jpg"
|
|
||||||
alt="block print in black and orange of a rufous hummingbird in flight with tail flared. the hummingbird holds a banner that reads 'become ungovernable.'">
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
{% for entry in collections.all | eleventyNavigation %}
|
|
||||||
<li>
|
|
||||||
<a href="{{ entry.url }}" title="{{ entry.data.title }}"
|
|
||||||
{% if entry.url == page.url %}aria-current="page"{% endif %}
|
|
||||||
>{{ entry.title }}</a>
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
@ -4,4 +4,6 @@ layout: base.njk
|
|||||||
|
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
|
|
||||||
|
<img src="{{ data.hero.src }}" alt="{{ data.hero.alt }}">
|
||||||
|
|
||||||
{{ content | safe }}
|
{{ content | safe }}
|
||||||
|
|||||||
@ -31,6 +31,9 @@ export default async function (eleventyConfig) {
|
|||||||
// output image widths
|
// output image widths
|
||||||
widths: ["auto"],
|
widths: ["auto"],
|
||||||
|
|
||||||
|
// fail on error
|
||||||
|
failOnError: true,
|
||||||
|
|
||||||
// optional, attributes assigned on <img> nodes override these values
|
// optional, attributes assigned on <img> nodes override these values
|
||||||
htmlOptions: {
|
htmlOptions: {
|
||||||
imgAttributes: {
|
imgAttributes: {
|
||||||
|
|||||||
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "11ty",
|
"name": "mattrbld-test",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user