This commit is contained in:
2026-03-31 16:38:22 -07:00
commit 38940436a7
2112 changed files with 376929 additions and 0 deletions

661
COPYING Normal file
View File

@ -0,0 +1,661 @@
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>.

15
LICENSE Normal file
View File

@ -0,0 +1,15 @@
<name of project>
Copyright (C) 2026 Lee Cattarin
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.

29
_config/filters.js Normal file
View File

@ -0,0 +1,29 @@
export default function (eleventyConfig) {
/* Create a single alt string from a multi-string alt object */
eleventyConfig.addFilter("createAlt", (altObject) => {
let alt;
if (altObject.length > 1)
alt = `a ${altObject.length} picture collage.`;
for (let i = 0; i < altObject.length; i++)
alt += ` Image ${i + 1} is ${altObject[i]}`;
return alt;
});
/* What it says on the tin */
eleventyConfig.addFilter("randomize", function(array) {
// Create a copy of the array to avoid modifying the original
let shuffledArray = array.slice();
// Fisher-Yates shuffle algorithm
for (let i = shuffledArray.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[shuffledArray[i], shuffledArray[j]] = [shuffledArray[j], shuffledArray[i]];
}
return shuffledArray;
});
};

6
_data/metadata.js Normal file
View File

@ -0,0 +1,6 @@
export default {
title: "the historic Beall Greenhouses",
description: "the historic Beall Greenhouses",
url: "https://beall-greenhouses.com",
author: "Lee Cattarin"
}

31
_includes/artistlist.njk Normal file
View File

@ -0,0 +1,31 @@
{% css %}{% include "css/artist-market.css" %}{% endcss %}
<ul id="artists">
{% for artist in artists | randomize %}
<li id="{{ artist.data.id }}" class="artist">
{% if artist.data.img.src and artist.data.img.alt %}
<div class="fit-contain">
<img src="/img/artists/{{ artist.data.img.src }}" alt="{{ artist.data.img.alt | createAlt }}">
</div>
{% endif %}
<h3>{{ artist.data.title }}</h3>
<div class="description">
{% for paragraph in artist.data.bio %}
<p>{{ paragraph }}</p>
{% endfor %}
{% if artist.data.contacts %}
<ul>
{% for contact in artist.data.contacts %}
<li>
<a href="{{ contact.href }}" target="_blank">
{{ contact.title }}
</a>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
</li>
{% endfor %}
</ul>

14
_includes/directory.njk Normal file
View File

@ -0,0 +1,14 @@
{% css %}{% include "css/directory.css" %}{% endcss %}
<ol id="directory">
{% for item in items %}
<li>
<a href="{{ item.url }}">
<h2>{{ item.data.shortTitle or item.data.title }}</h2>
{% if item.data.img.src and item.data.img.alt %}
<img src="/img/{{ item.data.img.src }}" alt="{{ item.data.img.alt }}">
{% endif %}
</a>
</li>
{% endfor %}
</ol>

7
_includes/footer.njk Normal file
View File

@ -0,0 +1,7 @@
<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>

37
_includes/head.njk Normal file
View File

@ -0,0 +1,37 @@
<head>
{% if title %}
{% set pageTitle %}{{ title }} | {{ metadata.title }}{% endset %}
{% else %}
{% set pageTitle = metadata.title %}
{% endif %}
<title>{{ pageTitle }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<!-- Meta -->
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="canonical" href="/" />
<meta name="description" content="{{ metadata.description }}" />
<meta name="robots" content="index,follow" />
<meta property="og:title" content="{{ pageTitle }}" />
<meta property="og:type" content="article" />
<meta property="og:url" content="/" />
<meta property="og:description" content="{{ metadata.description }}" />
<meta property="og:image" content="/assets/img/logo.jpg" />
<meta property="og:image:alt" content="block print in black and orange of a rufous hummingbird in flight with tail flared. the hummingbird holds a banner that reads 'become ungovernable.'" />
<meta name="generator" content="{{ eleventy.generator }}">
<!-- CSS -->
<style>{% include "css/main.css" %}</style>
<style>{% include "css/nav.css" %}</style>
<style>{% getBundle "css" %}</style>
<!-- JS -->
<script type="module">{% getBundle "js" %}</script>
<!-- Font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bellota:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" rel="stylesheet">
</head>

24
_includes/header.njk Normal file
View File

@ -0,0 +1,24 @@
<header>
<nav title="background image shows the peak of a dilapidated greenhouse in black and white">
<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>
</header>

View File

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
{% include "head.njk" %}
<body>
<div id="content">
{% include "header.njk" %}
<main id="main">
{{ content | safe }}
</main>
</div>
{% include "footer.njk" %}
<!-- This page `{{ page.url }}` was built on {% currentBuildDate %} -->
</body>
</html>

View File

@ -0,0 +1,7 @@
---
layout: base.njk
---
<h1>{{ title }}</h1>
{{ content | safe }}

View File

@ -0,0 +1,6 @@
---
layout: base.njk
---
{% css %}{% include "css/artist-resident.css" %}{% endcss %}
{{ content | safe }}

428
_live/about/index.html Normal file
View File

@ -0,0 +1,428 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>About the Beall Greenhouses | the historic Beall Greenhouses</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<!-- Meta -->
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="canonical" href="/">
<meta name="description" content="the historic Beall Greenhouses">
<meta name="robots" content="index,follow">
<meta property="og:title" content="About the Beall Greenhouses | the historic Beall Greenhouses">
<meta property="og:type" content="article">
<meta property="og:url" content="/">
<meta property="og:description" content="the historic Beall Greenhouses">
<meta property="og:image" content="/assets/img/logo.jpg">
<meta property="og:image:alt" content="block print in black and orange of a rufous hummingbird in flight with tail flared. the hummingbird holds a banner that reads 'become ungovernable.'">
<meta name="generator" content="Eleventy v3.1.5">
<!-- CSS -->
<style>:root {
color-scheme: light dark;
--color-concrete: #e5e0c7;
--color-concrete-alt: #d1cbab;
--color-green: #142b15;
--color-green-alt: #1a3b1b;
--color-teal-light: #4ba19e;
--color-teal-dark: #0c6a74;
--color-bg: light-dark(var(--color-concrete), var(--color-green));
--color-text: light-dark(var(--color-green), var(--color-concrete));
--color-bg-alt: light-dark(var(--color-concrete-alt), var(--color-green-alt));
--color-text-alt: light-dark(var(--color-green-alt), var(--color-concrete-alt));
--color-accent: light-dark(var(--color-teal-dark), var(--color-teal-light));
--color-accent-flipped: light-dark(var(--color-teal-light), var(--color-teal-dark));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: var(--color-text);
color: var(--color-bg);
display: flex;
flex-direction: column;
font-family: Arial, Helvetica, sans-serif;
min-height: 100vh;
}
#content {
background-color: var(--color-bg);
color: var(--color-text);
width: 100%;
flex-grow: 1;
border-radius: 0 0 2rem 2rem;
padding: 1rem 0 2rem;
}
@media (prefers-color-scheme: light) {
.dark-mode {
display: none;
}
}
@media (prefers-color-scheme: dark) {
.light-mode {
display: none;
}
}
header,
main {
width: 65%;
margin: 0 auto 1rem;
}
@media (max-width: 750px) {
header,
main {
width: 92%;
}
}
@media (min-width: 2000px) {
header,
main {
width: 45%;
}
}
img {
display: block;
max-width: 100%;
height: auto;
}
h1, h2, h3, h4, h5, h6 {
color: var(--color-text-alt);
}
h1,
h2 {
font-family: 'Bellota', Arial, Helvetica, sans-serif;
}
h1 {
text-align: center;
margin: 2rem 0;
font-size: 2.2rem;
}
h2 {
margin: 2rem 0 0;
font-size: 1.65rem;
}
h2,
h3 {
border-bottom: .25rem solid var(--color-accent);
}
a {
color: var(--color-text);
font-weight: bold;
text-decoration: underline;
text-decoration-style: solid;
text-decoration-thickness: .25rem;
text-decoration-color: var(--color-accent);
transition: text-decoration-thickness .5s;
border-radius: .1rem;
outline-offset: .1rem;
}
a:hover,
a:active {
text-decoration-thickness: .5rem;
}
a:focus-visible {
text-decoration: none;
outline: solid .25rem var(--color-accent);
}
main p,
main ul {
padding: .8rem;
line-height: 1.5rem;
}
main li {
margin-left: 1rem;
}
main li:not(:last-child) {
padding: 0 0 .5rem;
}
/* styles for sets of <p>s under an h2/3/etc vs alone
this is done as a class rather than just h2 + p to accomodate
for multi-<p> segments which can then be wrapped in <div>s */
.under-header,
.no-header {
background-color: var(--color-bg-alt);
}
.under-header {
border-radius: 0 0 1rem 1rem;
margin-left: 2.5rem;
}
@media (max-width: 750px) {
.under-header {
margin-left: 1.25rem;
}
}
.no-header {
border-radius: 1rem;
}
.two-col {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
.two-col > * {
place-self: start center;
}
@media (max-width: 950px) {
.two-col {
grid-template-columns: 1fr;
}
}
/* top nav */
nav {
position: relative;
margin: 0 auto 1.5rem;
display: grid;
grid-template: "logo nav";
grid-template-rows: 7rem;
grid-template-columns: 7rem auto;
background-image: url("/greenhouse.jpg");
background-size: cover;
background-repeat: no-repeat;
border-radius: 2rem .25rem .25rem 2rem;
}
nav a {
margin: 0;
}
nav a:not(:has(img)) {
display: inline-block;
text-decoration: none;
font-size: 1.2rem;
padding: 0 .25rem;
border: solid .125rem var(--color-accent);
border-radius: .25rem;
background-color: var(--color-bg);
}
@media (any-hover: hover) {
nav a:not(:has(img)):hover {
color: var(--color-bg);
background-color: var(--color-text-alt);
border-color: var(--color-accent-flipped);
outline: .125rem solid var(--color-accent);
outline-offset: 0;
}
}
nav a:not(:has(img)):focus-visible {
outline: solid .125rem var(--color-accent);
outline-offset: .125rem;
}
#skip {
left: -999px;
position: absolute;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
z-index: -99;
}
#skip:focus-visible {
left: -6rem;
width: auto;
height: auto;
overflow: auto;
z-index: 999;
}
@media (max-width: 750px) {
#skip:focus-visible {
left: 5rem;
}
}
nav img {
max-height: 100%;
margin: 0;
border-radius: 2rem;
border: .2rem solid var(--color-accent);
}
@media (any-hover: hover) {
nav img:hover {
border-color: var(--color-accent-flipped);
outline-offset: 0;
outline: .2rem solid var(--color-accent);
}
}
nav a:has(img) {
grid-area: logo;
justify-self: start;
}
nav a:has(img):focus-visible {
border-radius: 2rem;
outline-offset: .2rem;
outline: .2rem solid var(--color-accent);
}
nav a:has(img):focus-visible img {
outline: none;
}
nav ul {
grid-area: nav;
display: flex;
justify-content: space-between;
align-items: flex-end;
flex-flow: column nowrap;
}
nav li {
list-style: none;
}
/* footer */
footer {
width: 95%;
margin: 0 auto;
padding: 1rem 0;
display: flex;
justify-content: center;
}
@media (max-width: 750px) {
footer {
flex-flow: column;
}
}
footer p {
background-color: var(--color-text);
color: var(--color-bg);
text-align: center;
font-size: .9rem;
padding: .25rem;
}
@media (min-width: 751px) {
footer p:nth-child(2)::before {
content: "● " / "";
}
footer p:nth-child(2)::after {
content: " ●" / "";
}
}
footer a {
color: var(--color-bg);
text-decoration-color: var(--color-accent-flipped);
}
footer a:focus-visible {
outline-color: var(--color-accent-flipped);
}</style>
<!-- JS -->
<script type="module"></script>
<!-- Font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Bellota:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" rel="stylesheet">
</head>
<body>
<div id="content">
<header>
<nav title="background image shows the peak of a dilapidated greenhouse in black and white">
<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">
<img src="/.11ty/image/?src=src%2Fimg%2Flogo.jpg&width=500&format=jpeg&via=transform" 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.'" loading="lazy" decoding="async" width="500" height="500">
</a>
<ul>
<li>
<a href="/about/" title="About the Beall Greenhouses" aria-current="page">
ⓘ about
</a>
</li>
<li>
<a href="/events/" title="Events at the Beall Greenhouses">
🗓 events
</a>
</li>
<li>
<a href="/artists/" title="Artists in residence at the Beall Greenhouses">
🖌 artists
</a>
</li>
</ul>
</nav>
</header>
<main id="main">
<h1>About the Beall Greenhouses</h1>
<div class="no-header">
<p><a href="https://www.historylink.org/File/2346" target="_blank">
Read about the Beall Greenhouses on HistoryLink.org
</a></p>
</div>
</main>
</div>
<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>
<!-- This page `/about/` was built on 2026-03-31T20:35:34.275Z -->
</body>
</html>

500
_live/artists/index.html Normal file
View File

@ -0,0 +1,500 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Artists in residence at the Beall Greenhouses | the historic Beall Greenhouses</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<!-- Meta -->
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="canonical" href="/">
<meta name="description" content="the historic Beall Greenhouses">
<meta name="robots" content="index,follow">
<meta property="og:title" content="Artists in residence at the Beall Greenhouses | the historic Beall Greenhouses">
<meta property="og:type" content="article">
<meta property="og:url" content="/">
<meta property="og:description" content="the historic Beall Greenhouses">
<meta property="og:image" content="/assets/img/logo.jpg">
<meta property="og:image:alt" content="block print in black and orange of a rufous hummingbird in flight with tail flared. the hummingbird holds a banner that reads 'become ungovernable.'">
<meta name="generator" content="Eleventy v3.1.5">
<!-- CSS -->
<style>#directory {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 3rem;
margin: 0 .5rem;
}
@media (max-width: 1050px) {
#directory {
grid-template-columns: 1fr;
}
}
ul#directory,
ol#directory {
background-color: var(--color-bg);
padding: 0;
}
#directory li {
list-style: none;
border: solid .25rem var(--color-accent);
border-radius: .75rem;
outline-offset: .25rem;
margin: 0;
padding: 0;
}
@media (any-hover: hover) {
#directory li:hover {
background-color: var(--color-text);
}
#directory li:hover h2 {
color: var(--color-bg);
border-color: var(--color-accent-flipped);
}
}
#directory li:focus-within {
outline: solid .25rem var(--color-accent);
}
#directory a {
text-decoration: none;
margin: 0;
}
#directory a:focus-visible {
outline: none; /* outline handled by li:focus-within */
}
#directory h2 {
text-align: center;
margin-top: 1rem;
}
#directory img {
margin: 0;
border-radius: 0 0 .5rem .5rem;
}
:root {
color-scheme: light dark;
--color-concrete: #e5e0c7;
--color-concrete-alt: #d1cbab;
--color-green: #142b15;
--color-green-alt: #1a3b1b;
--color-teal-light: #4ba19e;
--color-teal-dark: #0c6a74;
--color-bg: light-dark(var(--color-concrete), var(--color-green));
--color-text: light-dark(var(--color-green), var(--color-concrete));
--color-bg-alt: light-dark(var(--color-concrete-alt), var(--color-green-alt));
--color-text-alt: light-dark(var(--color-green-alt), var(--color-concrete-alt));
--color-accent: light-dark(var(--color-teal-dark), var(--color-teal-light));
--color-accent-flipped: light-dark(var(--color-teal-light), var(--color-teal-dark));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: var(--color-text);
color: var(--color-bg);
display: flex;
flex-direction: column;
font-family: Arial, Helvetica, sans-serif;
min-height: 100vh;
}
#content {
background-color: var(--color-bg);
color: var(--color-text);
width: 100%;
flex-grow: 1;
border-radius: 0 0 2rem 2rem;
padding: 1rem 0 2rem;
}
@media (prefers-color-scheme: light) {
.dark-mode {
display: none;
}
}
@media (prefers-color-scheme: dark) {
.light-mode {
display: none;
}
}
header,
main {
width: 65%;
margin: 0 auto 1rem;
}
@media (max-width: 750px) {
header,
main {
width: 92%;
}
}
@media (min-width: 2000px) {
header,
main {
width: 45%;
}
}
img {
display: block;
max-width: 100%;
height: auto;
}
h1, h2, h3, h4, h5, h6 {
color: var(--color-text-alt);
}
h1,
h2 {
font-family: 'Bellota', Arial, Helvetica, sans-serif;
}
h1 {
text-align: center;
margin: 2rem 0;
font-size: 2.2rem;
}
h2 {
margin: 2rem 0 0;
font-size: 1.65rem;
}
h2,
h3 {
border-bottom: .25rem solid var(--color-accent);
}
a {
color: var(--color-text);
font-weight: bold;
text-decoration: underline;
text-decoration-style: solid;
text-decoration-thickness: .25rem;
text-decoration-color: var(--color-accent);
transition: text-decoration-thickness .5s;
border-radius: .1rem;
outline-offset: .1rem;
}
a:hover,
a:active {
text-decoration-thickness: .5rem;
}
a:focus-visible {
text-decoration: none;
outline: solid .25rem var(--color-accent);
}
main p,
main ul {
padding: .8rem;
line-height: 1.5rem;
}
main li {
margin-left: 1rem;
}
main li:not(:last-child) {
padding: 0 0 .5rem;
}
/* styles for sets of <p>s under an h2/3/etc vs alone
this is done as a class rather than just h2 + p to accomodate
for multi-<p> segments which can then be wrapped in <div>s */
.under-header,
.no-header {
background-color: var(--color-bg-alt);
}
.under-header {
border-radius: 0 0 1rem 1rem;
margin-left: 2.5rem;
}
@media (max-width: 750px) {
.under-header {
margin-left: 1.25rem;
}
}
.no-header {
border-radius: 1rem;
}
.two-col {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
.two-col > * {
place-self: start center;
}
@media (max-width: 950px) {
.two-col {
grid-template-columns: 1fr;
}
}
/* top nav */
nav {
position: relative;
margin: 0 auto 1.5rem;
display: grid;
grid-template: "logo nav";
grid-template-rows: 7rem;
grid-template-columns: 7rem auto;
background-image: url("/greenhouse.jpg");
background-size: cover;
background-repeat: no-repeat;
border-radius: 2rem .25rem .25rem 2rem;
}
nav a {
margin: 0;
}
nav a:not(:has(img)) {
display: inline-block;
text-decoration: none;
font-size: 1.2rem;
padding: 0 .25rem;
border: solid .125rem var(--color-accent);
border-radius: .25rem;
background-color: var(--color-bg);
}
@media (any-hover: hover) {
nav a:not(:has(img)):hover {
color: var(--color-bg);
background-color: var(--color-text-alt);
border-color: var(--color-accent-flipped);
outline: .125rem solid var(--color-accent);
outline-offset: 0;
}
}
nav a:not(:has(img)):focus-visible {
outline: solid .125rem var(--color-accent);
outline-offset: .125rem;
}
#skip {
left: -999px;
position: absolute;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
z-index: -99;
}
#skip:focus-visible {
left: -6rem;
width: auto;
height: auto;
overflow: auto;
z-index: 999;
}
@media (max-width: 750px) {
#skip:focus-visible {
left: 5rem;
}
}
nav img {
max-height: 100%;
margin: 0;
border-radius: 2rem;
border: .2rem solid var(--color-accent);
}
@media (any-hover: hover) {
nav img:hover {
border-color: var(--color-accent-flipped);
outline-offset: 0;
outline: .2rem solid var(--color-accent);
}
}
nav a:has(img) {
grid-area: logo;
justify-self: start;
}
nav a:has(img):focus-visible {
border-radius: 2rem;
outline-offset: .2rem;
outline: .2rem solid var(--color-accent);
}
nav a:has(img):focus-visible img {
outline: none;
}
nav ul {
grid-area: nav;
display: flex;
justify-content: space-between;
align-items: flex-end;
flex-flow: column nowrap;
}
nav li {
list-style: none;
}
/* footer */
footer {
width: 95%;
margin: 0 auto;
padding: 1rem 0;
display: flex;
justify-content: center;
}
@media (max-width: 750px) {
footer {
flex-flow: column;
}
}
footer p {
background-color: var(--color-text);
color: var(--color-bg);
text-align: center;
font-size: .9rem;
padding: .25rem;
}
@media (min-width: 751px) {
footer p:nth-child(2)::before {
content: "● " / "";
}
footer p:nth-child(2)::after {
content: " ●" / "";
}
}
footer a {
color: var(--color-bg);
text-decoration-color: var(--color-accent-flipped);
}
footer a:focus-visible {
outline-color: var(--color-accent-flipped);
}</style>
<!-- JS -->
<script type="module"></script>
<!-- Font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Bellota:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" rel="stylesheet">
</head>
<body>
<div id="content">
<header>
<nav title="background image shows the peak of a dilapidated greenhouse in black and white">
<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">
<img src="/.11ty/image/?src=src%2Fimg%2Flogo.jpg&width=500&format=jpeg&via=transform" 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.'" loading="lazy" decoding="async" width="500" height="500">
</a>
<ul>
<li>
<a href="/about/" title="About the Beall Greenhouses">
ⓘ about
</a>
</li>
<li>
<a href="/events/" title="Events at the Beall Greenhouses">
🗓 events
</a>
</li>
<li>
<a href="/artists/" title="Artists in residence at the Beall Greenhouses" aria-current="page">
🖌 artists
</a>
</li>
</ul>
</nav>
</header>
<main id="main">
<h1>Artists in residence at the Beall Greenhouses</h1>
<ol id="directory">
<li>
<a href="/artists/jennifer-hawke/">
<h2>Jennifer Hawke</h2>
<img src="/.11ty/image/?src=src%2Fimg%2Fresidents%2Fjennifer-hawke%2Fjennifer-hawke.jpg&width=1024&format=jpeg&via=transform" alt="jennifer hawke, the artist, a white person with a beard and knowing eyes. the top half of their face is painted blue with a white heart, and they are wearing a huge elaborate flower crown, a red shawl, and several chunky pendants." loading="lazy" decoding="async" width="1024" height="681">
</a>
</li>
</ol>
</main>
</div>
<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>
<!-- This page `/artists/` was built on 2026-03-31T20:35:34.275Z -->
</body>
</html>

View File

@ -0,0 +1,545 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Jennifer Hawke | the historic Beall Greenhouses</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<!-- Meta -->
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="canonical" href="/">
<meta name="description" content="the historic Beall Greenhouses">
<meta name="robots" content="index,follow">
<meta property="og:title" content="Jennifer Hawke | the historic Beall Greenhouses">
<meta property="og:type" content="article">
<meta property="og:url" content="/">
<meta property="og:description" content="the historic Beall Greenhouses">
<meta property="og:image" content="/assets/img/logo.jpg">
<meta property="og:image:alt" content="block print in black and orange of a rufous hummingbird in flight with tail flared. the hummingbird holds a banner that reads 'become ungovernable.'">
<meta name="generator" content="Eleventy v3.1.5">
<!-- CSS -->
<style>.topic {
margin: 4rem auto;
display: grid;
}
.topic:nth-child(odd) {
grid-template:
'img h'
'img desc'
'img .';
grid-template-columns: 45% auto;
}
.topic:nth-child(even) {
grid-template:
'h img'
'desc img'
'. img';
grid-template-columns: auto 45%;
}
@media (max-width: 950px) {
.topic:nth-child(odd),
.topic:nth-child(even) {
grid-template:
'img'
'h'
'desc';
}
}
.topic img {
grid-area: img;
border-radius: 1rem;
}
@media (max-width: 950px) {
.topic img {
border-radius: 1rem 1rem 0 0;
border-bottom: .25rem solid var(--color-accent);
}
}
.topic h1,
.topic h2 {
margin: 0;
grid-area: h;
border-bottom: .25rem solid var(--color-accent);
padding: .25rem;
}
.topic:nth-child(odd) h2 {
padding-left: .75rem;
}
.topic:nth-child(even) h2 {
text-align: right;
padding-right: .75rem;
}
@media (max-width: 950px) {
.topic:nth-child(odd) h2,
.topic:nth-child(even) h2 {
padding: .25rem 0;
}
}
.topic .desc {
grid-area: desc;
background-color: var(--color-bg-alt);
border-radius: 0 0 1rem 1rem;
}
.topic:nth-child(odd) .desc {
margin-left: 1.5rem;
}
.topic:nth-child(even) .desc {
margin-right: 1.5rem;
}
@media (max-width: 950px) {
.topic:nth-child(odd) .desc,
.topic:nth-child(even) .desc {
margin: 0;
}
}
.contact ul {
background-color: var(--color-bg-alt);
border-radius: 0 0 1rem 1rem;
}
.contact {
margin-top: 4rem;
text-align: center;
}
.contact li {
list-style: none;
}
:root {
color-scheme: light dark;
--color-concrete: #e5e0c7;
--color-concrete-alt: #d1cbab;
--color-green: #142b15;
--color-green-alt: #1a3b1b;
--color-teal-light: #4ba19e;
--color-teal-dark: #0c6a74;
--color-bg: light-dark(var(--color-concrete), var(--color-green));
--color-text: light-dark(var(--color-green), var(--color-concrete));
--color-bg-alt: light-dark(var(--color-concrete-alt), var(--color-green-alt));
--color-text-alt: light-dark(var(--color-green-alt), var(--color-concrete-alt));
--color-accent: light-dark(var(--color-teal-dark), var(--color-teal-light));
--color-accent-flipped: light-dark(var(--color-teal-light), var(--color-teal-dark));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: var(--color-text);
color: var(--color-bg);
display: flex;
flex-direction: column;
font-family: Arial, Helvetica, sans-serif;
min-height: 100vh;
}
#content {
background-color: var(--color-bg);
color: var(--color-text);
width: 100%;
flex-grow: 1;
border-radius: 0 0 2rem 2rem;
padding: 1rem 0 2rem;
}
@media (prefers-color-scheme: light) {
.dark-mode {
display: none;
}
}
@media (prefers-color-scheme: dark) {
.light-mode {
display: none;
}
}
header,
main {
width: 65%;
margin: 0 auto 1rem;
}
@media (max-width: 750px) {
header,
main {
width: 92%;
}
}
@media (min-width: 2000px) {
header,
main {
width: 45%;
}
}
img {
display: block;
max-width: 100%;
height: auto;
}
h1, h2, h3, h4, h5, h6 {
color: var(--color-text-alt);
}
h1,
h2 {
font-family: 'Bellota', Arial, Helvetica, sans-serif;
}
h1 {
text-align: center;
margin: 2rem 0;
font-size: 2.2rem;
}
h2 {
margin: 2rem 0 0;
font-size: 1.65rem;
}
h2,
h3 {
border-bottom: .25rem solid var(--color-accent);
}
a {
color: var(--color-text);
font-weight: bold;
text-decoration: underline;
text-decoration-style: solid;
text-decoration-thickness: .25rem;
text-decoration-color: var(--color-accent);
transition: text-decoration-thickness .5s;
border-radius: .1rem;
outline-offset: .1rem;
}
a:hover,
a:active {
text-decoration-thickness: .5rem;
}
a:focus-visible {
text-decoration: none;
outline: solid .25rem var(--color-accent);
}
main p,
main ul {
padding: .8rem;
line-height: 1.5rem;
}
main li {
margin-left: 1rem;
}
main li:not(:last-child) {
padding: 0 0 .5rem;
}
/* styles for sets of <p>s under an h2/3/etc vs alone
this is done as a class rather than just h2 + p to accomodate
for multi-<p> segments which can then be wrapped in <div>s */
.under-header,
.no-header {
background-color: var(--color-bg-alt);
}
.under-header {
border-radius: 0 0 1rem 1rem;
margin-left: 2.5rem;
}
@media (max-width: 750px) {
.under-header {
margin-left: 1.25rem;
}
}
.no-header {
border-radius: 1rem;
}
.two-col {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
.two-col > * {
place-self: start center;
}
@media (max-width: 950px) {
.two-col {
grid-template-columns: 1fr;
}
}
/* top nav */
nav {
position: relative;
margin: 0 auto 1.5rem;
display: grid;
grid-template: "logo nav";
grid-template-rows: 7rem;
grid-template-columns: 7rem auto;
background-image: url("/greenhouse.jpg");
background-size: cover;
background-repeat: no-repeat;
border-radius: 2rem .25rem .25rem 2rem;
}
nav a {
margin: 0;
}
nav a:not(:has(img)) {
display: inline-block;
text-decoration: none;
font-size: 1.2rem;
padding: 0 .25rem;
border: solid .125rem var(--color-accent);
border-radius: .25rem;
background-color: var(--color-bg);
}
@media (any-hover: hover) {
nav a:not(:has(img)):hover {
color: var(--color-bg);
background-color: var(--color-text-alt);
border-color: var(--color-accent-flipped);
outline: .125rem solid var(--color-accent);
outline-offset: 0;
}
}
nav a:not(:has(img)):focus-visible {
outline: solid .125rem var(--color-accent);
outline-offset: .125rem;
}
#skip {
left: -999px;
position: absolute;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
z-index: -99;
}
#skip:focus-visible {
left: -6rem;
width: auto;
height: auto;
overflow: auto;
z-index: 999;
}
@media (max-width: 750px) {
#skip:focus-visible {
left: 5rem;
}
}
nav img {
max-height: 100%;
margin: 0;
border-radius: 2rem;
border: .2rem solid var(--color-accent);
}
@media (any-hover: hover) {
nav img:hover {
border-color: var(--color-accent-flipped);
outline-offset: 0;
outline: .2rem solid var(--color-accent);
}
}
nav a:has(img) {
grid-area: logo;
justify-self: start;
}
nav a:has(img):focus-visible {
border-radius: 2rem;
outline-offset: .2rem;
outline: .2rem solid var(--color-accent);
}
nav a:has(img):focus-visible img {
outline: none;
}
nav ul {
grid-area: nav;
display: flex;
justify-content: space-between;
align-items: flex-end;
flex-flow: column nowrap;
}
nav li {
list-style: none;
}
/* footer */
footer {
width: 95%;
margin: 0 auto;
padding: 1rem 0;
display: flex;
justify-content: center;
}
@media (max-width: 750px) {
footer {
flex-flow: column;
}
}
footer p {
background-color: var(--color-text);
color: var(--color-bg);
text-align: center;
font-size: .9rem;
padding: .25rem;
}
@media (min-width: 751px) {
footer p:nth-child(2)::before {
content: "● " / "";
}
footer p:nth-child(2)::after {
content: " ●" / "";
}
}
footer a {
color: var(--color-bg);
text-decoration-color: var(--color-accent-flipped);
}
footer a:focus-visible {
outline-color: var(--color-accent-flipped);
}</style>
<!-- JS -->
<script type="module"></script>
<!-- Font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Bellota:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" rel="stylesheet">
</head>
<body>
<div id="content">
<header>
<nav title="background image shows the peak of a dilapidated greenhouse in black and white">
<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">
<img src="/.11ty/image/?src=src%2Fimg%2Flogo.jpg&width=500&format=jpeg&via=transform" 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.'" loading="lazy" decoding="async" width="500" height="500">
</a>
<ul>
<li>
<a href="/about/" title="About the Beall Greenhouses">
ⓘ about
</a>
</li>
<li>
<a href="/events/" title="Events at the Beall Greenhouses">
🗓 events
</a>
</li>
<li>
<a href="/artists/" title="Artists in residence at the Beall Greenhouses">
🖌 artists
</a>
</li>
</ul>
</nav>
</header>
<main id="main">
<div class="topic">
<img src="/.11ty/image/?src=src%2Fimg%2Fresidents%2Fjennifer-hawke%2Fjennifer-hawke.jpg&width=1024&format=jpeg&via=transform" alt="jennifer hawke, the artist, a white person with a beard and knowing eyes. the top half of their face is painted blue with a white heart, and they are wearing a huge elaborate flower crown, a red shawl, and several chunky pendants." loading="lazy" decoding="async" width="1024" height="681">
<h1>Jennifer Hawke</h1>
<div class="desc">
<p>Jennifer Hawke hails from Billings, Montana where they got their degree in Cast Metals and Painting. They have been on Vashon Island for about 18 years and love doing the Bearded Lady Road Report. They have had their Studio at the Beall Greenhouses for about 8 years and only recently started opening to the public. Their space is warmed by a singular woodstove & all the ephemera that comes with being the child of an antique dealer.</p>
</div>
</div>
<div class="contact">
<h2>Get in touch...</h2>
<ul>
<li>
<a href="https://www.instagram.com/jenniferhawkestudio">@jenniferhawkestudio</a> and <a href="https://www.instagram.com/montana_hawke">@montana_hawke</a> on instagram
</li>
<li>
<a href="https://www.facebook.com/pugetsoundgypsy">Jennifer Hawke on facebook</a>
</li>
<li>
<a href="mailto:montanahawke@gmail.com?subject=Beall%20Greenhouses">email Jennifer Hawke</a>
</li>
</ul>
</div>
</main>
</div>
<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>
<!-- This page `/artists/jennifer-hawke/` was built on 2026-03-31T20:35:34.277Z -->
</body>
</html>

View File

@ -0,0 +1,442 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Attribution | the historic Beall Greenhouses</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<!-- Meta -->
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="canonical" href="/">
<meta name="description" content="the historic Beall Greenhouses">
<meta name="robots" content="index,follow">
<meta property="og:title" content="Attribution | the historic Beall Greenhouses">
<meta property="og:type" content="article">
<meta property="og:url" content="/">
<meta property="og:description" content="the historic Beall Greenhouses">
<meta property="og:image" content="/assets/img/logo.jpg">
<meta property="og:image:alt" content="block print in black and orange of a rufous hummingbird in flight with tail flared. the hummingbird holds a banner that reads 'become ungovernable.'">
<meta name="generator" content="Eleventy v3.1.5">
<!-- CSS -->
<style>:root {
color-scheme: light dark;
--color-concrete: #e5e0c7;
--color-concrete-alt: #d1cbab;
--color-green: #142b15;
--color-green-alt: #1a3b1b;
--color-teal-light: #4ba19e;
--color-teal-dark: #0c6a74;
--color-bg: light-dark(var(--color-concrete), var(--color-green));
--color-text: light-dark(var(--color-green), var(--color-concrete));
--color-bg-alt: light-dark(var(--color-concrete-alt), var(--color-green-alt));
--color-text-alt: light-dark(var(--color-green-alt), var(--color-concrete-alt));
--color-accent: light-dark(var(--color-teal-dark), var(--color-teal-light));
--color-accent-flipped: light-dark(var(--color-teal-light), var(--color-teal-dark));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: var(--color-text);
color: var(--color-bg);
display: flex;
flex-direction: column;
font-family: Arial, Helvetica, sans-serif;
min-height: 100vh;
}
#content {
background-color: var(--color-bg);
color: var(--color-text);
width: 100%;
flex-grow: 1;
border-radius: 0 0 2rem 2rem;
padding: 1rem 0 2rem;
}
@media (prefers-color-scheme: light) {
.dark-mode {
display: none;
}
}
@media (prefers-color-scheme: dark) {
.light-mode {
display: none;
}
}
header,
main {
width: 65%;
margin: 0 auto 1rem;
}
@media (max-width: 750px) {
header,
main {
width: 92%;
}
}
@media (min-width: 2000px) {
header,
main {
width: 45%;
}
}
img {
display: block;
max-width: 100%;
height: auto;
}
h1, h2, h3, h4, h5, h6 {
color: var(--color-text-alt);
}
h1,
h2 {
font-family: 'Bellota', Arial, Helvetica, sans-serif;
}
h1 {
text-align: center;
margin: 2rem 0;
font-size: 2.2rem;
}
h2 {
margin: 2rem 0 0;
font-size: 1.65rem;
}
h2,
h3 {
border-bottom: .25rem solid var(--color-accent);
}
a {
color: var(--color-text);
font-weight: bold;
text-decoration: underline;
text-decoration-style: solid;
text-decoration-thickness: .25rem;
text-decoration-color: var(--color-accent);
transition: text-decoration-thickness .5s;
border-radius: .1rem;
outline-offset: .1rem;
}
a:hover,
a:active {
text-decoration-thickness: .5rem;
}
a:focus-visible {
text-decoration: none;
outline: solid .25rem var(--color-accent);
}
main p,
main ul {
padding: .8rem;
line-height: 1.5rem;
}
main li {
margin-left: 1rem;
}
main li:not(:last-child) {
padding: 0 0 .5rem;
}
/* styles for sets of <p>s under an h2/3/etc vs alone
this is done as a class rather than just h2 + p to accomodate
for multi-<p> segments which can then be wrapped in <div>s */
.under-header,
.no-header {
background-color: var(--color-bg-alt);
}
.under-header {
border-radius: 0 0 1rem 1rem;
margin-left: 2.5rem;
}
@media (max-width: 750px) {
.under-header {
margin-left: 1.25rem;
}
}
.no-header {
border-radius: 1rem;
}
.two-col {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
.two-col > * {
place-self: start center;
}
@media (max-width: 950px) {
.two-col {
grid-template-columns: 1fr;
}
}
/* top nav */
nav {
position: relative;
margin: 0 auto 1.5rem;
display: grid;
grid-template: "logo nav";
grid-template-rows: 7rem;
grid-template-columns: 7rem auto;
background-image: url("/greenhouse.jpg");
background-size: cover;
background-repeat: no-repeat;
border-radius: 2rem .25rem .25rem 2rem;
}
nav a {
margin: 0;
}
nav a:not(:has(img)) {
display: inline-block;
text-decoration: none;
font-size: 1.2rem;
padding: 0 .25rem;
border: solid .125rem var(--color-accent);
border-radius: .25rem;
background-color: var(--color-bg);
}
@media (any-hover: hover) {
nav a:not(:has(img)):hover {
color: var(--color-bg);
background-color: var(--color-text-alt);
border-color: var(--color-accent-flipped);
outline: .125rem solid var(--color-accent);
outline-offset: 0;
}
}
nav a:not(:has(img)):focus-visible {
outline: solid .125rem var(--color-accent);
outline-offset: .125rem;
}
#skip {
left: -999px;
position: absolute;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
z-index: -99;
}
#skip:focus-visible {
left: -6rem;
width: auto;
height: auto;
overflow: auto;
z-index: 999;
}
@media (max-width: 750px) {
#skip:focus-visible {
left: 5rem;
}
}
nav img {
max-height: 100%;
margin: 0;
border-radius: 2rem;
border: .2rem solid var(--color-accent);
}
@media (any-hover: hover) {
nav img:hover {
border-color: var(--color-accent-flipped);
outline-offset: 0;
outline: .2rem solid var(--color-accent);
}
}
nav a:has(img) {
grid-area: logo;
justify-self: start;
}
nav a:has(img):focus-visible {
border-radius: 2rem;
outline-offset: .2rem;
outline: .2rem solid var(--color-accent);
}
nav a:has(img):focus-visible img {
outline: none;
}
nav ul {
grid-area: nav;
display: flex;
justify-content: space-between;
align-items: flex-end;
flex-flow: column nowrap;
}
nav li {
list-style: none;
}
/* footer */
footer {
width: 95%;
margin: 0 auto;
padding: 1rem 0;
display: flex;
justify-content: center;
}
@media (max-width: 750px) {
footer {
flex-flow: column;
}
}
footer p {
background-color: var(--color-text);
color: var(--color-bg);
text-align: center;
font-size: .9rem;
padding: .25rem;
}
@media (min-width: 751px) {
footer p:nth-child(2)::before {
content: "● " / "";
}
footer p:nth-child(2)::after {
content: " ●" / "";
}
}
footer a {
color: var(--color-bg);
text-decoration-color: var(--color-accent-flipped);
}
footer a:focus-visible {
outline-color: var(--color-accent-flipped);
}</style>
<!-- JS -->
<script type="module"></script>
<!-- Font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Bellota:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" rel="stylesheet">
</head>
<body>
<div id="content">
<header>
<nav title="background image shows the peak of a dilapidated greenhouse in black and white">
<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">
<img src="/.11ty/image/?src=src%2Fimg%2Flogo.jpg&width=500&format=jpeg&via=transform" 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.'" loading="lazy" decoding="async" width="500" height="500">
</a>
<ul>
<li>
<a href="/about/" title="About the Beall Greenhouses">
ⓘ about
</a>
</li>
<li>
<a href="/events/" title="Events at the Beall Greenhouses">
🗓 events
</a>
</li>
<li>
<a href="/artists/" title="Artists in residence at the Beall Greenhouses">
🖌 artists
</a>
</li>
</ul>
</nav>
</header>
<main id="main">
<h1>Attribution</h1>
<div class="no-header">
<p>This website is created and maintained by
<a href="https://leecat.art" target="_blank">Lee Cattarin</a>.
Markets at the Beall Greenhouses are coordinated by
<a href="/artists/hawke">Jennifer Hawke</a>.
</p>
<p>
Much thanks to all the participating artists, both
<a href="/artists">artists in residence</a>
and market artists.
</p>
<p>
This site is created with
<a href="https://11ty.dev" target="_blank">Eleventy v3.1.5</a>
and built
<a href="https://declare-ai.org/1.0.0/none.html" target="_blank">
without the use of generative AI</a>.
</p>
</div>
</main>
</div>
<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>
<!-- This page `/attribution/` was built on 2026-03-31T20:35:34.275Z -->
</body>
</html>

View File

@ -0,0 +1,838 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Solstice 2025 Market at the Beall Greenhouses | the historic Beall Greenhouses</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<!-- Meta -->
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="canonical" href="/">
<meta name="description" content="the historic Beall Greenhouses">
<meta name="robots" content="index,follow">
<meta property="og:title" content="Solstice 2025 Market at the Beall Greenhouses | the historic Beall Greenhouses">
<meta property="og:type" content="article">
<meta property="og:url" content="/">
<meta property="og:description" content="the historic Beall Greenhouses">
<meta property="og:image" content="/assets/img/logo.jpg">
<meta property="og:image:alt" content="block print in black and orange of a rufous hummingbird in flight with tail flared. the hummingbird holds a banner that reads 'become ungovernable.'">
<meta name="generator" content="Eleventy v3.1.5">
<!-- CSS -->
<style>.artist {
width: 100%;
margin: 2rem 0;
display: grid;
scroll-margin-top: 1rem;
}
.artist:nth-child(odd) {
grid-template:
'imgs h3'
'imgs desc'
'imgs .';
grid-template-columns: 45% auto;
}
.artist:nth-child(even) {
grid-template:
'h3 imgs'
'desc imgs'
'. imgs';
grid-template-columns: auto 45%;
}
@media (max-width: 950px) {
.artist:nth-child(n) {
grid-template:
'imgs'
'h3'
'desc';
}
}
.fit-contain {
object-fit: contain;
grid-area: imgs;
}
.artist img {
max-height: 100%;
max-width: 100%;
border-radius: 1rem;
}
@media (max-width: 950px) {
.artist img {
border-radius: 1rem 1rem 0 0;
border-bottom: .25rem solid var(--color-accent);
}
}
.artist h3 {
grid-area: h3;
text-transform: uppercase;
line-height: 2rem;
}
.artist:nth-child(odd) h3 {
padding-left: .5rem;
}
.artist:nth-child(even) h3 {
padding-right: .5rem;
text-align: right;
}
@media (max-width: 1050px) {
.artist:nth-child(n) h3 {
padding: 0;
}
}
.description {
grid-area: desc;
background-color: var(--color-bg-alt);
border-radius: 0 0 1rem 1rem;
}
.artist:nth-child(odd) .description {
margin-left: 1.75rem;
}
.artist:nth-child(even) .description {
margin-right: 1.75rem;
}
@media (max-width: 950px) {
.artist:nth-child(odd) .description,
.artist:nth-child(even) .description {
margin: 0;
}
}
.description p:last-child {
text-align: center;
padding-bottom: 1rem;
}
:root {
color-scheme: light dark;
--color-concrete: #e5e0c7;
--color-concrete-alt: #d1cbab;
--color-green: #142b15;
--color-green-alt: #1a3b1b;
--color-teal-light: #4ba19e;
--color-teal-dark: #0c6a74;
--color-bg: light-dark(var(--color-concrete), var(--color-green));
--color-text: light-dark(var(--color-green), var(--color-concrete));
--color-bg-alt: light-dark(var(--color-concrete-alt), var(--color-green-alt));
--color-text-alt: light-dark(var(--color-green-alt), var(--color-concrete-alt));
--color-accent: light-dark(var(--color-teal-dark), var(--color-teal-light));
--color-accent-flipped: light-dark(var(--color-teal-light), var(--color-teal-dark));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: var(--color-text);
color: var(--color-bg);
display: flex;
flex-direction: column;
font-family: Arial, Helvetica, sans-serif;
min-height: 100vh;
}
#content {
background-color: var(--color-bg);
color: var(--color-text);
width: 100%;
flex-grow: 1;
border-radius: 0 0 2rem 2rem;
padding: 1rem 0 2rem;
}
@media (prefers-color-scheme: light) {
.dark-mode {
display: none;
}
}
@media (prefers-color-scheme: dark) {
.light-mode {
display: none;
}
}
header,
main {
width: 65%;
margin: 0 auto 1rem;
}
@media (max-width: 750px) {
header,
main {
width: 92%;
}
}
@media (min-width: 2000px) {
header,
main {
width: 45%;
}
}
img {
display: block;
max-width: 100%;
height: auto;
}
h1, h2, h3, h4, h5, h6 {
color: var(--color-text-alt);
}
h1,
h2 {
font-family: 'Bellota', Arial, Helvetica, sans-serif;
}
h1 {
text-align: center;
margin: 2rem 0;
font-size: 2.2rem;
}
h2 {
margin: 2rem 0 0;
font-size: 1.65rem;
}
h2,
h3 {
border-bottom: .25rem solid var(--color-accent);
}
a {
color: var(--color-text);
font-weight: bold;
text-decoration: underline;
text-decoration-style: solid;
text-decoration-thickness: .25rem;
text-decoration-color: var(--color-accent);
transition: text-decoration-thickness .5s;
border-radius: .1rem;
outline-offset: .1rem;
}
a:hover,
a:active {
text-decoration-thickness: .5rem;
}
a:focus-visible {
text-decoration: none;
outline: solid .25rem var(--color-accent);
}
main p,
main ul {
padding: .8rem;
line-height: 1.5rem;
}
main li {
margin-left: 1rem;
}
main li:not(:last-child) {
padding: 0 0 .5rem;
}
/* styles for sets of <p>s under an h2/3/etc vs alone
this is done as a class rather than just h2 + p to accomodate
for multi-<p> segments which can then be wrapped in <div>s */
.under-header,
.no-header {
background-color: var(--color-bg-alt);
}
.under-header {
border-radius: 0 0 1rem 1rem;
margin-left: 2.5rem;
}
@media (max-width: 750px) {
.under-header {
margin-left: 1.25rem;
}
}
.no-header {
border-radius: 1rem;
}
.two-col {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
.two-col > * {
place-self: start center;
}
@media (max-width: 950px) {
.two-col {
grid-template-columns: 1fr;
}
}
/* top nav */
nav {
position: relative;
margin: 0 auto 1.5rem;
display: grid;
grid-template: "logo nav";
grid-template-rows: 7rem;
grid-template-columns: 7rem auto;
background-image: url("/greenhouse.jpg");
background-size: cover;
background-repeat: no-repeat;
border-radius: 2rem .25rem .25rem 2rem;
}
nav a {
margin: 0;
}
nav a:not(:has(img)) {
display: inline-block;
text-decoration: none;
font-size: 1.2rem;
padding: 0 .25rem;
border: solid .125rem var(--color-accent);
border-radius: .25rem;
background-color: var(--color-bg);
}
@media (any-hover: hover) {
nav a:not(:has(img)):hover {
color: var(--color-bg);
background-color: var(--color-text-alt);
border-color: var(--color-accent-flipped);
outline: .125rem solid var(--color-accent);
outline-offset: 0;
}
}
nav a:not(:has(img)):focus-visible {
outline: solid .125rem var(--color-accent);
outline-offset: .125rem;
}
#skip {
left: -999px;
position: absolute;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
z-index: -99;
}
#skip:focus-visible {
left: -6rem;
width: auto;
height: auto;
overflow: auto;
z-index: 999;
}
@media (max-width: 750px) {
#skip:focus-visible {
left: 5rem;
}
}
nav img {
max-height: 100%;
margin: 0;
border-radius: 2rem;
border: .2rem solid var(--color-accent);
}
@media (any-hover: hover) {
nav img:hover {
border-color: var(--color-accent-flipped);
outline-offset: 0;
outline: .2rem solid var(--color-accent);
}
}
nav a:has(img) {
grid-area: logo;
justify-self: start;
}
nav a:has(img):focus-visible {
border-radius: 2rem;
outline-offset: .2rem;
outline: .2rem solid var(--color-accent);
}
nav a:has(img):focus-visible img {
outline: none;
}
nav ul {
grid-area: nav;
display: flex;
justify-content: space-between;
align-items: flex-end;
flex-flow: column nowrap;
}
nav li {
list-style: none;
}
/* footer */
footer {
width: 95%;
margin: 0 auto;
padding: 1rem 0;
display: flex;
justify-content: center;
}
@media (max-width: 750px) {
footer {
flex-flow: column;
}
}
footer p {
background-color: var(--color-text);
color: var(--color-bg);
text-align: center;
font-size: .9rem;
padding: .25rem;
}
@media (min-width: 751px) {
footer p:nth-child(2)::before {
content: "● " / "";
}
footer p:nth-child(2)::after {
content: " ●" / "";
}
}
footer a {
color: var(--color-bg);
text-decoration-color: var(--color-accent-flipped);
}
footer a:focus-visible {
outline-color: var(--color-accent-flipped);
}</style>
<!-- JS -->
<script type="module"></script>
<!-- Font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Bellota:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" rel="stylesheet">
</head>
<body>
<div id="content">
<header>
<nav title="background image shows the peak of a dilapidated greenhouse in black and white">
<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">
<img src="/.11ty/image/?src=src%2Fimg%2Flogo.jpg&width=500&format=jpeg&via=transform" 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.'" loading="lazy" decoding="async" width="500" height="500">
</a>
<ul>
<li>
<a href="/about/" title="About the Beall Greenhouses">
ⓘ about
</a>
</li>
<li>
<a href="/events/" title="Events at the Beall Greenhouses">
🗓 events
</a>
</li>
<li>
<a href="/artists/" title="Artists in residence at the Beall Greenhouses">
🖌 artists
</a>
</li>
</ul>
</nav>
</header>
<main id="main">
<h1>Solstice 2025 Market at the Beall Greenhouses</h1>
<h2>When?</h2>
<p class="under-header"><time datetime="2025-12-21 10:00">Sunday, December 21st, 2025, 10am - 5pm</time>.</p>
<h2>Where?</h2>
<p class="under-header">Studios in the former cold storage facility at the old Beall Greenhouses:
<a href="https://maps.app.goo.gl/5p1NAArdjX4vaEgw9" target="_blank">18527 Beall Rd SW, Vashon, WA 98070</a>
</p>
<h2>What else?</h2>
<p class="under-header">There will be popcorn, cookies, fresh hot coffee from
<a href="www.zenbelliescoffeeco.com" target="_blank">Zenbellies Coffee Co.</a>,
and a warm fire.
</p>
<h2>Who?</h2>
<ul id="artists">
<li id="hope-black" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Fhope-black.jpg&width=3832&format=jpeg&via=transform" alt="undefined Image 1 is 3 picture collage of a white brunette woman. in picture one, she sits on a tall stool with her leg pulled up, holding paintbrushes. in picture 2 she stares at the camera with chanterelles held up to her ears. picture 3, she aims a camera at the camera." loading="lazy" decoding="async" width="3832" height="1460">
</div>
<h3>Hope Black</h3>
<div class="description">
<p>Hope Black is a conceptual portrait photographer and multi-media artist based on Vashon Island, WA. Her work blends fine-art portraiture with macabre photo editing, and she draws on mixed-media illustrations, varied textures, and found-objects to create portraits and paintings that feel symbolic and dream-like. Her images echo the archetypes found in the tarot and the emotional undercurrents of womanhood -- inviting viewers into a world that is both haunting and deeply human.</p>
<ul>
<li>
<a href="https://hopeblack.photo" target="_blank">
hopeblack.photo
</a>
</li>
</ul>
</div>
</li>
<li id="jennifer-hawke" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Fprev%2Fjennifer-hawke.jpg&width=1024&format=jpeg&via=transform" alt="a 4 picture collage. Image 1 is Coulter pinecone with dried oranges, &amp; apples, dried flowers, &amp; bay leaves. Image 2 is a collage titled &#39;when the black rock opens&#39;. artist statement on the piece Intentional Collage, seeds have been planted in the line of the future. There is a promise of what will be growing when it is time for us to understand. Image 3 is Coulter pinecone with feathers, moon, snail shell, dried flowers, spices, bay leaves, and found sculpted porcelain face. Image 4 is jennifer hawke, the artist, a white person with a beard and knowing eyes. the top half of their face is painted blue with a white heart, and they are wearing a huge elaborate flower crown, a red shawl, and several chunky pendants." loading="lazy" decoding="async" width="1024" height="1163">
</div>
<h3>Jennifer Hawke</h3>
<div class="description">
<p>Jennifer Hawke hails from Billings, Montana where they got their degree in Cast Metals and Painting. They have been on Vashon Island for about 18 years and love doing the Bearded Lady Road Report. They have had their Studio at the Beall Greenhouses for about 8 years and only recently started opening to the public. Their space is warmed by a singular woodstove &amp; all the ephemera that comes with being the child of an antique dealer.</p>
<ul>
<li>
<a href="https://www.instagram.com/jenniferhawkestudio" target="_blank">
jenniferhawkestudio on instagram
</a>
</li>
</ul>
</div>
</li>
<li id="logan-price" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Flogan-price.jpg&width=1199&format=jpeg&via=transform" alt="a 5 picture collage. Image 1 is moon jellyfish on dark background. Image 2 is Spruce trees in mist. Image 3 is Opalescent nudibranch. Image 4 is Salmon troller in front of alaskan volcano. Image 5 is Underwater photo of bull kelp." loading="lazy" decoding="async" width="1199" height="615">
</div>
<h3>Logan Price Photography</h3>
<div class="description">
<p>Unique underwater photographs of local northwest sea creatures taken while freediving, and stunning large format land-and-seascapes from Southeast Alaska.</p>
<ul>
<li>
<a href="https://www.anthozote.com" target="_blank">
anthozote.com
</a>
</li>
<li>
<a href="https://www.instagram.com/anthozote/" target="_blank">
anthozote on instagram
</a>
</li>
<li>
<a href="https://www.tiktok.com/@anthozote" target="_blank">
anthozote on tiktok
</a>
</li>
</ul>
</div>
</li>
<li id="karen-biondo" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Fkaren-biondo.jpg&width=1080&format=jpeg&via=transform" alt="a 312 picture collage. Image 1 is 4 Image 2 is Image 3 is p Image 4 is h Image 5 is o Image 6 is t Image 7 is o Image 8 is Image 9 is c Image 10 is o Image 11 is l Image 12 is l Image 13 is a Image 14 is g Image 15 is e Image 16 is . Image 17 is Image 18 is c Image 19 is l Image 20 is o Image 21 is c Image 22 is k Image 23 is w Image 24 is i Image 25 is s Image 26 is e Image 27 is Image 28 is f Image 29 is r Image 30 is o Image 31 is m Image 32 is Image 33 is t Image 34 is o Image 35 is p Image 36 is Image 37 is l Image 38 is e Image 39 is f Image 40 is t Image 41 is , Image 42 is Image 43 is K Image 44 is a Image 45 is r Image 46 is e Image 47 is n Image 48 is , Image 49 is Image 50 is a Image 51 is n Image 52 is Image 53 is o Image 54 is l Image 55 is d Image 56 is e Image 57 is r Image 58 is Image 59 is w Image 60 is h Image 61 is i Image 62 is t Image 63 is e Image 64 is Image 65 is w Image 66 is o Image 67 is m Image 68 is a Image 69 is n Image 70 is , Image 71 is Image 72 is s Image 73 is m Image 74 is i Image 75 is l Image 76 is e Image 77 is s Image 78 is Image 79 is a Image 80 is t Image 81 is Image 82 is t Image 83 is h Image 84 is e Image 85 is Image 86 is c Image 87 is a Image 88 is m Image 89 is e Image 90 is r Image 91 is a Image 92 is Image 93 is w Image 94 is h Image 95 is i Image 96 is l Image 97 is e Image 98 is Image 99 is h Image 100 is o Image 101 is l Image 102 is d Image 103 is i Image 104 is n Image 105 is g Image 106 is Image 107 is a Image 108 is Image 109 is s Image 110 is t Image 111 is e Image 112 is a Image 113 is m Image 114 is Image 115 is p Image 116 is r Image 117 is e Image 118 is s Image 119 is s Image 120 is Image 121 is p Image 122 is r Image 123 is i Image 124 is n Image 125 is t Image 126 is Image 127 is o Image 128 is f Image 129 is Image 130 is l Image 131 is e Image 132 is a Image 133 is v Image 134 is e Image 135 is s Image 136 is ; Image 137 is Image 138 is r Image 139 is o Image 140 is w Image 141 is s Image 142 is Image 143 is o Image 144 is f Image 145 is Image 146 is f Image 147 is r Image 148 is a Image 149 is g Image 150 is r Image 151 is a Image 152 is n Image 153 is c Image 154 is e Image 155 is - Image 156 is f Image 157 is r Image 158 is e Image 159 is e Image 160 is Image 161 is g Image 162 is o Image 163 is a Image 164 is t Image 165 is Image 166 is m Image 167 is i Image 168 is l Image 169 is k Image 170 is Image 171 is s Image 172 is o Image 173 is a Image 174 is p Image 175 is ; Image 176 is Image 177 is K Image 178 is a Image 179 is r Image 180 is e Image 181 is n Image 182 is Image 183 is s Image 184 is i Image 185 is t Image 186 is s Image 187 is Image 188 is i Image 189 is n Image 190 is Image 191 is a Image 192 is Image 193 is g Image 194 is r Image 195 is e Image 196 is e Image 197 is n Image 198 is h Image 199 is o Image 200 is u Image 201 is s Image 202 is e Image 203 is Image 204 is h Image 205 is o Image 206 is l Image 207 is d Image 208 is i Image 209 is n Image 210 is g Image 211 is Image 212 is a Image 213 is Image 214 is s Image 215 is q Image 216 is u Image 217 is a Image 218 is s Image 219 is h Image 220 is Image 221 is a Image 222 is n Image 223 is d Image 224 is Image 225 is g Image 226 is r Image 227 is i Image 228 is n Image 229 is s Image 230 is Image 231 is w Image 232 is i Image 233 is d Image 234 is e Image 235 is l Image 236 is y Image 237 is ; Image 238 is Image 239 is b Image 240 is a Image 241 is g Image 242 is s Image 243 is Image 244 is o Image 245 is f Image 246 is Image 247 is d Image 248 is a Image 249 is r Image 250 is k Image 251 is Image 252 is c Image 253 is h Image 254 is o Image 255 is c Image 256 is o Image 257 is l Image 258 is a Image 259 is t Image 260 is e Image 261 is Image 262 is p Image 263 is e Image 264 is c Image 265 is a Image 266 is n Image 267 is Image 268 is t Image 269 is o Image 270 is f Image 271 is f Image 272 is e Image 273 is e Image 274 is Image 275 is a Image 276 is n Image 277 is d Image 278 is Image 279 is c Image 280 is r Image 281 is i Image 282 is s Image 283 is p Image 284 is y Image 285 is Image 286 is m Image 287 is o Image 288 is l Image 289 is a Image 290 is s Image 291 is s Image 292 is e Image 293 is s Image 294 is Image 295 is c Image 296 is r Image 297 is i Image 298 is s Image 299 is p Image 300 is s Image 301 is Image 302 is o Image 303 is n Image 304 is Image 305 is a Image 306 is Image 307 is t Image 308 is a Image 309 is b Image 310 is l Image 311 is e Image 312 is ." loading="lazy" decoding="async" width="1080" height="840">
</div>
<h3>Karen Biondo</h3>
<div class="description">
<p>I am a farmer, chef, creator. I make fun, delicious and sometimes useful items from what inspires me in the world around me.</p>
<ul>
<li>
<a href="https://labiondofarm.com" target="_blank">
labiondofarm.com
</a>
</li>
<li>
<a href="mailto:labiondo@comcast.net?subject=Beall%20Greenhouses%20Market" target="_blank">
email Karen
</a>
</li>
</ul>
</div>
</li>
<li id="brooke-osment" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Fbrooke-osment.jpg&width=3000&format=jpeg&via=transform" alt="undefined Image 1 is a triptych of photos of the artist wearing jackets of her own creation. the first jacket is orange and teal wool with a stag graphic appliqued onto the back panel. the second jacket is a woody green leather jacket with fur collar accent, snap epaulettes, and a front lapel detail created from colorful angular leather scraps. the third is a white denim jacket with a central linocut patch stitched in place with intricate topwork and embroidery. pink silk accents, flower details, and direct print work frame the central piece." loading="lazy" decoding="async" width="3000" height="2000">
</div>
<h3>Brooke Osment</h3>
<div class="description">
<p>found art jackets, stitchwork, visible mending</p>
<ul>
<li>
<a href="mailto:bsosment@gmail.com?subject=Beall%20Greenhouses%20Market" target="_blank">
email Brooke
</a>
</li>
</ul>
</div>
</li>
<li id="mags-mcginnis" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Fprev%2Fmags-mcginnis.jpg&width=2000&format=jpeg&via=transform" alt="undefined Image 1 is a 3 picture collage. the first shows a miniature dress with white lace, pink bows and rosettes, and tiny maple leaves. the second shows mags, the artist, a white person with shaggy green hair, smiling slightly. third shows a natural-art sculpture with tiny mushroom figures added to real wood and lichen." loading="lazy" decoding="async" width="2000" height="882">
</div>
<h3>Mags (Mary) McGinnis</h3>
<div class="description">
<p>Eclectic creator working with natural materials and found objects.</p>
<ul>
<li>
<a href="https://www.instagram.com/worldsinsideworlds/" target="_blank">
worldsinsideworlds on instagram
</a>
</li>
</ul>
</div>
</li>
<li id="gary-zenbellies" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Fgary-zenbellies.jpg&width=1200&format=jpeg&via=transform" alt="undefined Image 1 is Bag of ZenBellies coffee on the counter in front of a coffee station." loading="lazy" decoding="async" width="1200" height="1200">
</div>
<h3>Gary of Zenbellies Coffee Co.</h3>
<div class="description">
<p>I will be serving up delicious pour-overs of my hand-picked locally roasted coffee, honoring the rich flavor tradition of the Pacific Northwest.</p>
<ul>
<li>
<a href="https://www.zenbelliescoffeeco.com" target="_blank">
zenbelliescoffeeco.com
</a>
</li>
<li>
<a href="mailto:gary@zenbellies.com?subject=Beall%20Greenhouses%20Market" target="_blank">
email Gary
</a>
</li>
<li>
<a href="https://www.instagram.com/zenbelliescoffeeco" target="_blank">
zenbelliescoffeeco on instagram
</a>
</li>
</ul>
</div>
</li>
<li id="jon-haaland" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Fjon-haaland.jpg&width=1199&format=jpeg&via=transform" alt="undefined Image 1 is 2 image collage showing a cast concrete votive candle holder with candle, and a bottle of a tincture made from foraged red belted conk and artist conk mushrooms." loading="lazy" decoding="async" width="1199" height="533">
</div>
<h3>Jon Haaland</h3>
<div class="description">
<p>Jon Haaland is a mixed media artist, photographer and designer hailing from the Pacific Northwest. With an innate passion for blending mediums and exploring the interplay between man and nature, Jon draws his inspiration from the intrinsic harmony of nature and the pressures of man. Through his mixed media creations, he intertwines natural elements constructing a unique narrative that speaks to the deep interplay between civilization and the environment.</p>
<ul>
<li>
<a href="https://www.jonhaalandart.com/" target="_blank">
jonhaalandart.com
</a>
</li>
</ul>
</div>
</li>
<li id="rachel-lordkenaga" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Frachel-lordkenaga.jpg&width=787&format=jpeg&via=transform" alt="undefined Image 1 is a 3 picture collage. 2 pictures show the case and cards of a tarot deck created by Rachel. The third shows Rachel, a white person with turquoise hair, cat eye glasses, and contrasting striped jacket and dress, standing in front of paintings of shorelines." loading="lazy" decoding="async" width="787" height="640">
</div>
<h3>Rachel Guinevere LordKenaga</h3>
<div class="description">
<p>I am an artist and art therapist living on Vashon. I&#39;m most interested in evoking feelings and memory with my work. I will have my handmade Tarot deck and small oil paintings. I&#39;ll offer 1 card pulls for $20.</p>
<ul>
<li>
<a href="https://www.instagram.com/rglkart/" target="_blank">
rglkart on instagram
</a>
</li>
<li>
<a href="https://www.rglkart.com/" target="_blank">
rglkart.com
</a>
</li>
</ul>
</div>
</li>
<li id="lee-cattarin" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Flee-cattarin.jpg&width=2000&format=jpeg&via=transform" alt="undefined Image 1 is a four picture collage. two pictures show lee, a white person with curly hair and glasses; in one picture, wearing a colorful knit shawl. the other two frames show lee&#39;s work. 1, two leather card wallets with an elegant swoop on the back in vivid colors of leather; 2, a pile of greeting cards with a block-printed loon spread across front and back of the cards." loading="lazy" decoding="async" width="2000" height="2000">
</div>
<h3>Lee Cattarin</h3>
<div class="description">
<p>multidisciplinary artist and birder</p>
<ul>
<li>
<a href="https://leecat.art" target="_blank">
leecat.art
</a>
</li>
</ul>
</div>
</li>
</ul>
</main>
</div>
<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>
<!-- This page `/events/2025-solstice/` was built on 2026-03-31T20:35:34.274Z -->
</body>
</html>

View File

@ -0,0 +1,976 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Imbolc 2026 Celebration and Market at the Beall Greenhouses | the historic Beall Greenhouses</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<!-- Meta -->
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="canonical" href="/">
<meta name="description" content="the historic Beall Greenhouses">
<meta name="robots" content="index,follow">
<meta property="og:title" content="Imbolc 2026 Celebration and Market at the Beall Greenhouses | the historic Beall Greenhouses">
<meta property="og:type" content="article">
<meta property="og:url" content="/">
<meta property="og:description" content="the historic Beall Greenhouses">
<meta property="og:image" content="/assets/img/logo.jpg">
<meta property="og:image:alt" content="block print in black and orange of a rufous hummingbird in flight with tail flared. the hummingbird holds a banner that reads 'become ungovernable.'">
<meta name="generator" content="Eleventy v3.1.5">
<!-- CSS -->
<style>.artist {
width: 100%;
margin: 2rem 0;
display: grid;
scroll-margin-top: 1rem;
}
.artist:nth-child(odd) {
grid-template:
'imgs h3'
'imgs desc'
'imgs .';
grid-template-columns: 45% auto;
}
.artist:nth-child(even) {
grid-template:
'h3 imgs'
'desc imgs'
'. imgs';
grid-template-columns: auto 45%;
}
@media (max-width: 950px) {
.artist:nth-child(n) {
grid-template:
'imgs'
'h3'
'desc';
}
}
.fit-contain {
object-fit: contain;
grid-area: imgs;
}
.artist img {
max-height: 100%;
max-width: 100%;
border-radius: 1rem;
}
@media (max-width: 950px) {
.artist img {
border-radius: 1rem 1rem 0 0;
border-bottom: .25rem solid var(--color-accent);
}
}
.artist h3 {
grid-area: h3;
text-transform: uppercase;
line-height: 2rem;
}
.artist:nth-child(odd) h3 {
padding-left: .5rem;
}
.artist:nth-child(even) h3 {
padding-right: .5rem;
text-align: right;
}
@media (max-width: 1050px) {
.artist:nth-child(n) h3 {
padding: 0;
}
}
.description {
grid-area: desc;
background-color: var(--color-bg-alt);
border-radius: 0 0 1rem 1rem;
}
.artist:nth-child(odd) .description {
margin-left: 1.75rem;
}
.artist:nth-child(even) .description {
margin-right: 1.75rem;
}
@media (max-width: 950px) {
.artist:nth-child(odd) .description,
.artist:nth-child(even) .description {
margin: 0;
}
}
.description p:last-child {
text-align: center;
padding-bottom: 1rem;
}
:root {
color-scheme: light dark;
--color-concrete: #e5e0c7;
--color-concrete-alt: #d1cbab;
--color-green: #142b15;
--color-green-alt: #1a3b1b;
--color-teal-light: #4ba19e;
--color-teal-dark: #0c6a74;
--color-bg: light-dark(var(--color-concrete), var(--color-green));
--color-text: light-dark(var(--color-green), var(--color-concrete));
--color-bg-alt: light-dark(var(--color-concrete-alt), var(--color-green-alt));
--color-text-alt: light-dark(var(--color-green-alt), var(--color-concrete-alt));
--color-accent: light-dark(var(--color-teal-dark), var(--color-teal-light));
--color-accent-flipped: light-dark(var(--color-teal-light), var(--color-teal-dark));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: var(--color-text);
color: var(--color-bg);
display: flex;
flex-direction: column;
font-family: Arial, Helvetica, sans-serif;
min-height: 100vh;
}
#content {
background-color: var(--color-bg);
color: var(--color-text);
width: 100%;
flex-grow: 1;
border-radius: 0 0 2rem 2rem;
padding: 1rem 0 2rem;
}
@media (prefers-color-scheme: light) {
.dark-mode {
display: none;
}
}
@media (prefers-color-scheme: dark) {
.light-mode {
display: none;
}
}
header,
main {
width: 65%;
margin: 0 auto 1rem;
}
@media (max-width: 750px) {
header,
main {
width: 92%;
}
}
@media (min-width: 2000px) {
header,
main {
width: 45%;
}
}
img {
display: block;
max-width: 100%;
height: auto;
}
h1, h2, h3, h4, h5, h6 {
color: var(--color-text-alt);
}
h1,
h2 {
font-family: 'Bellota', Arial, Helvetica, sans-serif;
}
h1 {
text-align: center;
margin: 2rem 0;
font-size: 2.2rem;
}
h2 {
margin: 2rem 0 0;
font-size: 1.65rem;
}
h2,
h3 {
border-bottom: .25rem solid var(--color-accent);
}
a {
color: var(--color-text);
font-weight: bold;
text-decoration: underline;
text-decoration-style: solid;
text-decoration-thickness: .25rem;
text-decoration-color: var(--color-accent);
transition: text-decoration-thickness .5s;
border-radius: .1rem;
outline-offset: .1rem;
}
a:hover,
a:active {
text-decoration-thickness: .5rem;
}
a:focus-visible {
text-decoration: none;
outline: solid .25rem var(--color-accent);
}
main p,
main ul {
padding: .8rem;
line-height: 1.5rem;
}
main li {
margin-left: 1rem;
}
main li:not(:last-child) {
padding: 0 0 .5rem;
}
/* styles for sets of <p>s under an h2/3/etc vs alone
this is done as a class rather than just h2 + p to accomodate
for multi-<p> segments which can then be wrapped in <div>s */
.under-header,
.no-header {
background-color: var(--color-bg-alt);
}
.under-header {
border-radius: 0 0 1rem 1rem;
margin-left: 2.5rem;
}
@media (max-width: 750px) {
.under-header {
margin-left: 1.25rem;
}
}
.no-header {
border-radius: 1rem;
}
.two-col {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
.two-col > * {
place-self: start center;
}
@media (max-width: 950px) {
.two-col {
grid-template-columns: 1fr;
}
}
/* top nav */
nav {
position: relative;
margin: 0 auto 1.5rem;
display: grid;
grid-template: "logo nav";
grid-template-rows: 7rem;
grid-template-columns: 7rem auto;
background-image: url("/greenhouse.jpg");
background-size: cover;
background-repeat: no-repeat;
border-radius: 2rem .25rem .25rem 2rem;
}
nav a {
margin: 0;
}
nav a:not(:has(img)) {
display: inline-block;
text-decoration: none;
font-size: 1.2rem;
padding: 0 .25rem;
border: solid .125rem var(--color-accent);
border-radius: .25rem;
background-color: var(--color-bg);
}
@media (any-hover: hover) {
nav a:not(:has(img)):hover {
color: var(--color-bg);
background-color: var(--color-text-alt);
border-color: var(--color-accent-flipped);
outline: .125rem solid var(--color-accent);
outline-offset: 0;
}
}
nav a:not(:has(img)):focus-visible {
outline: solid .125rem var(--color-accent);
outline-offset: .125rem;
}
#skip {
left: -999px;
position: absolute;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
z-index: -99;
}
#skip:focus-visible {
left: -6rem;
width: auto;
height: auto;
overflow: auto;
z-index: 999;
}
@media (max-width: 750px) {
#skip:focus-visible {
left: 5rem;
}
}
nav img {
max-height: 100%;
margin: 0;
border-radius: 2rem;
border: .2rem solid var(--color-accent);
}
@media (any-hover: hover) {
nav img:hover {
border-color: var(--color-accent-flipped);
outline-offset: 0;
outline: .2rem solid var(--color-accent);
}
}
nav a:has(img) {
grid-area: logo;
justify-self: start;
}
nav a:has(img):focus-visible {
border-radius: 2rem;
outline-offset: .2rem;
outline: .2rem solid var(--color-accent);
}
nav a:has(img):focus-visible img {
outline: none;
}
nav ul {
grid-area: nav;
display: flex;
justify-content: space-between;
align-items: flex-end;
flex-flow: column nowrap;
}
nav li {
list-style: none;
}
/* footer */
footer {
width: 95%;
margin: 0 auto;
padding: 1rem 0;
display: flex;
justify-content: center;
}
@media (max-width: 750px) {
footer {
flex-flow: column;
}
}
footer p {
background-color: var(--color-text);
color: var(--color-bg);
text-align: center;
font-size: .9rem;
padding: .25rem;
}
@media (min-width: 751px) {
footer p:nth-child(2)::before {
content: "● " / "";
}
footer p:nth-child(2)::after {
content: " ●" / "";
}
}
footer a {
color: var(--color-bg);
text-decoration-color: var(--color-accent-flipped);
}
footer a:focus-visible {
outline-color: var(--color-accent-flipped);
}</style>
<!-- JS -->
<script type="module"></script>
<!-- Font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Bellota:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" rel="stylesheet">
</head>
<body>
<div id="content">
<header>
<nav title="background image shows the peak of a dilapidated greenhouse in black and white">
<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">
<img src="/.11ty/image/?src=src%2Fimg%2Flogo.jpg&width=500&format=jpeg&via=transform" 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.'" loading="lazy" decoding="async" width="500" height="500">
</a>
<ul>
<li>
<a href="/about/" title="About the Beall Greenhouses">
ⓘ about
</a>
</li>
<li>
<a href="/events/" title="Events at the Beall Greenhouses">
🗓 events
</a>
</li>
<li>
<a href="/artists/" title="Artists in residence at the Beall Greenhouses">
🖌 artists
</a>
</li>
</ul>
</nav>
</header>
<main id="main">
<h1>Imbolc 2026 Celebration and Market at the Beall Greenhouses</h1>
<div class="two-col">
<div class="no-header">
<p>Join us to celebrate the returning of the light on
<time datetime="2026-01-31 10:00">Saturday, January 31st, 2026, 10am - 5pm</time>.</p>
<p>Find us in studios in the former cold storage facility at the old Beall Greenhouses —
<a href="https://maps.app.goo.gl/5p1NAArdjX4vaEgw9" target="_blank">18527 Beall Rd SW, Vashon, WA 98070</a>
— as well as Quartermaster Press, located directly back from the same parking lot.
</p>
<p>There will be a workshop on making your own Brigid's Cross, a traditional symbol of Imbolc, led by
<a href="#katt-rouse-riley">Katt Rouse-Riley.</a>
</p>
<p>Hot mulled cider (non-alcoholic) will be served. We'll also have a coffee vendor,
<a href="#gary-zenbellies">Gary of Zenbellies Coffee Co.</a></p>
</div>
<img src="/.11ty/image/?src=src%2Fimg%2Fevents%2F2026-imbolc%2Fflyer.jpg&width=1545&format=jpeg&via=transform" alt="a black and white flyer for the Imbolc event that reads: Imbolc Celebration and Market at the Beall Greenhouses. Crafting and art, open studios. It then lists the address, time, and website. The text is overlaid on a darkened image of a dilapidated greenhouse, and the site's hummingbird logo is inset." loading="lazy" decoding="async" width="1545" height="1999">
</div>
<h2>Artists and vendors</h2>
<ul id="artists">
<li id="gary-zenbellies" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Fgary-zenbellies.jpg&width=1200&format=jpeg&via=transform" alt="undefined Image 1 is Bag of ZenBellies coffee on the counter in front of a coffee station." loading="lazy" decoding="async" width="1200" height="1200">
</div>
<h3>Gary of Zenbellies Coffee Co.</h3>
<div class="description">
<p>I will be serving up delicious pour-overs of my hand-picked locally roasted coffee, honoring the rich flavor tradition of the Pacific Northwest.</p>
<ul>
<li>
<a href="https://www.zenbelliescoffeeco.com" target="_blank">
zenbelliescoffeeco.com
</a>
</li>
<li>
<a href="mailto:gary@zenbellies.com?subject=Beall%20Greenhouses%20Market" target="_blank">
email Gary
</a>
</li>
<li>
<a href="https://www.instagram.com/zenbelliescoffeeco" target="_blank">
zenbelliescoffeeco on instagram
</a>
</li>
</ul>
</div>
</li>
<li id="lee-cattarin" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Flee-cattarin.jpg&width=2000&format=jpeg&via=transform" alt="undefined Image 1 is a four picture collage. two pictures show lee, a white person with curly hair and glasses; in one picture, wearing a colorful knit shawl. the other two frames show lee&#39;s work. 1, two leather card wallets with an elegant swoop on the back in vivid colors of leather; 2, a pile of greeting cards with a block-printed loon spread across front and back of the cards." loading="lazy" decoding="async" width="2000" height="2000">
</div>
<h3>Lee Cattarin</h3>
<div class="description">
<p>multidisciplinary artist and birder</p>
<ul>
<li>
<a href="https://leecat.art" target="_blank">
leecat.art
</a>
</li>
</ul>
</div>
</li>
<li id="katt-rouse-riley" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Fkatt-rouse-riley.jpg&width=1200&format=jpeg&via=transform" alt="a 2 picture collage. Image 1 is A young woman standing in the trees with blue hair, red glasses, and a rainbow shirt. She is looking very thoughtful. Image 2 is A hand holding a three point weaving of green reeds against an old red building" loading="lazy" decoding="async" width="1200" height="2100">
</div>
<h3>Katt Rouse-Riley</h3>
<div class="description">
<p>Katt Rouse-Riley hails from Arizona and developed her eclectic tastes from growing up all over the US, finally landing on Vashon Island with her family in 2012. Katt has had the chance to study religions of many forms, becoming what she would recognize to be Wicca 33 years ago. She is a Priestess that has performed marriages and found an affinity to using nature in her practice and art. She has led some Earth Art classes, and looks forward to doing so again.</p>
<p>Katt will have materials on hand to make your own Brigid&#39;s cross!</p>
<p>Come learn a little bit about Imbolc, the Goddess Brigid, and take home this beautiful symbol crafted by your own hands.</p>
<ul>
<li>
<a href="mailto:beallgreenhouses@gmail.com?subject=Beall%20Greenhouses%20Market%20-%20Katt" target="_blank">
email Katt
</a>
</li>
</ul>
</div>
</li>
<li id="rachael-osborn" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Frachael-osborn.jpg&width=1331&format=jpeg&via=transform" alt="a 5 picture collage. Image 1 is Photogravure print of a sunflower with watercolor. Image 2 is Linocut print of coffee cups on a table, with the words good trouble shown on the wall above. Image 3 is Fused glass garden art, a light filtering rectangle composed of multicolored blue and yellow stripes. Image 4 is Red ornamented fused glass sushi plate with two matching condiment plates. Image 5 is Mint green fused glass shallow bowl with dotted ornament." loading="lazy" decoding="async" width="1331" height="1200">
</div>
<h3>Rachael Osborn</h3>
<div class="description">
<p>Rachael will be selling hand-pulled prints and glasswork at the Quartermaster Press Studio at Beall Greenhouses.</p>
<ul>
<li>
<a href="mailto:rachaelosbornart@gmail.com?subject=Beall%20Greenhouses%20Market" target="_blank">
email Rachael
</a>
</li>
</ul>
</div>
</li>
<li id="mags-mcginnis" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Fmags-mcginnis.jpg&width=1197&format=jpeg&via=transform" alt="a 3 picture collage. Image 1 is A small piece of wood covered in dried lichen and moss, with what appears to be glass like white mushrooms. The stems of the mushrooms are created over wire fairy lights. When lit, the caps emit a warm magical light. Sculpture embellished with locally gathered acorns and eucalyptus seeds. Image 2 is An older white person with long green and light brown hair and bangs. They are looking looking sideways with a slight smile. Image 3 is This golden yellow satin dress is mounted on a wooden base and dress form that lights from inside. Constructed from several dresses and embellished with vintage hand dyed ribbon and mulberry paper leaves in different shades of green. The bodice is fitted in trimmed in ribbon. The skirt is filled out with a handmade crinoline under skirt. Excluding the wings made of skeletonized leaves, this fantasy dress on the stand is about 12 inches tall." loading="lazy" decoding="async" width="1197" height="1633">
</div>
<h3>Mags McGinnis</h3>
<div class="description">
<p>I&#39;ve been collecting bits and bobs and tiny shiny things for many years. I make small odd little things out of found objects, embellished with things from my collection. This market I will also be offering bathing salts (pre-made or mix your own) in the spirit of Imbolc and spring cleaning.</p>
<ul>
<li>
<a href="https://www.instagram.com/worldsinsideworlds/" target="_blank">
worldsinsideworlds on instagram
</a>
</li>
</ul>
</div>
</li>
<li id="logan-price" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Flogan-price.jpg&width=1199&format=jpeg&via=transform" alt="a 5 picture collage. Image 1 is moon jellyfish on dark background. Image 2 is Spruce trees in mist. Image 3 is Opalescent nudibranch. Image 4 is Salmon troller in front of alaskan volcano. Image 5 is Underwater photo of bull kelp." loading="lazy" decoding="async" width="1199" height="615">
</div>
<h3>Logan Price Photography</h3>
<div class="description">
<p>Unique underwater photographs of local northwest sea creatures taken while freediving, and stunning large format land-and-seascapes from Southeast Alaska.</p>
<ul>
<li>
<a href="https://www.anthozote.com" target="_blank">
anthozote.com
</a>
</li>
<li>
<a href="https://www.instagram.com/anthozote/" target="_blank">
anthozote on instagram
</a>
</li>
<li>
<a href="https://www.tiktok.com/@anthozote" target="_blank">
anthozote on tiktok
</a>
</li>
</ul>
</div>
</li>
<li id="jon-haaland" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Fjon-haaland.jpg&width=1199&format=jpeg&via=transform" alt="a 2 picture collage. Image 1 is Cast from concrete and shaped by intention, these votive candle holders evoke post-industrial rubble, as if salvaged from the ruins of a failed civilization. Their fractured forms and raw textures suggest remnants of structures once built for permanence, now repurposed to hold light. Each piece bears subtle fire-kissed colorations, with scorched tones and darkened edges that hint at having endured extreme heat. Traces of rust emerge like archaeological evidence, reinforcing the sense of age, collapse, and survival. Together, they transform ruin into ritual, offering a quiet promise of illumination and renewal. Image 2 is Mithran is a small-batch, dual-extracted mushroom tonic made from foraged Red Belted Conk (Fomitopsis pinicola) and Artists Conk (Ganoderma applanatum). Using both alcohol and water extraction, it captures a wide range of traditionally valued compounds, including polysaccharides, triterpenes, phenolics, and bitter terpenoids. Mithran has a long history of folk use for supporting inflammation balance, immune function, digestion, and liver health. Research on these conks shows antioxidant activity and alcohol-soluble compounds with activity against cancer cells and tumor growth in laboratory settings." loading="lazy" decoding="async" width="1199" height="533">
</div>
<h3>Jon Haaland</h3>
<div class="description">
<p>Jon Haaland is a mixed media artist, photographer and designer hailing from the Pacific Northwest. With an innate passion for blending mediums and exploring the interplay between man and nature, Jon draws his inspiration from the intrinsic harmony of nature and the pressures of man. Through his mixed media creations, he intertwines natural elements constructing a unique narrative that speaks to the deep interplay between civilization and the environment.</p>
<ul>
<li>
<a href="https://jonhaalandart.com" target="_blank">
jonhaalandart.com
</a>
</li>
<li>
<a href="mailto:jonhaalandart@gmail.com?subject=Beall%20Greenhouses%20Market" target="_blank">
email Jon
</a>
</li>
<li>
<a href="https://www.instagram.com/jonhaalandart/" target="_blank">
jonhaalandart on instagram
</a>
</li>
</ul>
</div>
</li>
<li id="steve-rocketkar" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Fsteve-rocketkar.jpg&width=1200&format=jpeg&via=transform" alt="a 5 picture collage. Image 1 is A woman smiling in front of a backdrop while holding her red glasses Image 2 is A man in a suit with microphone in front of a las vegas backdrop Image 3 is A smiling woman in a blue business suit Image 4 is A young woman in a hat sweater wearing pink pastel goth style Image 5 is A young man holding a guitar in front of several road cases" loading="lazy" decoding="async" width="1200" height="1200">
</div>
<h3>Steve Rocketkar</h3>
<div class="description">
<p>Steve Rocketkar is a journalist turned designer turned photographer living and working on Vashon Island. His photo and video practice, Rocketkar Studios, seeks to help each person be seen the way they want to be seen. This market he&#39;ll be offering headshot mini photo sessions for the new year, as well as in-person specials on Valentine&#39;s Day couples&#39; sessions.</p>
<ul>
<li>
<a href="https://www.rocketkar.com" target="_blank">
rocketkar.com
</a>
</li>
<li>
<a href="https://instagram.com/rocketkarstudios" target="_blank">
rocketkarstudios on instagram
</a>
</li>
</ul>
</div>
</li>
<li id="hope-black" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Fhope-black.jpg&width=3832&format=jpeg&via=transform" alt="undefined Image 1 is 3 picture collage of a white brunette woman. in picture one, she sits on a tall stool with her leg pulled up, holding paintbrushes. in picture 2 she stares at the camera with chanterelles held up to her ears. picture 3, she aims a camera at the camera." loading="lazy" decoding="async" width="3832" height="1460">
</div>
<h3>Hope Black</h3>
<div class="description">
<p>Hope Black is a conceptual portrait photographer and multi-media artist based on Vashon Island, WA. Her work blends fine-art portraiture with macabre photo editing, and she draws on mixed-media illustrations, varied textures, and found-objects to create portraits and paintings that feel symbolic and dream-like. Her images echo the archetypes found in the tarot and the emotional undercurrents of womanhood -- inviting viewers into a world that is both haunting and deeply human.</p>
<ul>
<li>
<a href="https://hopeblack.photo" target="_blank">
hopeblack.photo
</a>
</li>
</ul>
</div>
</li>
<li id="jennifer-hawke" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Fjennifer-hawke.jpg&width=1252&format=jpeg&via=transform" alt="a 5 picture collage. Image 1 is A green feather emerging from cracked earth, curled in a spiral. Image 2 is Two crane figures with their beaks meeting in the middle where a large circle is suspended in the air. The sky behind it is stormy and full of clouds. The hill they are standing on has a large crack running down the center, with ancient carved stone animal heads around the crack. Image 3 is A vintage map of the Bremerton area. Super imposed throughout the map is a sacred geometry pattern called the Flower of Life. A red Octopus is emerging from the pattern. Image 4 is A bear curled up in a ball with its paw over its eyes. The ground is covered in snow and there are bird tracks in between stones poking out. In the sky above, there is a comet amongst the stars. Image 5 is A vintage map of the Bremerton area. Super imposed throughout the map is a sacred geometry pattern called the Flower of Life. A Dungeness crab is emerging from the pattern." loading="lazy" decoding="async" width="1252" height="1667">
</div>
<h3>Jennifer Hawke</h3>
<div class="description">
<p>Jennifer Hawke came to Vashon Island about 20 years ago from Billings, Montana.</p>
<p>Hawke has a studio at the Beall Greenhouses, and has participated in the Vashon Studio Tour for the last four seasons. They also paint large Sacred Geometry installations on the road during the First Friday Art Walks in the summer months.</p>
<p>Hawke has a degree in Painting and Cast Metals from Montana State University, but they work in many different mediums. Their primary studio work is assemblage using vintage detritus and beach trash.</p>
<p>You may also know Hawke through the Bearded Lady Road Reports, a live broadcast on Facebook dedicated to reporting on road conditions during inclement weather.</p>
<ul>
<li>
<a href="https://www.instagram.com/jenniferhawkestudio" target="_blank">
jenniferhawkestudio on instagram
</a>
</li>
<li>
<a href="https://www.facebook.com/pugetsoundgypsy" target="_blank">
Jennifer Hawke on facebook
</a>
</li>
<li>
<a href="https://www.instagram.com/montana_hawke" target="_blank">
montana_hawke on instagram
</a>
</li>
</ul>
</div>
</li>
<li id="julie-shannon" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Fjulie-shannon.jpg&width=1200&format=jpeg&via=transform" alt="a 2 picture collage. Image 1 is Hand spun yard in beautiful spring hues, marled. Image 2 is knitting made from hand spun yarn." loading="lazy" decoding="async" width="1200" height="768">
</div>
<h3>Julie Shannon</h3>
<div class="description">
<p>Hand-dyed and hand-spun yarns, rustic soaps, spa cloths, and Julie&#39;s Amazing Sweet &#39;n Sassy Nuts.</p>
<ul>
<li>
<a href="mailto:shannon.julie@gmail.com?subject=Beall%20Greenhouses%20Market" target="_blank">
email Julie
</a>
</li>
<li>
<a href="tel:2063534664" target="_blank">
call or text Julie
</a>
</li>
<li>
<a href="https://www.threads.com/@joypup98070" target="_blank">
Julie Shannon on threads
</a>
</li>
</ul>
</div>
</li>
<li id="christina-nichols" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Fchristina-nichols.jpg&width=1200&format=jpeg&via=transform" alt="a 5 picture collage. Image 1 is “Paradise Dreams” Egret by the ocean under a tree. Collagraph. Image 2 is “Chachalaca Morning” Chachalaca bird sitting on a tree branch. Collagraph. Image 3 is “Winters Flock” Bare trees in a field with crows flying. Collagraph. Image 4 is “The Meeting” A crow and doves are having a meeting at an old oak tree. Etching. Image 5 is “Misty Mourning” Bare trees with morning sun and autumn leaves on the ground. Monotype." loading="lazy" decoding="async" width="1200" height="1172">
</div>
<h3>Christina Nichols</h3>
<div class="description">
<p>I have been a professional artist for 40 years, living on Vashon Island in the Pacific Northwest.</p>
<p>My work is mostly inspired by nature. I also like to mix modern and ancient sources in an attempt to elicit images of the collective unconscious.</p>
<p>I currently like to use many hand-pulled printing processes, for example—etchings, collagraphs, monoprints and linoleum block prints. I have been a member of Quartermaster Press at Beall Greenhouses since 2011.</p>
<ul>
<li>
<a href="mailto:christinanicholsart@yahoo.com?subject=Beall%20Greenhouses%20Market" target="_blank">
email Christina
</a>
</li>
<li>
<a href="https://www.facebook.com/christina.nichols.9849" target="_blank">
Christina Nichols on facebook
</a>
</li>
<li>
<a href="https://www.instagram.com/christinanicholsart/" target="_blank">
christinanicholsart on instagram
</a>
</li>
</ul>
</div>
</li>
<li id="brooke-osment" class="artist">
<div class="fit-contain">
<img src="/.11ty/image/?src=src%2Fimg%2Fartists%2Fbrooke-osment.jpg&width=3000&format=jpeg&via=transform" alt="undefined Image 1 is a triptych of photos of the artist wearing jackets of her own creation. the first jacket is orange and teal wool with a stag graphic appliqued onto the back panel. the second jacket is a woody green leather jacket with fur collar accent, snap epaulettes, and a front lapel detail created from colorful angular leather scraps. the third is a white denim jacket with a central linocut patch stitched in place with intricate topwork and embroidery. pink silk accents, flower details, and direct print work frame the central piece." loading="lazy" decoding="async" width="3000" height="2000">
</div>
<h3>Brooke Osment</h3>
<div class="description">
<p>found art jackets, stitchwork, visible mending</p>
<ul>
<li>
<a href="mailto:bsosment@gmail.com?subject=Beall%20Greenhouses%20Market" target="_blank">
email Brooke
</a>
</li>
</ul>
</div>
</li>
</ul>
</main>
</div>
<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>
<!-- This page `/events/2026-imbolc/` was built on 2026-03-31T20:35:34.275Z -->
</body>
</html>

509
_live/events/index.html Normal file
View File

@ -0,0 +1,509 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Events at the Beall Greenhouses | the historic Beall Greenhouses</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<!-- Meta -->
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="canonical" href="/">
<meta name="description" content="the historic Beall Greenhouses">
<meta name="robots" content="index,follow">
<meta property="og:title" content="Events at the Beall Greenhouses | the historic Beall Greenhouses">
<meta property="og:type" content="article">
<meta property="og:url" content="/">
<meta property="og:description" content="the historic Beall Greenhouses">
<meta property="og:image" content="/assets/img/logo.jpg">
<meta property="og:image:alt" content="block print in black and orange of a rufous hummingbird in flight with tail flared. the hummingbird holds a banner that reads 'become ungovernable.'">
<meta name="generator" content="Eleventy v3.1.5">
<!-- CSS -->
<style>#directory {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 3rem;
margin: 0 .5rem;
}
@media (max-width: 1050px) {
#directory {
grid-template-columns: 1fr;
}
}
ul#directory,
ol#directory {
background-color: var(--color-bg);
padding: 0;
}
#directory li {
list-style: none;
border: solid .25rem var(--color-accent);
border-radius: .75rem;
outline-offset: .25rem;
margin: 0;
padding: 0;
}
@media (any-hover: hover) {
#directory li:hover {
background-color: var(--color-text);
}
#directory li:hover h2 {
color: var(--color-bg);
border-color: var(--color-accent-flipped);
}
}
#directory li:focus-within {
outline: solid .25rem var(--color-accent);
}
#directory a {
text-decoration: none;
margin: 0;
}
#directory a:focus-visible {
outline: none; /* outline handled by li:focus-within */
}
#directory h2 {
text-align: center;
margin-top: 1rem;
}
#directory img {
margin: 0;
border-radius: 0 0 .5rem .5rem;
}
:root {
color-scheme: light dark;
--color-concrete: #e5e0c7;
--color-concrete-alt: #d1cbab;
--color-green: #142b15;
--color-green-alt: #1a3b1b;
--color-teal-light: #4ba19e;
--color-teal-dark: #0c6a74;
--color-bg: light-dark(var(--color-concrete), var(--color-green));
--color-text: light-dark(var(--color-green), var(--color-concrete));
--color-bg-alt: light-dark(var(--color-concrete-alt), var(--color-green-alt));
--color-text-alt: light-dark(var(--color-green-alt), var(--color-concrete-alt));
--color-accent: light-dark(var(--color-teal-dark), var(--color-teal-light));
--color-accent-flipped: light-dark(var(--color-teal-light), var(--color-teal-dark));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: var(--color-text);
color: var(--color-bg);
display: flex;
flex-direction: column;
font-family: Arial, Helvetica, sans-serif;
min-height: 100vh;
}
#content {
background-color: var(--color-bg);
color: var(--color-text);
width: 100%;
flex-grow: 1;
border-radius: 0 0 2rem 2rem;
padding: 1rem 0 2rem;
}
@media (prefers-color-scheme: light) {
.dark-mode {
display: none;
}
}
@media (prefers-color-scheme: dark) {
.light-mode {
display: none;
}
}
header,
main {
width: 65%;
margin: 0 auto 1rem;
}
@media (max-width: 750px) {
header,
main {
width: 92%;
}
}
@media (min-width: 2000px) {
header,
main {
width: 45%;
}
}
img {
display: block;
max-width: 100%;
height: auto;
}
h1, h2, h3, h4, h5, h6 {
color: var(--color-text-alt);
}
h1,
h2 {
font-family: 'Bellota', Arial, Helvetica, sans-serif;
}
h1 {
text-align: center;
margin: 2rem 0;
font-size: 2.2rem;
}
h2 {
margin: 2rem 0 0;
font-size: 1.65rem;
}
h2,
h3 {
border-bottom: .25rem solid var(--color-accent);
}
a {
color: var(--color-text);
font-weight: bold;
text-decoration: underline;
text-decoration-style: solid;
text-decoration-thickness: .25rem;
text-decoration-color: var(--color-accent);
transition: text-decoration-thickness .5s;
border-radius: .1rem;
outline-offset: .1rem;
}
a:hover,
a:active {
text-decoration-thickness: .5rem;
}
a:focus-visible {
text-decoration: none;
outline: solid .25rem var(--color-accent);
}
main p,
main ul {
padding: .8rem;
line-height: 1.5rem;
}
main li {
margin-left: 1rem;
}
main li:not(:last-child) {
padding: 0 0 .5rem;
}
/* styles for sets of <p>s under an h2/3/etc vs alone
this is done as a class rather than just h2 + p to accomodate
for multi-<p> segments which can then be wrapped in <div>s */
.under-header,
.no-header {
background-color: var(--color-bg-alt);
}
.under-header {
border-radius: 0 0 1rem 1rem;
margin-left: 2.5rem;
}
@media (max-width: 750px) {
.under-header {
margin-left: 1.25rem;
}
}
.no-header {
border-radius: 1rem;
}
.two-col {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
.two-col > * {
place-self: start center;
}
@media (max-width: 950px) {
.two-col {
grid-template-columns: 1fr;
}
}
/* top nav */
nav {
position: relative;
margin: 0 auto 1.5rem;
display: grid;
grid-template: "logo nav";
grid-template-rows: 7rem;
grid-template-columns: 7rem auto;
background-image: url("/greenhouse.jpg");
background-size: cover;
background-repeat: no-repeat;
border-radius: 2rem .25rem .25rem 2rem;
}
nav a {
margin: 0;
}
nav a:not(:has(img)) {
display: inline-block;
text-decoration: none;
font-size: 1.2rem;
padding: 0 .25rem;
border: solid .125rem var(--color-accent);
border-radius: .25rem;
background-color: var(--color-bg);
}
@media (any-hover: hover) {
nav a:not(:has(img)):hover {
color: var(--color-bg);
background-color: var(--color-text-alt);
border-color: var(--color-accent-flipped);
outline: .125rem solid var(--color-accent);
outline-offset: 0;
}
}
nav a:not(:has(img)):focus-visible {
outline: solid .125rem var(--color-accent);
outline-offset: .125rem;
}
#skip {
left: -999px;
position: absolute;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
z-index: -99;
}
#skip:focus-visible {
left: -6rem;
width: auto;
height: auto;
overflow: auto;
z-index: 999;
}
@media (max-width: 750px) {
#skip:focus-visible {
left: 5rem;
}
}
nav img {
max-height: 100%;
margin: 0;
border-radius: 2rem;
border: .2rem solid var(--color-accent);
}
@media (any-hover: hover) {
nav img:hover {
border-color: var(--color-accent-flipped);
outline-offset: 0;
outline: .2rem solid var(--color-accent);
}
}
nav a:has(img) {
grid-area: logo;
justify-self: start;
}
nav a:has(img):focus-visible {
border-radius: 2rem;
outline-offset: .2rem;
outline: .2rem solid var(--color-accent);
}
nav a:has(img):focus-visible img {
outline: none;
}
nav ul {
grid-area: nav;
display: flex;
justify-content: space-between;
align-items: flex-end;
flex-flow: column nowrap;
}
nav li {
list-style: none;
}
/* footer */
footer {
width: 95%;
margin: 0 auto;
padding: 1rem 0;
display: flex;
justify-content: center;
}
@media (max-width: 750px) {
footer {
flex-flow: column;
}
}
footer p {
background-color: var(--color-text);
color: var(--color-bg);
text-align: center;
font-size: .9rem;
padding: .25rem;
}
@media (min-width: 751px) {
footer p:nth-child(2)::before {
content: "● " / "";
}
footer p:nth-child(2)::after {
content: " ●" / "";
}
}
footer a {
color: var(--color-bg);
text-decoration-color: var(--color-accent-flipped);
}
footer a:focus-visible {
outline-color: var(--color-accent-flipped);
}</style>
<!-- JS -->
<script type="module"></script>
<!-- Font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Bellota:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" rel="stylesheet">
</head>
<body>
<div id="content">
<header>
<nav title="background image shows the peak of a dilapidated greenhouse in black and white">
<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">
<img src="/.11ty/image/?src=src%2Fimg%2Flogo.jpg&width=500&format=jpeg&via=transform" 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.'" loading="lazy" decoding="async" width="500" height="500">
</a>
<ul>
<li>
<a href="/about/" title="About the Beall Greenhouses">
ⓘ about
</a>
</li>
<li>
<a href="/events/" title="Events at the Beall Greenhouses" aria-current="page">
🗓 events
</a>
</li>
<li>
<a href="/artists/" title="Artists in residence at the Beall Greenhouses">
🖌 artists
</a>
</li>
</ul>
</nav>
</header>
<main id="main">
<h1>Events at the Beall Greenhouses</h1>
<ol id="directory">
<li>
<a href="/events/2026-imbolc/">
<h2>2026 Imbolc</h2>
<img src="/.11ty/image/?src=src%2Fimg%2Fevents%2F2026-imbolc%2Fevent.jpg&width=1500&format=jpeg&via=transform" alt="part of the Imbolc 2026 market flyer. in the background, a greenhouse in black and white; in the foreground, text reading Celebration and Market at the Beall Greenhouses; Crafting and Art; Open Studios. inset in the lower left is the top of the site&#39;s logo, a hummingbird in flight." loading="lazy" decoding="async" width="1500" height="1000">
</a>
</li>
<li>
<a href="/events/2025-solstice/">
<h2>2025 Solstice</h2>
<img src="/.11ty/image/?src=src%2Fimg%2Fevents%2F2025-solstice%2Fevent.jpg&width=1500&format=jpeg&via=transform" alt="group photo of all eight artists of the Solstice 2025 market." loading="lazy" decoding="async" width="1500" height="1000">
</a>
</li>
</ol>
</main>
</div>
<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>
<!-- This page `/events/` was built on 2026-03-31T20:35:34.275Z -->
</body>
</html>

BIN
_live/favicon.ico Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

BIN
_live/greenhouse.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

489
_live/index.html Normal file
View File

@ -0,0 +1,489 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>The Beall Greenhouses | the historic Beall Greenhouses</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<!-- Meta -->
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="canonical" href="/">
<meta name="description" content="the historic Beall Greenhouses">
<meta name="robots" content="index,follow">
<meta property="og:title" content="The Beall Greenhouses | the historic Beall Greenhouses">
<meta property="og:type" content="article">
<meta property="og:url" content="/">
<meta property="og:description" content="the historic Beall Greenhouses">
<meta property="og:image" content="/assets/img/logo.jpg">
<meta property="og:image:alt" content="block print in black and orange of a rufous hummingbird in flight with tail flared. the hummingbird holds a banner that reads 'become ungovernable.'">
<meta name="generator" content="Eleventy v3.1.5">
<!-- CSS -->
<style>.ml-embedded {
margin: 4rem auto 2rem;
border-top: .25rem solid var(--color-accent);
}
.ml-embedded p {
padding: 0;
}
.ml-form-embedWrapper {
border-top-left-radius: 0 !important;
border-top-right-radius: 0 !important;
}
.ml-form-embedContent h4 {
font-family: 'Bellota', Arial, Helvetica, sans-serif !important;
}
#mlb2-37153427.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input:hover,
#mlb2-37153313.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input:hover {
border-color: var(--color-accent-flipped);
outline-offset: 0;
outline: .25rem solid var(--color-accent);
}
#mlb2-37153427.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input:focus-visible,
#mlb2-37153313.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input:focus-visible {
outline-offset: .25rem;
outline: solid .25rem var(--color-accent);
}
#mlb2-37153427.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:hover,
#mlb2-37153313.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:hover {
color: var(--color-text) !important;
}
#mlb2-37153427.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:focus-visible,
#mlb2-37153313.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:focus-visible {
outline-offset: .25rem;
outline: solid .25rem var(--color-accent);
}
:root {
color-scheme: light dark;
--color-concrete: #e5e0c7;
--color-concrete-alt: #d1cbab;
--color-green: #142b15;
--color-green-alt: #1a3b1b;
--color-teal-light: #4ba19e;
--color-teal-dark: #0c6a74;
--color-bg: light-dark(var(--color-concrete), var(--color-green));
--color-text: light-dark(var(--color-green), var(--color-concrete));
--color-bg-alt: light-dark(var(--color-concrete-alt), var(--color-green-alt));
--color-text-alt: light-dark(var(--color-green-alt), var(--color-concrete-alt));
--color-accent: light-dark(var(--color-teal-dark), var(--color-teal-light));
--color-accent-flipped: light-dark(var(--color-teal-light), var(--color-teal-dark));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: var(--color-text);
color: var(--color-bg);
display: flex;
flex-direction: column;
font-family: Arial, Helvetica, sans-serif;
min-height: 100vh;
}
#content {
background-color: var(--color-bg);
color: var(--color-text);
width: 100%;
flex-grow: 1;
border-radius: 0 0 2rem 2rem;
padding: 1rem 0 2rem;
}
@media (prefers-color-scheme: light) {
.dark-mode {
display: none;
}
}
@media (prefers-color-scheme: dark) {
.light-mode {
display: none;
}
}
header,
main {
width: 65%;
margin: 0 auto 1rem;
}
@media (max-width: 750px) {
header,
main {
width: 92%;
}
}
@media (min-width: 2000px) {
header,
main {
width: 45%;
}
}
img {
display: block;
max-width: 100%;
height: auto;
}
h1, h2, h3, h4, h5, h6 {
color: var(--color-text-alt);
}
h1,
h2 {
font-family: 'Bellota', Arial, Helvetica, sans-serif;
}
h1 {
text-align: center;
margin: 2rem 0;
font-size: 2.2rem;
}
h2 {
margin: 2rem 0 0;
font-size: 1.65rem;
}
h2,
h3 {
border-bottom: .25rem solid var(--color-accent);
}
a {
color: var(--color-text);
font-weight: bold;
text-decoration: underline;
text-decoration-style: solid;
text-decoration-thickness: .25rem;
text-decoration-color: var(--color-accent);
transition: text-decoration-thickness .5s;
border-radius: .1rem;
outline-offset: .1rem;
}
a:hover,
a:active {
text-decoration-thickness: .5rem;
}
a:focus-visible {
text-decoration: none;
outline: solid .25rem var(--color-accent);
}
main p,
main ul {
padding: .8rem;
line-height: 1.5rem;
}
main li {
margin-left: 1rem;
}
main li:not(:last-child) {
padding: 0 0 .5rem;
}
/* styles for sets of <p>s under an h2/3/etc vs alone
this is done as a class rather than just h2 + p to accomodate
for multi-<p> segments which can then be wrapped in <div>s */
.under-header,
.no-header {
background-color: var(--color-bg-alt);
}
.under-header {
border-radius: 0 0 1rem 1rem;
margin-left: 2.5rem;
}
@media (max-width: 750px) {
.under-header {
margin-left: 1.25rem;
}
}
.no-header {
border-radius: 1rem;
}
.two-col {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
.two-col > * {
place-self: start center;
}
@media (max-width: 950px) {
.two-col {
grid-template-columns: 1fr;
}
}
/* top nav */
nav {
position: relative;
margin: 0 auto 1.5rem;
display: grid;
grid-template: "logo nav";
grid-template-rows: 7rem;
grid-template-columns: 7rem auto;
background-image: url("/greenhouse.jpg");
background-size: cover;
background-repeat: no-repeat;
border-radius: 2rem .25rem .25rem 2rem;
}
nav a {
margin: 0;
}
nav a:not(:has(img)) {
display: inline-block;
text-decoration: none;
font-size: 1.2rem;
padding: 0 .25rem;
border: solid .125rem var(--color-accent);
border-radius: .25rem;
background-color: var(--color-bg);
}
@media (any-hover: hover) {
nav a:not(:has(img)):hover {
color: var(--color-bg);
background-color: var(--color-text-alt);
border-color: var(--color-accent-flipped);
outline: .125rem solid var(--color-accent);
outline-offset: 0;
}
}
nav a:not(:has(img)):focus-visible {
outline: solid .125rem var(--color-accent);
outline-offset: .125rem;
}
#skip {
left: -999px;
position: absolute;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
z-index: -99;
}
#skip:focus-visible {
left: -6rem;
width: auto;
height: auto;
overflow: auto;
z-index: 999;
}
@media (max-width: 750px) {
#skip:focus-visible {
left: 5rem;
}
}
nav img {
max-height: 100%;
margin: 0;
border-radius: 2rem;
border: .2rem solid var(--color-accent);
}
@media (any-hover: hover) {
nav img:hover {
border-color: var(--color-accent-flipped);
outline-offset: 0;
outline: .2rem solid var(--color-accent);
}
}
nav a:has(img) {
grid-area: logo;
justify-self: start;
}
nav a:has(img):focus-visible {
border-radius: 2rem;
outline-offset: .2rem;
outline: .2rem solid var(--color-accent);
}
nav a:has(img):focus-visible img {
outline: none;
}
nav ul {
grid-area: nav;
display: flex;
justify-content: space-between;
align-items: flex-end;
flex-flow: column nowrap;
}
nav li {
list-style: none;
}
/* footer */
footer {
width: 95%;
margin: 0 auto;
padding: 1rem 0;
display: flex;
justify-content: center;
}
@media (max-width: 750px) {
footer {
flex-flow: column;
}
}
footer p {
background-color: var(--color-text);
color: var(--color-bg);
text-align: center;
font-size: .9rem;
padding: .25rem;
}
@media (min-width: 751px) {
footer p:nth-child(2)::before {
content: "● " / "";
}
footer p:nth-child(2)::after {
content: " ●" / "";
}
}
footer a {
color: var(--color-bg);
text-decoration-color: var(--color-accent-flipped);
}
footer a:focus-visible {
outline-color: var(--color-accent-flipped);
}</style>
<!-- JS -->
<script type="module">(function (w, d, e, u, f, l, n) {
w[f] = w[f] || function () {
(w[f].q = w[f].q || [])
.push(arguments);
}, l = d.createElement(e), l.async = 1, l.src = u,
n = d.getElementsByTagName(e)[0], n.parentNode.insertBefore(l, n);
})
(window, document, 'script', 'https://assets.mailerlite.com/js/universal.js', 'ml');
ml('account', '2012178');</script>
<!-- Font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Bellota:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" rel="stylesheet">
</head>
<body>
<div id="content">
<header>
<nav title="background image shows the peak of a dilapidated greenhouse in black and white">
<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" aria-current="page">
<img src="/.11ty/image/?src=src%2Fimg%2Flogo.jpg&width=500&format=jpeg&via=transform" 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.'" loading="lazy" decoding="async" width="500" height="500">
</a>
<ul>
<li>
<a href="/about/" title="About the Beall Greenhouses">
ⓘ about
</a>
</li>
<li>
<a href="/events/" title="Events at the Beall Greenhouses">
🗓 events
</a>
</li>
<li>
<a href="/artists/" title="Artists in residence at the Beall Greenhouses">
🖌 artists
</a>
</li>
</ul>
</nav>
</header>
<main id="main">
<h1>The Beall Greenhouses</h1>
<!-- MailerLite Universal -->
<!-- End MailerLite Universal -->
<h2>Imbolc creates community</h2>
<p class="under-header">Our <a href="/events/2026-imbolc">Imbolc
Celebration & Market</a> was fantastic.
Visitors could learn to make a Brigid's Cross, and dog photographs meant
an abundance of furry friends.</p>
<h2>A successful Solstice</h2>
<p class="under-header">Our inaugural <a href="/events/2025-solstice">Solstice Market</a> was a rousing
success.</p>
<div class="ml-embedded dark-mode" data-form="GyBKPM"></div>
<div class="ml-embedded light-mode" data-form="R9yvin"></div>
</main>
</div>
<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>
<!-- This page `/` was built on 2026-03-31T20:35:34.275Z -->
</body>
</html>

465
_live/palette/index.html Normal file
View File

@ -0,0 +1,465 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Site palette | the historic Beall Greenhouses</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<!-- Meta -->
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="canonical" href="/">
<meta name="description" content="the historic Beall Greenhouses">
<meta name="robots" content="index,follow">
<meta property="og:title" content="Site palette | the historic Beall Greenhouses">
<meta property="og:type" content="article">
<meta property="og:url" content="/">
<meta property="og:description" content="the historic Beall Greenhouses">
<meta property="og:image" content="/assets/img/logo.jpg">
<meta property="og:image:alt" content="block print in black and orange of a rufous hummingbird in flight with tail flared. the hummingbird holds a banner that reads 'become ungovernable.'">
<meta name="generator" content="Eleventy v3.1.5">
<!-- CSS -->
<style>.color p {
width: 50%;
margin: 1rem auto;
border: .25rem solid var(--color-text);
border-radius: 1rem;
text-align: center;
font-weight: bold;
}
@media (max-width: 550px) {
.color p {
width: 100%;
}
}
#concrete { background-color: var(--color-concrete); }
#concrete-alt { background-color: var(--color-concrete-alt); }
#green { background-color: var(--color-green); }
#green-alt { background-color: var(--color-green-alt); }
#teal-light {background-color: var(--color-teal-light); }
#teal-dark { background-color: var(--color-teal-dark); }
#concrete,
#concrete-alt,
#teal-light {
color: var(--color-green);
}
#green,
#green-alt,
#teal-dark {
color: var(--color-concrete);
}
:root {
color-scheme: light dark;
--color-concrete: #e5e0c7;
--color-concrete-alt: #d1cbab;
--color-green: #142b15;
--color-green-alt: #1a3b1b;
--color-teal-light: #4ba19e;
--color-teal-dark: #0c6a74;
--color-bg: light-dark(var(--color-concrete), var(--color-green));
--color-text: light-dark(var(--color-green), var(--color-concrete));
--color-bg-alt: light-dark(var(--color-concrete-alt), var(--color-green-alt));
--color-text-alt: light-dark(var(--color-green-alt), var(--color-concrete-alt));
--color-accent: light-dark(var(--color-teal-dark), var(--color-teal-light));
--color-accent-flipped: light-dark(var(--color-teal-light), var(--color-teal-dark));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: var(--color-text);
color: var(--color-bg);
display: flex;
flex-direction: column;
font-family: Arial, Helvetica, sans-serif;
min-height: 100vh;
}
#content {
background-color: var(--color-bg);
color: var(--color-text);
width: 100%;
flex-grow: 1;
border-radius: 0 0 2rem 2rem;
padding: 1rem 0 2rem;
}
@media (prefers-color-scheme: light) {
.dark-mode {
display: none;
}
}
@media (prefers-color-scheme: dark) {
.light-mode {
display: none;
}
}
header,
main {
width: 65%;
margin: 0 auto 1rem;
}
@media (max-width: 750px) {
header,
main {
width: 92%;
}
}
@media (min-width: 2000px) {
header,
main {
width: 45%;
}
}
img {
display: block;
max-width: 100%;
height: auto;
}
h1, h2, h3, h4, h5, h6 {
color: var(--color-text-alt);
}
h1,
h2 {
font-family: 'Bellota', Arial, Helvetica, sans-serif;
}
h1 {
text-align: center;
margin: 2rem 0;
font-size: 2.2rem;
}
h2 {
margin: 2rem 0 0;
font-size: 1.65rem;
}
h2,
h3 {
border-bottom: .25rem solid var(--color-accent);
}
a {
color: var(--color-text);
font-weight: bold;
text-decoration: underline;
text-decoration-style: solid;
text-decoration-thickness: .25rem;
text-decoration-color: var(--color-accent);
transition: text-decoration-thickness .5s;
border-radius: .1rem;
outline-offset: .1rem;
}
a:hover,
a:active {
text-decoration-thickness: .5rem;
}
a:focus-visible {
text-decoration: none;
outline: solid .25rem var(--color-accent);
}
main p,
main ul {
padding: .8rem;
line-height: 1.5rem;
}
main li {
margin-left: 1rem;
}
main li:not(:last-child) {
padding: 0 0 .5rem;
}
/* styles for sets of <p>s under an h2/3/etc vs alone
this is done as a class rather than just h2 + p to accomodate
for multi-<p> segments which can then be wrapped in <div>s */
.under-header,
.no-header {
background-color: var(--color-bg-alt);
}
.under-header {
border-radius: 0 0 1rem 1rem;
margin-left: 2.5rem;
}
@media (max-width: 750px) {
.under-header {
margin-left: 1.25rem;
}
}
.no-header {
border-radius: 1rem;
}
.two-col {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
.two-col > * {
place-self: start center;
}
@media (max-width: 950px) {
.two-col {
grid-template-columns: 1fr;
}
}
/* top nav */
nav {
position: relative;
margin: 0 auto 1.5rem;
display: grid;
grid-template: "logo nav";
grid-template-rows: 7rem;
grid-template-columns: 7rem auto;
background-image: url("/greenhouse.jpg");
background-size: cover;
background-repeat: no-repeat;
border-radius: 2rem .25rem .25rem 2rem;
}
nav a {
margin: 0;
}
nav a:not(:has(img)) {
display: inline-block;
text-decoration: none;
font-size: 1.2rem;
padding: 0 .25rem;
border: solid .125rem var(--color-accent);
border-radius: .25rem;
background-color: var(--color-bg);
}
@media (any-hover: hover) {
nav a:not(:has(img)):hover {
color: var(--color-bg);
background-color: var(--color-text-alt);
border-color: var(--color-accent-flipped);
outline: .125rem solid var(--color-accent);
outline-offset: 0;
}
}
nav a:not(:has(img)):focus-visible {
outline: solid .125rem var(--color-accent);
outline-offset: .125rem;
}
#skip {
left: -999px;
position: absolute;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
z-index: -99;
}
#skip:focus-visible {
left: -6rem;
width: auto;
height: auto;
overflow: auto;
z-index: 999;
}
@media (max-width: 750px) {
#skip:focus-visible {
left: 5rem;
}
}
nav img {
max-height: 100%;
margin: 0;
border-radius: 2rem;
border: .2rem solid var(--color-accent);
}
@media (any-hover: hover) {
nav img:hover {
border-color: var(--color-accent-flipped);
outline-offset: 0;
outline: .2rem solid var(--color-accent);
}
}
nav a:has(img) {
grid-area: logo;
justify-self: start;
}
nav a:has(img):focus-visible {
border-radius: 2rem;
outline-offset: .2rem;
outline: .2rem solid var(--color-accent);
}
nav a:has(img):focus-visible img {
outline: none;
}
nav ul {
grid-area: nav;
display: flex;
justify-content: space-between;
align-items: flex-end;
flex-flow: column nowrap;
}
nav li {
list-style: none;
}
/* footer */
footer {
width: 95%;
margin: 0 auto;
padding: 1rem 0;
display: flex;
justify-content: center;
}
@media (max-width: 750px) {
footer {
flex-flow: column;
}
}
footer p {
background-color: var(--color-text);
color: var(--color-bg);
text-align: center;
font-size: .9rem;
padding: .25rem;
}
@media (min-width: 751px) {
footer p:nth-child(2)::before {
content: "● " / "";
}
footer p:nth-child(2)::after {
content: " ●" / "";
}
}
footer a {
color: var(--color-bg);
text-decoration-color: var(--color-accent-flipped);
}
footer a:focus-visible {
outline-color: var(--color-accent-flipped);
}</style>
<!-- JS -->
<script type="module"></script>
<!-- Font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Bellota:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" rel="stylesheet">
</head>
<body>
<div id="content">
<header>
<nav title="background image shows the peak of a dilapidated greenhouse in black and white">
<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">
<img src="/.11ty/image/?src=src%2Fimg%2Flogo.jpg&width=500&format=jpeg&via=transform" 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.'" loading="lazy" decoding="async" width="500" height="500">
</a>
<ul>
<li>
<a href="/about/" title="About the Beall Greenhouses">
ⓘ about
</a>
</li>
<li>
<a href="/events/" title="Events at the Beall Greenhouses">
🗓 events
</a>
</li>
<li>
<a href="/artists/" title="Artists in residence at the Beall Greenhouses">
🖌 artists
</a>
</li>
</ul>
</nav>
</header>
<main id="main">
<h1>Site palette</h1>
<div class="color">
<p id="concrete">#e5e0c7</p>
<p id="concrete-alt">#d1cbab</p>
<p id="green">#142b15</p>
<p id="green-alt">#1a3b1b</p>
<p id="teal-light">#4ba19e</p>
<p id="teal-dark">#0c6a74</p>
</div>
</main>
</div>
<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>
<!-- This page `/palette/` was built on 2026-03-31T20:35:34.275Z -->
</body>
</html>

96
css/artist-market.css Normal file
View File

@ -0,0 +1,96 @@
.artist {
width: 100%;
margin: 2rem 0;
display: grid;
scroll-margin-top: 1rem;
}
.artist:nth-child(odd) {
grid-template:
'imgs h3'
'imgs desc'
'imgs .';
grid-template-columns: 45% auto;
}
.artist:nth-child(even) {
grid-template:
'h3 imgs'
'desc imgs'
'. imgs';
grid-template-columns: auto 45%;
}
@media (max-width: 950px) {
.artist:nth-child(n) {
grid-template:
'imgs'
'h3'
'desc';
}
}
.fit-contain {
object-fit: contain;
grid-area: imgs;
}
.artist img {
max-height: 100%;
max-width: 100%;
border-radius: 1rem;
}
@media (max-width: 950px) {
.artist img {
border-radius: 1rem 1rem 0 0;
border-bottom: .25rem solid var(--color-accent);
}
}
.artist h3 {
grid-area: h3;
text-transform: uppercase;
line-height: 2rem;
}
.artist:nth-child(odd) h3 {
padding-left: .5rem;
}
.artist:nth-child(even) h3 {
padding-right: .5rem;
text-align: right;
}
@media (max-width: 1050px) {
.artist:nth-child(n) h3 {
padding: 0;
}
}
.description {
grid-area: desc;
background-color: var(--color-bg-alt);
border-radius: 0 0 1rem 1rem;
}
.artist:nth-child(odd) .description {
margin-left: 1.75rem;
}
.artist:nth-child(even) .description {
margin-right: 1.75rem;
}
@media (max-width: 950px) {
.artist:nth-child(odd) .description,
.artist:nth-child(even) .description {
margin: 0;
}
}
.description p:last-child {
text-align: center;
padding-bottom: 1rem;
}

101
css/artist-resident.css Normal file
View File

@ -0,0 +1,101 @@
.topic {
margin: 4rem auto;
display: grid;
}
.topic:nth-child(odd) {
grid-template:
'img h'
'img desc'
'img .';
grid-template-columns: 45% auto;
}
.topic:nth-child(even) {
grid-template:
'h img'
'desc img'
'. img';
grid-template-columns: auto 45%;
}
@media (max-width: 950px) {
.topic:nth-child(odd),
.topic:nth-child(even) {
grid-template:
'img'
'h'
'desc';
}
}
.topic img {
grid-area: img;
border-radius: 1rem;
}
@media (max-width: 950px) {
.topic img {
border-radius: 1rem 1rem 0 0;
border-bottom: .25rem solid var(--color-accent);
}
}
.topic h1,
.topic h2 {
margin: 0;
grid-area: h;
border-bottom: .25rem solid var(--color-accent);
padding: .25rem;
}
.topic:nth-child(odd) h2 {
padding-left: .75rem;
}
.topic:nth-child(even) h2 {
text-align: right;
padding-right: .75rem;
}
@media (max-width: 950px) {
.topic:nth-child(odd) h2,
.topic:nth-child(even) h2 {
padding: .25rem 0;
}
}
.topic .desc {
grid-area: desc;
background-color: var(--color-bg-alt);
border-radius: 0 0 1rem 1rem;
}
.topic:nth-child(odd) .desc {
margin-left: 1.5rem;
}
.topic:nth-child(even) .desc {
margin-right: 1.5rem;
}
@media (max-width: 950px) {
.topic:nth-child(odd) .desc,
.topic:nth-child(even) .desc {
margin: 0;
}
}
.contact ul {
background-color: var(--color-bg-alt);
border-radius: 0 0 1rem 1rem;
}
.contact {
margin-top: 4rem;
text-align: center;
}
.contact li {
list-style: none;
}

61
css/directory.css Normal file
View File

@ -0,0 +1,61 @@
#directory {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 3rem;
margin: 0 .5rem;
}
@media (max-width: 1050px) {
#directory {
grid-template-columns: 1fr;
}
}
ul#directory,
ol#directory {
background-color: var(--color-bg);
padding: 0;
}
#directory li {
list-style: none;
border: solid .25rem var(--color-accent);
border-radius: .75rem;
outline-offset: .25rem;
margin: 0;
padding: 0;
}
@media (any-hover: hover) {
#directory li:hover {
background-color: var(--color-text);
}
#directory li:hover h2 {
color: var(--color-bg);
border-color: var(--color-accent-flipped);
}
}
#directory li:focus-within {
outline: solid .25rem var(--color-accent);
}
#directory a {
text-decoration: none;
margin: 0;
}
#directory a:focus-visible {
outline: none; /* outline handled by li:focus-within */
}
#directory h2 {
text-align: center;
margin-top: 1rem;
}
#directory img {
margin: 0;
border-radius: 0 0 .5rem .5rem;
}

179
css/main.css Normal file
View File

@ -0,0 +1,179 @@
:root {
color-scheme: light dark;
--color-concrete: #e5e0c7;
--color-concrete-alt: #d1cbab;
--color-green: #142b15;
--color-green-alt: #1a3b1b;
--color-teal-light: #4ba19e;
--color-teal-dark: #0c6a74;
--color-bg: light-dark(var(--color-concrete), var(--color-green));
--color-text: light-dark(var(--color-green), var(--color-concrete));
--color-bg-alt: light-dark(var(--color-concrete-alt), var(--color-green-alt));
--color-text-alt: light-dark(var(--color-green-alt), var(--color-concrete-alt));
--color-accent: light-dark(var(--color-teal-dark), var(--color-teal-light));
--color-accent-flipped: light-dark(var(--color-teal-light), var(--color-teal-dark));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: var(--color-text);
color: var(--color-bg);
display: flex;
flex-direction: column;
font-family: Arial, Helvetica, sans-serif;
min-height: 100vh;
}
#content {
background-color: var(--color-bg);
color: var(--color-text);
width: 100%;
flex-grow: 1;
border-radius: 0 0 2rem 2rem;
padding: 1rem 0 2rem;
}
@media (prefers-color-scheme: light) {
.dark-mode {
display: none;
}
}
@media (prefers-color-scheme: dark) {
.light-mode {
display: none;
}
}
header,
main {
width: 65%;
margin: 0 auto 1rem;
}
@media (max-width: 750px) {
header,
main {
width: 92%;
}
}
@media (min-width: 2000px) {
header,
main {
width: 45%;
}
}
img {
display: block;
max-width: 100%;
height: auto;
}
h1, h2, h3, h4, h5, h6 {
color: var(--color-text-alt);
}
h1,
h2 {
font-family: 'Bellota', Arial, Helvetica, sans-serif;
}
h1 {
text-align: center;
margin: 2rem 0;
font-size: 2.2rem;
}
h2 {
margin: 2rem 0 0;
font-size: 1.65rem;
}
h2,
h3 {
border-bottom: .25rem solid var(--color-accent);
}
a {
color: var(--color-text);
font-weight: bold;
text-decoration: underline;
text-decoration-style: solid;
text-decoration-thickness: .25rem;
text-decoration-color: var(--color-accent);
transition: text-decoration-thickness .5s;
border-radius: .1rem;
outline-offset: .1rem;
}
a:hover,
a:active {
text-decoration-thickness: .5rem;
}
a:focus-visible {
text-decoration: none;
outline: solid .25rem var(--color-accent);
}
main p,
main ul {
padding: .8rem;
line-height: 1.5rem;
}
main li {
margin-left: 1rem;
}
main li:not(:last-child) {
padding: 0 0 .5rem;
}
/* styles for sets of <p>s under an h2/3/etc vs alone
this is done as a class rather than just h2 + p to accomodate
for multi-<p> segments which can then be wrapped in <div>s */
.under-header,
.no-header {
background-color: var(--color-bg-alt);
}
.under-header {
border-radius: 0 0 1rem 1rem;
margin-left: 2.5rem;
}
@media (max-width: 750px) {
.under-header {
margin-left: 1.25rem;
}
}
.no-header {
border-radius: 1rem;
}
.two-col {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
.two-col > * {
place-self: start center;
}
@media (max-width: 950px) {
.two-col {
grid-template-columns: 1fr;
}
}

41
css/ml-embed.css Normal file
View File

@ -0,0 +1,41 @@
.ml-embedded {
margin: 4rem auto 2rem;
border-top: .25rem solid var(--color-accent);
}
.ml-embedded p {
padding: 0;
}
.ml-form-embedWrapper {
border-top-left-radius: 0 !important;
border-top-right-radius: 0 !important;
}
.ml-form-embedContent h4 {
font-family: 'Bellota', Arial, Helvetica, sans-serif !important;
}
#mlb2-37153427.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input:hover,
#mlb2-37153313.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input:hover {
border-color: var(--color-accent-flipped);
outline-offset: 0;
outline: .25rem solid var(--color-accent);
}
#mlb2-37153427.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input:focus-visible,
#mlb2-37153313.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input:focus-visible {
outline-offset: .25rem;
outline: solid .25rem var(--color-accent);
}
#mlb2-37153427.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:hover,
#mlb2-37153313.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:hover {
color: var(--color-text) !important;
}
#mlb2-37153427.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:focus-visible,
#mlb2-37153313.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:focus-visible {
outline-offset: .25rem;
outline: solid .25rem var(--color-accent);
}

149
css/nav.css Normal file
View File

@ -0,0 +1,149 @@
/* top nav */
nav {
position: relative;
margin: 0 auto 1.5rem;
display: grid;
grid-template: "logo nav";
grid-template-rows: 7rem;
grid-template-columns: 7rem auto;
background-image: url("/greenhouse.jpg");
background-size: cover;
background-repeat: no-repeat;
border-radius: 2rem .25rem .25rem 2rem;
}
nav a {
margin: 0;
}
nav a:not(:has(img)) {
display: inline-block;
text-decoration: none;
font-size: 1.2rem;
padding: 0 .25rem;
border: solid .125rem var(--color-accent);
border-radius: .25rem;
background-color: var(--color-bg);
}
@media (any-hover: hover) {
nav a:not(:has(img)):hover {
color: var(--color-bg);
background-color: var(--color-text-alt);
border-color: var(--color-accent-flipped);
outline: .125rem solid var(--color-accent);
outline-offset: 0;
}
}
nav a:not(:has(img)):focus-visible {
outline: solid .125rem var(--color-accent);
outline-offset: .125rem;
}
#skip {
left: -999px;
position: absolute;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
z-index: -99;
}
#skip:focus-visible {
left: -6rem;
width: auto;
height: auto;
overflow: auto;
z-index: 999;
}
@media (max-width: 750px) {
#skip:focus-visible {
left: 5rem;
}
}
nav img {
max-height: 100%;
margin: 0;
border-radius: 2rem;
border: .2rem solid var(--color-accent);
}
@media (any-hover: hover) {
nav img:hover {
border-color: var(--color-accent-flipped);
outline-offset: 0;
outline: .2rem solid var(--color-accent);
}
}
nav a:has(img) {
grid-area: logo;
justify-self: start;
}
nav a:has(img):focus-visible {
border-radius: 2rem;
outline-offset: .2rem;
outline: .2rem solid var(--color-accent);
}
nav a:has(img):focus-visible img {
outline: none;
}
nav ul {
grid-area: nav;
display: flex;
justify-content: space-between;
align-items: flex-end;
flex-flow: column nowrap;
}
nav li {
list-style: none;
}
/* footer */
footer {
width: 95%;
margin: 0 auto;
padding: 1rem 0;
display: flex;
justify-content: center;
}
@media (max-width: 750px) {
footer {
flex-flow: column;
}
}
footer p {
background-color: var(--color-text);
color: var(--color-bg);
text-align: center;
font-size: .9rem;
padding: .25rem;
}
@media (min-width: 751px) {
footer p:nth-child(2)::before {
content: "● " / "";
}
footer p:nth-child(2)::after {
content: " ●" / "";
}
}
footer a {
color: var(--color-bg);
text-decoration-color: var(--color-accent-flipped);
}
footer a:focus-visible {
outline-color: var(--color-accent-flipped);
}

33
css/palette.css Normal file
View File

@ -0,0 +1,33 @@
.color p {
width: 50%;
margin: 1rem auto;
border: .25rem solid var(--color-text);
border-radius: 1rem;
text-align: center;
font-weight: bold;
}
@media (max-width: 550px) {
.color p {
width: 100%;
}
}
#concrete { background-color: var(--color-concrete); }
#concrete-alt { background-color: var(--color-concrete-alt); }
#green { background-color: var(--color-green); }
#green-alt { background-color: var(--color-green-alt); }
#teal-light {background-color: var(--color-teal-light); }
#teal-dark { background-color: var(--color-teal-dark); }
#concrete,
#concrete-alt,
#teal-light {
color: var(--color-green);
}
#green,
#green-alt,
#teal-dark {
color: var(--color-concrete);
}

72
eleventy.config.js Normal file
View File

@ -0,0 +1,72 @@
import { attrs } from "@mdit/plugin-attrs";
import { eleventyImageTransformPlugin } from "@11ty/eleventy-img";
import eleventyNavigationPlugin from "@11ty/eleventy-navigation";
import pluginFilters from "./_config/filters.js";
export default async function(eleventyConfig) {
/* Markdown HTML attribute parsing */
eleventyConfig.amendLibrary("md", (mdLib) => mdLib.use(attrs));
/* Bundles */
/* CSS */
eleventyConfig.addBundle("css", {
toFileDirectory: "dist",
bundleHtmlContentFromSelector: "style",
});
/* Javascript */
eleventyConfig.addBundle("js", {
toFileDirectory: "dist",
bundleHtmlContentFromSelector: "script",
});
/* Passthroughs */
eleventyConfig
.addPassthroughCopy("./greenhouse.jpg")
.addPassthroughCopy("./favicon.ico");
/* Images */
eleventyConfig.addPlugin(eleventyImageTransformPlugin, {
// output image formats
formats: ["auto"],
// output image widths
widths: ["auto"],
// optional, attributes assigned on <img> nodes override these values
htmlOptions: {
imgAttributes: {
loading: "lazy",
decoding: "async",
},
},
});
/* Navigation */
eleventyConfig.addPlugin(eleventyNavigationPlugin);
/* All filters from _config/filters.js */
eleventyConfig.addPlugin(pluginFilters);
/* Shortcodes */
eleventyConfig.addShortcode("currentBuildDate", () => {
return (new Date()).toISOString();
});
/* Watch when serving */
eleventyConfig.addWatchTarget("css");
}
export const config = {
dir: {
input: "src",
includes: "../_includes",
layouts: "../_includes/layouts",
data: "../_data"
},
markdownTemplateEngine: "njk",
htmlTemplateEngine: "njk",
templateFormats: ["html", "md", "njk"],
};

BIN
favicon.ico Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

BIN
greenhouse.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

1
node_modules/.bin/acorn generated vendored Symbolic link
View File

@ -0,0 +1 @@
../acorn/bin/acorn

1
node_modules/.bin/eleventy generated vendored Symbolic link
View File

@ -0,0 +1 @@
../@11ty/eleventy/cmd.cjs

1
node_modules/.bin/eleventy-dev-server generated vendored Symbolic link
View File

@ -0,0 +1 @@
../@11ty/eleventy-dev-server/cmd.js

1
node_modules/.bin/errno generated vendored Symbolic link
View File

@ -0,0 +1 @@
../errno/cli.js

1
node_modules/.bin/esparse generated vendored Symbolic link
View File

@ -0,0 +1 @@
../esprima/bin/esparse.js

1
node_modules/.bin/esvalidate generated vendored Symbolic link
View File

@ -0,0 +1 @@
../esprima/bin/esvalidate.js

1
node_modules/.bin/image-size generated vendored Symbolic link
View File

@ -0,0 +1 @@
../image-size/bin/image-size.js

1
node_modules/.bin/js-yaml generated vendored Symbolic link
View File

@ -0,0 +1 @@
../js-yaml/bin/js-yaml.js

1
node_modules/.bin/liquid generated vendored Symbolic link
View File

@ -0,0 +1 @@
../liquidjs/bin/liquid.js

1
node_modules/.bin/liquidjs generated vendored Symbolic link
View File

@ -0,0 +1 @@
../liquidjs/bin/liquid.js

1
node_modules/.bin/markdown-it generated vendored Symbolic link
View File

@ -0,0 +1 @@
../markdown-it/bin/markdown-it.mjs

1
node_modules/.bin/mime generated vendored Symbolic link
View File

@ -0,0 +1 @@
../mime/cli.js

1
node_modules/.bin/nunjucks-precompile generated vendored Symbolic link
View File

@ -0,0 +1 @@
../nunjucks/bin/precompile

1
node_modules/.bin/semver generated vendored Symbolic link
View File

@ -0,0 +1 @@
../semver/bin/semver.js

2018
node_modules/.package-lock.json generated vendored Normal file

File diff suppressed because it is too large Load Diff

21
node_modules/@11ty/dependency-tree-esm/LICENSE generated vendored Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2023 Zach Leatherman
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

53
node_modules/@11ty/dependency-tree-esm/README.md generated vendored Normal file
View File

@ -0,0 +1,53 @@
# `dependency-tree-esm`
Returns an unordered array of local paths to dependencies of a Node ES module JavaScript file.
* See also: [`dependency-tree`](https://github.com/11ty/eleventy-dependency-tree) for the CommonJS version.
This is used by Eleventy to find dependencies of a JavaScript file to watch for changes to re-run Eleventys build.
## Installation
```
npm install --save-dev @11ty/dependency-tree-esm
```
## Features
* Ignores bare specifiers (e.g. `import "my-package"`)
* Ignores Nodes built-ins (e.g. `import "path"`)
* Handles circular dependencies
* Returns an empty set if the file does not exist.
## Usage
```js
// my-file.js
// if my-local-dependency.js has dependencies, it will include those too
import "./my-local-dependency.js";
// ignored, is a built-in
import path from "path";
```
```js
import { find } from "@11ty/dependency-tree-esm";
// CommonJS is fine too
// const { find } = require("@11ty/dependency-tree-esm");
await find("./my-file.js");
// returns ["./my-local-dependency.js"]
```
Return a [dependency-graph](https://github.com/jriecken/dependency-graph) instance:
```js
import { findGraph } from "@11ty/dependency-tree-esm";
// CommonJS is fine too
// const { find } = require("@11ty/dependency-tree-esm");
(await findGraph("./my-file.js")).overallOrder();
// returns ["./my-local-dependency.js", "./my-file.js"]
```

173
node_modules/@11ty/dependency-tree-esm/main.js generated vendored Normal file
View File

@ -0,0 +1,173 @@
const path = require("node:path");
const { readFileSync, existsSync } = require("node:fs");
const acorn = require("acorn");
const normalizePath = require("normalize-path");
const { TemplatePath } = require("@11ty/eleventy-utils");
const { DepGraph } = require("dependency-graph");
// Is *not* a bare specifier (e.g. 'some-package')
// https://nodejs.org/dist/latest-v18.x/docs/api/esm.html#terminology
function isNonBareSpecifier(importSource) {
// Change \\ to / on Windows
let normalized = normalizePath(importSource);
// Relative specifier (e.g. './startup.js')
if(normalized.startsWith("./") || normalized.startsWith("../")) {
return true;
}
// Absolute specifier (e.g. 'file:///opt/nodejs/config.js')
if(normalized.startsWith("file:")) {
return true;
}
return false;
}
function normalizeFilePath(filePath) {
return TemplatePath.standardizeFilePath(path.relative(".", filePath));
}
function normalizeImportSourceToFilePath(filePath, source) {
let { dir } = path.parse(filePath);
let normalized = path.join(dir, source);
return normalizeFilePath(normalized);
}
function getImportAttributeType(attributes = []) {
for(let node of attributes) {
if(node.type === "ImportAttribute" && node.key.type === "Identifier" && node.key.name === "type") {
return node.value.value;
}
}
}
async function getSources(filePath, contents, options = {}) {
let { parserOverride } = Object.assign({}, options);
let sources = new Set();
let sourcesToRecurse = new Set();
let ast = (parserOverride || acorn).parse(contents, {
sourceType: "module",
ecmaVersion: "latest",
});
for(let node of ast.body) {
if(node.type === "ImportDeclaration" && isNonBareSpecifier(node.source.value)) {
let importAttributeType = getImportAttributeType(node?.attributes);
let normalized = normalizeImportSourceToFilePath(filePath, node.source.value);
if(normalized !== filePath) {
sources.add(normalized);
// Recurse typeless (JavaScript) import types only
// Right now only `css` and `json` are valid but others might come later
if(!importAttributeType) {
sourcesToRecurse.add(normalized);
}
}
}
}
return {
sources,
sourcesToRecurse,
}
}
// second argument used to be `alreadyParsedSet = new Set()`, keep that backwards compat
async function find(filePath, options = {}) {
if(options instanceof Set) {
options = {
alreadyParsedSet: options
};
}
if(!options.alreadyParsedSet) {
options.alreadyParsedSet = new Set();
}
// TODO add a cache here
// Unfortunately we need to read the entire file, imports need to be at the top level but they can be anywhere 🫠
let normalized = normalizeFilePath(filePath);
if(options.alreadyParsedSet.has(normalized) || !existsSync(filePath)) {
return [];
}
options.alreadyParsedSet.add(normalized);
let contents = readFileSync(normalized, { encoding: 'utf8' });
let { sources, sourcesToRecurse } = await getSources(filePath, contents, options);
// Recurse for nested deps
for(let source of sourcesToRecurse) {
let s = await find(source, options);
for(let p of s) {
if(sources.has(p) || p === filePath) {
continue;
}
sources.add(p);
}
}
return Array.from(sources);
}
function mergeGraphs(rootGraph, ...graphs) {
if(!(rootGraph instanceof DepGraph)) {
throw new Error("Incorrect type passed to mergeGraphs, expected DepGraph");
}
for(let g of graphs) {
for(let node of g.overallOrder()) {
if(!rootGraph.hasNode(node)) {
rootGraph.addNode(node);
}
for(let dep of g.directDependenciesOf(node)) {
rootGraph.addDependency(node, dep);
}
}
}
}
// second argument used to be `alreadyParsedSet = new Set()`, keep that backwards compat
async function findGraph(filePath, options = {}) {
if(options instanceof Set) {
options = {
alreadyParsedSet: options
};
}
if(!options.alreadyParsedSet) {
options.alreadyParsedSet = new Set();
}
let graph = new DepGraph();
let normalized = normalizeFilePath(filePath);
graph.addNode(filePath);
if(options.alreadyParsedSet.has(normalized) || !existsSync(filePath)) {
return graph;
}
options.alreadyParsedSet.add(normalized);
let contents = readFileSync(normalized, "utf8");
let { sources, sourcesToRecurse } = await getSources(filePath, contents, options);
for(let source of sources) {
if(!graph.hasNode(source)) {
graph.addNode(source);
}
graph.addDependency(normalized, source);
}
// Recurse for nested deps
for(let source of sourcesToRecurse) {
let recursedGraph = await findGraph(source, options);
mergeGraphs(graph, recursedGraph);
}
return graph;
}
module.exports = {
find,
findGraph,
mergeGraphs,
};

26
node_modules/@11ty/dependency-tree-esm/package.json generated vendored Normal file
View File

@ -0,0 +1,26 @@
{
"name": "@11ty/dependency-tree-esm",
"version": "2.0.4",
"description": "Finds all JavaScript ES Module dependencies from a filename.",
"main": "main.js",
"type": "commonjs",
"scripts": {
"test": "echo \"Error: run tests from root directory\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/11ty/eleventy-utils.git"
},
"author": {
"name": "Zach Leatherman",
"email": "zach@zachleat.com",
"url": "https://zachleat.com/"
},
"license": "MIT",
"dependencies": {
"@11ty/eleventy-utils": "^2.0.7",
"acorn": "^8.15.0",
"dependency-graph": "^1.0.0",
"normalize-path": "^3.0.0"
}
}

21
node_modules/@11ty/dependency-tree/LICENSE generated vendored Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2019 Zach Leatherman
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

109
node_modules/@11ty/dependency-tree/README.md generated vendored Normal file
View File

@ -0,0 +1,109 @@
# `@11ty/dependency-tree`
Returns an unordered array of local paths to dependencies of a CommonJS node JavaScript file (everything it or any of its dependencies `require`s).
* See also: [`@11ty/dependency-tree-esm`](https://github.com/11ty/eleventy-utils/tree/main/parse-deps-esm) for the ESM version.
* See also: [`@11ty/dependency-tree-typescript`](https://github.com/11ty/eleventy-utils/tree/main/parse-deps-typescript) for the TypeScript version.
Reduced feature (faster) alternative to the [`dependency-tree` package](https://www.npmjs.com/package/dependency-tree). This is used by Eleventy to find dependencies of a JavaScript file to watch for changes to re-run Eleventys build.
## Big Huge Caveat
⚠ A big caveat to this plugin is that it will require the file in order to build a dependency tree. So if your module has side effects and you dont want it to execute—do not use this!
## Installation
```
npm install --save-dev @11ty/dependency-tree
```
## Features
* Ignores `node_modules`
* Or, use `nodeModuleNames` to control whether or not `node_modules` package names are included (added in v2.0.1)
* Ignores Nodes built-ins (e.g. `path`)
* Handles circular dependencies (Node does this too)
## Usage
```js
// my-file.js
// if my-local-dependency.js has dependencies, it will include those too
const test = require("./my-local-dependency.js");
// ignored, is a built-in
const path = require("path");
```
```js
const DependencyTree = require("@11ty/dependency-tree");
DependencyTree("./my-file.js");
// returns ["./my-local-dependency.js"]
```
### `allowNotFound`
```js
const DependencyTree = require("@11ty/dependency-tree");
DependencyTree("./this-does-not-exist.js"); // throws an error
DependencyTree("./this-does-not-exist.js", { allowNotFound: true });
// returns []
```
### `nodeModuleNames`
(Added in v2.0.1) Controls whether or not node package names are included in the list of dependencies.
* `nodeModuleNames: "include"`: included alongside the local JS files.
* `nodeModuleNames: "exclude"` (default): node module package names are excluded.
* `nodeModuleNames: "only"`: only node module package names are returned.
```js
// my-file.js:
require("./my-local-dependency.js");
require("@11ty/eleventy");
```
```js
const DependencyTree = require("@11ty/dependency-tree");
DependencyTree("./my-file.js");
// returns ["./my-local-dependency.js"]
DependencyTree("./my-file.js", { nodeModuleNames: "exclude" });
// returns ["./my-local-dependency.js"]
DependencyTree("./my-file.js", { nodeModuleNames: "include" });
// returns ["./my-local-dependency.js", "@11ty/eleventy"]
DependencyTree("./my-file.js", { nodeModuleNames: "only" });
// returns ["@11ty/eleventy"]
```
#### (Deprecated) `nodeModuleNamesOnly`
(Added in v2.0.0) Changed to use `nodeModuleNames` option instead. Backwards compatibility is maintained automatically.
* `nodeModuleNamesOnly: false` is mapped to `nodeModuleNames: "exclude"`
* `nodeModuleNamesOnly: true` is mapped to `nodeModuleNames: "only"`
If both `nodeModuleNamesOnly` and `nodeModuleNames` are included in options, `nodeModuleNames` takes precedence.
### `getPackagesByType` method
_Added in v4.0.2._
```js
const DependencyTree = require("@11ty/dependency-tree");
const {getPackagesByType} = DependencyTree;
// With `require(esm)` support, some targets may be modules!
// Return separate lists for commonjs and esm lists
getPackagesByType("./my-file.js");
// returns { commonjs: ["./my-file.js"], esm: [] }
```

157
node_modules/@11ty/dependency-tree/main.js generated vendored Normal file
View File

@ -0,0 +1,157 @@
const path = require("node:path");
const { TemplatePath } = require("@11ty/eleventy-utils");
function getAbsolutePath(filename) {
let normalizedFilename = path.normalize(filename); // removes dot slash
let hasDotSlash = filename.startsWith("./");
return hasDotSlash ? path.join(path.resolve("."), normalizedFilename) : normalizedFilename;
}
function getRelativePath(filename) {
let normalizedFilename = path.normalize(filename); // removes dot slash
let workingDirectory = path.resolve(".");
let result = "./" + (normalizedFilename.startsWith(workingDirectory) ? normalizedFilename.substr(workingDirectory.length + 1) : normalizedFilename);
return result;
}
function getNodeModuleName(filename) {
let foundNodeModules = false;
let moduleName = [];
let s = filename.split(path.sep);
for(let entry of s) {
if(entry === '.pnpm') {
foundNodeModules = false;
}
if(foundNodeModules) {
moduleName.push(entry);
if(!entry.startsWith("@")) {
return moduleName.join("/");
}
}
if(entry === "node_modules") {
foundNodeModules = true;
}
}
return false;
}
/* unordered */
function getDependenciesFor(filename, avoidCircular, optionsArg = {}) {
// backwards compatibility with `nodeModuleNamesOnly` boolean option
// Using `nodeModuleNames` property moving forward
if(("nodeModuleNamesOnly" in optionsArg) && !("nodeModuleNames" in optionsArg)) {
if(optionsArg.nodeModuleNamesOnly === true) {
optionsArg.nodeModuleNames = "only";
}
if(optionsArg.nodeModuleNamesOnly === false) {
optionsArg.nodeModuleNames = "exclude";
}
}
let options = Object.assign({
allowNotFound: false,
nodeModuleNames: "exclude", // also "include" or "only"
}, optionsArg);
let absoluteFilename = getAbsolutePath(filename);
let modules = new Set();
try {
let res = require(absoluteFilename);
if(res[Symbol.toStringTag] === "Module" || res.__esModule) {
modules.add(filename);
}
} catch(e) {
if(e.code === "MODULE_NOT_FOUND" && options.allowNotFound) {
// do nothing
} else {
throw e;
}
}
let mod;
for(let entry in require.cache) {
if(entry === absoluteFilename) {
mod = require.cache[entry];
break;
}
}
let dependencies = new Set();
if(!mod) {
if(!options.allowNotFound) {
throw new Error(`Could not find ${filename} in @11ty/dependency-tree`);
}
} else {
let relativeFilename = getRelativePath(mod.filename);
if(!avoidCircular) {
avoidCircular = {};
} else if(options.nodeModuleNames !== "only") {
dependencies.add(relativeFilename);
}
avoidCircular[relativeFilename] = true;
if(Array.isArray(mod.children) && mod.children.length > 0) {
for(let child of mod.children) {
let relativeChildFilename = getRelativePath(child.filename);
let nodeModuleName = getNodeModuleName(child.filename);
if(options.nodeModuleNames !== "exclude" && nodeModuleName) {
dependencies.add(nodeModuleName);
}
// Add dependencies of this dependency (not top level node_modules)
if(nodeModuleName === false) {
if(!dependencies.has(relativeChildFilename) && // avoid infinite looping with circular deps
!avoidCircular[relativeChildFilename] ) {
let { commonjs, esm } = getDependenciesFor(relativeChildFilename, avoidCircular, options);
for(let dependency of commonjs) {
dependencies.add(dependency);
}
for(let dependency of esm) {
modules.add(dependency);
}
}
}
}
}
}
return {
esm: modules,
commonjs: dependencies,
}
}
function normalizeList(packageSet) {
return Array.from( packageSet ).map(filePath => {
if(filePath.startsWith("./")) {
return TemplatePath.standardizeFilePath(filePath);
}
return filePath; // node_module name
})
}
function getCleanDependencyListFor(filename, options = {}) {
let { commonjs } = getDependenciesFor(filename, null, options);
return normalizeList(commonjs);
}
function getCleanDependencyListByTypeFor(filename, options = {}) {
let { commonjs, esm } = getDependenciesFor(filename, null, options);
return {
commonjs: normalizeList(commonjs),
esm: normalizeList(esm),
};
}
module.exports = getCleanDependencyListFor;
module.exports.getPackagesByType = getCleanDependencyListByTypeFor;
module.exports.getNodeModuleName = getNodeModuleName;

42
node_modules/@11ty/dependency-tree/package.json generated vendored Normal file
View File

@ -0,0 +1,42 @@
{
"name": "@11ty/dependency-tree",
"version": "4.0.2",
"description": "Finds all JavaScript CommmonJS require() dependencies from a filename.",
"main": "main.js",
"files": [
"main.js",
"!test",
"!test/**"
],
"scripts": {
"test": "npx ava"
},
"repository": {
"type": "git",
"url": "git+https://github.com/11ty/eleventy-dependency-tree.git"
},
"author": {
"name": "Zach Leatherman",
"email": "zach@zachleat.com",
"url": "https://zachleat.com/"
},
"license": "MIT",
"ava": {
"files": [
"./test/*.js"
],
"watchMode": {
"ignoreChanged": [
"./test/stubs/**"
]
}
},
"devDependencies": {
"@sindresorhus/is": "^4.6.0",
"ava": "^6.4.1",
"semver": "^7.7.3"
},
"dependencies": {
"@11ty/eleventy-utils": "^2.0.1"
}
}

60
node_modules/@11ty/eleventy-dev-server/README.md generated vendored Normal file
View File

@ -0,0 +1,60 @@
<p align="center"><img src="https://www.11ty.dev/img/logo-github.svg" width="200" height="200" alt="11ty Logo"></p>
# eleventy-dev-server 🕚⚡️🎈🐀
A minimal, modern, generic, hot-reloading local web server to help web developers.
## ➡ [Documentation](https://www.11ty.dev/docs/watch-serve/#eleventy-dev-server)
- Please star [Eleventy on GitHub](https://github.com/11ty/eleventy/)!
- Follow us on Twitter [@eleven_ty](https://twitter.com/eleven_ty)
- Support [11ty on Open Collective](https://opencollective.com/11ty)
- [11ty on npm](https://www.npmjs.com/org/11ty)
- [11ty on GitHub](https://github.com/11ty)
[![npm Version](https://img.shields.io/npm/v/@11ty/eleventy-dev-server.svg?style=for-the-badge)](https://www.npmjs.com/package/@11ty/eleventy-dev-server)
## Installation
This is bundled with `@11ty/eleventy` (and you do not need to install it separately) in Eleventy v2.0.
## CLI
Eleventy Dev Server now also includes a CLI. The CLI is for **standalone** (non-Eleventy) use only: separate installation is unnecessary if youre using this server with `@11ty/eleventy`.
```sh
npm install -g @11ty/eleventy-dev-server
# Alternatively, install locally into your project
npm install @11ty/eleventy-dev-server
```
This package requires Node 18 or newer.
### CLI Usage
```sh
# Serve the current directory
npx @11ty/eleventy-dev-server
# Serve a different subdirectory (also aliased as --input)
npx @11ty/eleventy-dev-server --dir=_site
# Disable the `domdiff` feature
npx @11ty/eleventy-dev-server --domdiff=false
# Full command list in the Help
npx @11ty/eleventy-dev-server --help
```
## Tests
```
npm run test
```
- We use the [ava JavaScript test runner](https://github.com/avajs/ava) ([Assertions documentation](https://github.com/avajs/ava/blob/master/docs/03-assertions.md))
## Changelog
* `v2.0.0` bumps Node.js minimum to 18.

89
node_modules/@11ty/eleventy-dev-server/cli.js generated vendored Normal file
View File

@ -0,0 +1,89 @@
const pkg = require("./package.json");
const EleventyDevServer = require("./server.js");
const Logger = {
info: function(...args) {
console.log( "[11ty/eleventy-dev-server]", ...args );
},
error: function(...args) {
console.error( "[11ty/eleventy-dev-server]", ...args );
},
fatal: function(...args) {
Logger.error(...args);
process.exitCode = 1;
}
};
Logger.log = Logger.info;
class Cli {
static getVersion() {
return pkg.version;
}
static getHelp() {
return `Usage:
eleventy-dev-server
eleventy-dev-server --dir=_site
eleventy-dev-server --port=3000
Arguments:
--version
--dir=.
Directory to serve (default: \`.\`)
--input (alias for --dir)
--port=8080
Run the web server on this port (default: \`8080\`)
Will autoincrement if already in use.
--domdiff (enabled, default)
--domdiff=false (disabled)
Apply HTML changes without a full page reload.
--help`;
}
static getDefaultOptions() {
return {
port: "8080",
input: ".",
domDiff: true,
}
}
async serve(options = {}) {
this.options = Object.assign(Cli.getDefaultOptions(), options);
this.server = EleventyDevServer.getServer("eleventy-dev-server-cli", this.options.input, {
// TODO allow server configuration extensions
showVersion: true,
logger: Logger,
domDiff: this.options.domDiff,
// CLI watches all files in the folder by default
// this is different from Eleventy usage!
watch: [ this.options.input ],
});
this.server.serve(this.options.port);
// TODO? send any errors here to the server too
// with server.sendError({ error });
}
close() {
if(this.server) {
return this.server.close();
}
}
}
module.exports = {
Logger,
Cli
}

View File

@ -0,0 +1,336 @@
class Util {
static pad(num, digits = 2) {
let zeroes = new Array(digits + 1).join(0);
return `${zeroes}${num}`.slice(-1 * digits);
}
static log(message) {
Util.output("log", message);
}
static error(message, error) {
Util.output("error", message, error);
}
static output(type, ...messages) {
let now = new Date();
let date = `${Util.pad(now.getUTCHours())}:${Util.pad(
now.getUTCMinutes()
)}:${Util.pad(now.getUTCSeconds())}.${Util.pad(
now.getUTCMilliseconds(),
3
)}`;
console[type](`[11ty][${date} UTC]`, ...messages);
}
static capitalize(word) {
return word.substr(0, 1).toUpperCase() + word.substr(1);
}
static matchRootAttributes(htmlContent) {
// Workaround for morphdom bug with attributes on <html> https://github.com/11ty/eleventy-dev-server/issues/6
// Note also `childrenOnly: true` above
const parser = new DOMParser();
let parsed = parser.parseFromString(htmlContent, "text/html");
let parsedDoc = parsed.documentElement;
let newAttrs = parsedDoc.getAttributeNames();
let docEl = document.documentElement;
// Remove old
let removedAttrs = docEl.getAttributeNames().filter(name => !newAttrs.includes(name));
for(let attr of removedAttrs) {
docEl.removeAttribute(attr);
}
// Add new
for(let attr of newAttrs) {
docEl.setAttribute(attr, parsedDoc.getAttribute(attr));
}
}
static isEleventyLinkNodeMatch(from, to) {
// Issue #18 https://github.com/11ty/eleventy-dev-server/issues/18
// Dont update a <link> if the _11ty searchParam is the only thing thats different
if(from.tagName !== "LINK" || to.tagName !== "LINK") {
return false;
}
let oldWithoutHref = from.cloneNode();
let newWithoutHref = to.cloneNode();
oldWithoutHref.removeAttribute("href");
newWithoutHref.removeAttribute("href");
// if all other attributes besides href match
if(!oldWithoutHref.isEqualNode(newWithoutHref)) {
return false;
}
let oldUrl = new URL(from.href);
let newUrl = new URL(to.href);
// morphdom wants to force href="style.css?_11ty" => href="style.css"
let paramName = EleventyReload.QUERY_PARAM;
let isErasing = oldUrl.searchParams.has(paramName) && !newUrl.searchParams.has(paramName);
if(!isErasing) {
// not a match if _11ty has a new value (not being erased)
return false;
}
oldUrl.searchParams.set(paramName, "");
newUrl.searchParams.set(paramName, "");
// is a match if erasing and the rest of the href matches too
return oldUrl.toString() === newUrl.toString();
}
// https://github.com/patrick-steele-idem/morphdom/issues/178#issuecomment-652562769
static runScript(source, target) {
let script = document.createElement('script');
// copy over the attributes
for(let attr of [...source.attributes]) {
script.setAttribute(attr.nodeName ,attr.nodeValue);
}
script.innerHTML = source.innerHTML;
(target || source).replaceWith(script);
}
static fullPageReload() {
Util.log(`Page reload initiated.`);
window.location.reload();
}
}
class EleventyReload {
static QUERY_PARAM = "_11ty";
static reloadTypes = {
css: (files, build = {}) => {
// Initiate a full page refresh if a CSS change is made but does match any stylesheet url
// `build.stylesheets` available in Eleventy v3.0.1-alpha.5+
if(Array.isArray(build.stylesheets)) {
let match = false;
for (let link of document.querySelectorAll(`link[rel="stylesheet"]`)) {
if (link.href) {
let url = new URL(link.href);
if(build.stylesheets.includes(url.pathname)) {
match = true;
}
}
}
if(!match) {
Util.fullPageReload();
return;
}
}
for (let link of document.querySelectorAll(`link[rel="stylesheet"]`)) {
if (link.href) {
let url = new URL(link.href);
url.searchParams.set(this.QUERY_PARAM, Date.now());
link.href = url.toString();
}
}
Util.log(`CSS updated without page reload.`);
},
default: async (files, build = {}) => {
let morphed = false;
let domdiffTemplates = (build?.templates || []).filter(({url, inputPath}) => {
return url === document.location.pathname && (files || []).includes(inputPath);
});
if(domdiffTemplates.length === 0) {
Util.fullPageReload();
return;
}
try {
// Important: using `./` allows the `.11ty` folder name to be changed
const { default: morphdom } = await import(`./morphdom.js`);
for (let {url, inputPath, content} of domdiffTemplates) {
// Notable limitation: this wont re-run script elements or JavaScript page lifecycle events (load/DOMContentLoaded)
morphed = true;
morphdom(document.documentElement, content, {
childrenOnly: true,
onBeforeElUpdated: function (fromEl, toEl) {
if (fromEl.nodeName === "SCRIPT" && toEl.nodeName === "SCRIPT") {
if(toEl.innerHTML !== fromEl.innerHTML) {
Util.log(`JavaScript modified, reload initiated.`);
window.location.reload();
}
return false;
}
// Speed-up trick from morphdom docs
// https://dom.spec.whatwg.org/#concept-node-equals
if (fromEl.isEqualNode(toEl)) {
return false;
}
if(Util.isEleventyLinkNodeMatch(fromEl, toEl)) {
return false;
}
return true;
},
addChild: function(parent, child) {
// Declarative Shadow DOM https://github.com/11ty/eleventy-dev-server/issues/90
if(child.nodeName === "TEMPLATE" && child.hasAttribute("shadowrootmode")) {
let root = parent.shadowRoot;
if(root) {
// remove all shadow root children
while(root.firstChild) {
root.removeChild(root.firstChild);
}
}
for(let newChild of child.content.childNodes) {
root.appendChild(newChild);
}
} else {
parent.appendChild(child);
}
},
onNodeAdded: function (node) {
if (node.nodeName === 'SCRIPT') {
Util.log(`JavaScript added, reload initiated.`);
window.location.reload();
}
},
onElUpdated: function(node) {
// Re-attach custom elements
if(customElements.get(node.tagName.toLowerCase())) {
let placeholder = document.createElement("div");
node.replaceWith(placeholder);
requestAnimationFrame(() => {
placeholder.replaceWith(node);
placeholder = undefined;
});
}
}
});
Util.matchRootAttributes(content);
Util.log(`HTML delta applied without page reload.`);
}
} catch(e) {
Util.error( "Morphdom error", e );
}
if (!morphed) {
Util.fullPageReload();
}
}
}
constructor() {
this.connectionMessageShown = false;
this.reconnectEventCallback = this.reconnect.bind(this);
}
init(options = {}) {
if (!("WebSocket" in window)) {
return;
}
let documentUrl = new URL(document.location.href);
let reloadPort = new URL(import.meta.url).searchParams.get("reloadPort");
if(reloadPort) {
documentUrl.port = reloadPort;
}
let { protocol, host } = documentUrl;
// works with http (ws) and https (wss)
let websocketProtocol = protocol.replace("http", "ws");
let socket = new WebSocket(`${websocketProtocol}//${host}`);
socket.addEventListener("message", async (event) => {
try {
let data = JSON.parse(event.data);
// Util.log( JSON.stringify(data, null, 2) );
let { type } = data;
if (type === "eleventy.reload") {
await this.onreload(data);
} else if (type === "eleventy.msg") {
Util.log(`${data.message}`);
} else if (type === "eleventy.error") {
// Log Eleventy build errors
// Extra parsing for Node Error objects
let e = JSON.parse(data.error);
Util.error(`Build error: ${e.message}`, e);
} else if (type === "eleventy.status") {
// Full page reload on initial reconnect
if (data.status === "connected" && options.mode === "reconnect") {
window.location.reload();
}
if(data.status === "connected") {
// With multiple windows, only show one connection message
if(!this.isConnected) {
Util.log(Util.capitalize(data.status));
}
this.connectionMessageShown = true;
} else {
if(data.status === "disconnected") {
this.addReconnectListeners();
}
Util.log(Util.capitalize(data.status));
}
} else {
Util.log("Unknown event type", data);
}
} catch (e) {
Util.error(`Error parsing ${event.data}: ${e.message}`, e);
}
});
socket.addEventListener("open", () => {
// no reconnection when the connect is already open
this.removeReconnectListeners();
});
socket.addEventListener("close", () => {
this.connectionMessageShown = false;
this.addReconnectListeners();
});
}
reconnect() {
Util.log( "Reconnecting…" );
this.init({ mode: "reconnect" });
}
async onreload({ subtype, files, build }) {
if(!EleventyReload.reloadTypes[subtype]) {
subtype = "default";
}
await EleventyReload.reloadTypes[subtype](files, build);
}
addReconnectListeners() {
this.removeReconnectListeners();
window.addEventListener("focus", this.reconnectEventCallback);
window.addEventListener("visibilitychange", this.reconnectEventCallback);
}
removeReconnectListeners() {
window.removeEventListener("focus", this.reconnectEventCallback);
window.removeEventListener("visibilitychange", this.reconnectEventCallback);
}
}
let reloader = new EleventyReload();
reloader.init();

77
node_modules/@11ty/eleventy-dev-server/cmd.js generated vendored Executable file
View File

@ -0,0 +1,77 @@
#!/usr/bin/env node
const pkg = require("./package.json");
// Node check
require("please-upgrade-node")(pkg, {
message: function (requiredVersion) {
return (
"eleventy-dev-server requires Node " +
requiredVersion +
". You will need to upgrade Node!"
);
},
});
const { Logger, Cli } = require("./cli.js");
const debug = require("debug")("Eleventy:DevServer");
try {
const defaults = Cli.getDefaultOptions();
for(let key in defaults) {
if(key.toLowerCase() !== key) {
defaults[key.toLowerCase()] = defaults[key];
delete defaults[key];
}
}
const argv = require("minimist")(process.argv.slice(2), {
string: [
"dir",
"input", // alias for dir
"port",
],
boolean: [
"version",
"help",
"domdiff",
],
default: defaults,
unknown: function (unknownArgument) {
throw new Error(
`We dont know what '${unknownArgument}' is. Use --help to see the list of supported commands.`
);
},
});
debug("command: eleventy-dev-server %o", argv);
process.on("unhandledRejection", (error, promise) => {
Logger.fatal("Unhandled rejection in promise:", promise, error);
});
process.on("uncaughtException", (error) => {
Logger.fatal("Uncaught exception:", error);
});
if (argv.version) {
console.log(Cli.getVersion());
} else if (argv.help) {
console.log(Cli.getHelp());
} else {
let cli = new Cli();
cli.serve({
input: argv.dir || argv.input,
port: argv.port,
domDiff: argv.domdiff,
});
process.on("SIGINT", async () => {
await cli.close();
process.exitCode = 0;
});
}
} catch (e) {
Logger.fatal("Fatal Error:", e)
}

57
node_modules/@11ty/eleventy-dev-server/package.json generated vendored Normal file
View File

@ -0,0 +1,57 @@
{
"name": "@11ty/eleventy-dev-server",
"version": "2.0.8",
"description": "A minimal, modern, generic, hot-reloading local web server to help web developers.",
"main": "server.js",
"scripts": {
"test": "npx ava --verbose",
"sample": "node cmd.js --input=test/stubs"
},
"license": "MIT",
"engines": {
"node": ">=18"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/11ty"
},
"bin": {
"eleventy-dev-server": "./cmd.js"
},
"keywords": [
"eleventy",
"server",
"cli"
],
"publishConfig": {
"access": "public"
},
"author": {
"name": "Zach Leatherman",
"email": "zachleatherman@gmail.com",
"url": "https://zachleat.com/"
},
"repository": {
"type": "git",
"url": "git://github.com/11ty/eleventy-dev-server.git"
},
"bugs": "https://github.com/11ty/eleventy-dev-server/issues",
"homepage": "https://github.com/11ty/eleventy-dev-server/",
"dependencies": {
"@11ty/eleventy-utils": "^2.0.1",
"chokidar": "^3.6.0",
"debug": "^4.4.0",
"finalhandler": "^1.3.1",
"mime": "^3.0.0",
"minimist": "^1.2.8",
"morphdom": "^2.7.4",
"please-upgrade-node": "^3.2.0",
"send": "^1.1.0",
"ssri": "^11.0.0",
"urlpattern-polyfill": "^10.0.0",
"ws": "^8.18.1"
},
"devDependencies": {
"ava": "^6.2.0"
}
}

1024
node_modules/@11ty/eleventy-dev-server/server.js generated vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,9 @@
const os = require("node:os");
const INTERFACE_FAMILIES = ["IPv4"];
module.exports = function() {
return Object.values(os.networkInterfaces()).flat().filter(interface => {
return interface.internal === false && INTERFACE_FAMILIES.includes(interface.family);
}).map(interface => interface.address);
};

View File

@ -0,0 +1,130 @@
function getContentType(headers) {
if(!headers) {
return;
}
for(let key in headers) {
if(key.toLowerCase() === "content-type") {
return headers[key];
}
}
}
// Inspired by `resp-modifier` https://github.com/shakyShane/resp-modifier/blob/4a000203c9db630bcfc3b6bb8ea2abc090ae0139/index.js
function wrapResponse(resp, transformHtml) {
resp._wrappedOriginalWrite = resp.write;
resp._wrappedOriginalWriteHead = resp.writeHead;
resp._wrappedOriginalEnd = resp.end;
resp._wrappedHeaders = [];
resp._wrappedTransformHtml = transformHtml;
resp._hasEnded = false;
resp._shouldForceEnd = false;
// Compatibility with web standards Response()
Object.defineProperty(resp, "body", {
// Returns write cache
get: function() {
if(typeof this._writeCache === "string") {
return this._writeCache;
}
},
// Usage:
// res.body = ""; // overwrite existing content
// res.body += ""; // append to existing content, can also res.write("") to append
set: function(data) {
if(typeof data === "string") {
this._writeCache = data;
}
}
});
// Compatibility with web standards Response()
Object.defineProperty(resp, "bodyUsed", {
get: function() {
return this._hasEnded;
}
})
// Original signature writeHead(statusCode[, statusMessage][, headers])
resp.writeHead = function(statusCode, ...args) {
let headers = args[args.length - 1];
// statusMessage is a string
if(typeof headers !== "string") {
this._contentType = getContentType(headers);
}
if((this._contentType || "").startsWith("text/html")) {
this._wrappedHeaders.push([statusCode, ...args]);
} else {
return this._wrappedOriginalWriteHead(statusCode, ...args);
}
return this;
}
// data can be a String or Buffer
resp.write = function(data, ...args) {
if(typeof data === "string") {
if(!this._writeCache) {
this._writeCache = "";
}
// TODO encoding and callback args
this._writeCache += data;
} else {
// Buffers
return this._wrappedOriginalWrite(data, ...args);
}
return this;
}
// data can be a String or Buffer
resp.end = function(data, encoding, callback) {
resp._hasEnded = true;
if(typeof this._writeCache === "string" || typeof data === "string") {
// Strings
if(!this._writeCache) {
this._writeCache = "";
}
if(typeof data === "string") {
this._writeCache += data;
}
let result = this._writeCache;
// Only transform HTML
// Note the “setHeader versus writeHead” note on https://nodejs.org/api/http.html#responsewriteheadstatuscode-statusmessage-headers
let contentType = this._contentType || getContentType(this.getHeaders());
if(contentType?.startsWith("text/html")) {
if(this._wrappedTransformHtml && typeof this._wrappedTransformHtml === "function") {
result = this._wrappedTransformHtml(result);
// uncompressed size: https://github.com/w3c/ServiceWorker/issues/339
this.setHeader("Content-Length", Buffer.byteLength(result));
}
}
for(let headers of this._wrappedHeaders) {
this._wrappedOriginalWriteHead(...headers);
}
this._writeCache = [];
this._wrappedOriginalWrite(result, encoding)
return this._wrappedOriginalEnd(callback);
} else {
// Buffer or Uint8Array
for(let headers of this._wrappedHeaders) {
this._wrappedOriginalWriteHead(...headers);
}
if(data) {
this._wrappedOriginalWrite(data, encoding);
}
return this._wrappedOriginalEnd(callback);
}
}
return resp;
}
module.exports = wrapResponse;

55
node_modules/@11ty/eleventy-fetch/README.md generated vendored Normal file
View File

@ -0,0 +1,55 @@
<p align="center"><img src="https://www.11ty.dev/img/logo-github.svg" width="200" height="200" alt="eleventy Logo"></p>
# eleventy-fetch
_Requires Node 18+_
Formerly known as [`@11ty/eleventy-cache-assets`](https://www.npmjs.com/package/@11ty/eleventy-cache-assets).
Fetch network resources and cache them so you dont bombard your API (or other resources). Do this at configurable intervals—not with every build! Once per minute, or once per hour, once per day, or however often you like!
With the added benefit that if one successful request completes, you can now work offline!
This plugin can save any kind of asset—JSON, HTML, images, videos, etc.
## [The full `eleventy-fetch` documentation is on 11ty.dev](https://www.11ty.dev/docs/plugins/cache/).
- _This is a plugin for the [Eleventy static site generator](https://www.11ty.dev/)._
- Find more [Eleventy plugins](https://www.11ty.dev/docs/plugins/).
- Please star [Eleventy on GitHub](https://github.com/11ty/eleventy/), follow [@eleven_ty](https://twitter.com/eleven_ty) on Twitter, and support [11ty on Open Collective](https://opencollective.com/11ty)
[![npm Version](https://img.shields.io/npm/v/@11ty/eleventy-fetch.svg?style=for-the-badge)](https://www.npmjs.com/package/@11ty/eleventy-fetch) [![GitHub issues](https://img.shields.io/github/issues/11ty/eleventy-fetch.svg?style=for-the-badge)](https://github.com/11ty/eleventy/issues)
## Installation
```
npm install @11ty/eleventy-fetch
```
_[The full `eleventy-fetch` documentation is on 11ty.dev](https://www.11ty.dev/docs/plugins/cache/)._
## Tests
```
npm run test
```
- We use the [ava JavaScript test runner](https://github.com/avajs/ava) ([Assertions documentation](https://github.com/avajs/ava/blob/master/docs/03-assertions.md))
- To keep tests fast, thou shalt try to avoid writing files in tests.
<!--
## Roadmap
* Add support for tiered asset requests, e.g. CSS requests background-images and web fonts, for example.
## Open Questions
* `flat-cache` save method seems to be synchronous, is there a better async one?
* Our cache stores raw buffers internally, which are pretty bloated compared to the original. Surely there is a more efficient way to do this. Maybe store the files in their original format.
-->
## Community Roadmap
- [Top Feature Requests](https://github.com/11ty/eleventy-fetch/issues?q=label%3Aneeds-votes+sort%3Areactions-%2B1-desc+label%3Aenhancement) (Add your own votes using the 👍 reaction)
- [Top Bugs 😱](https://github.com/11ty/eleventy-fetch/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Areactions-%2B1-desc) (Add your own votes using the 👍 reaction)
- [Newest Bugs 🙀](https://github.com/11ty/eleventy-fetch/issues?q=is%3Aopen+is%3Aissue+label%3Abug)

94
node_modules/@11ty/eleventy-fetch/eleventy-fetch.js generated vendored Normal file
View File

@ -0,0 +1,94 @@
const { default: PQueue } = require("p-queue");
const debug = require("debug")("Eleventy:Fetch");
const Sources = require("./src/Sources.js");
const RemoteAssetCache = require("./src/RemoteAssetCache.js");
const AssetCache = require("./src/AssetCache.js");
const DirectoryManager = require("./src/DirectoryManager.js");
const globalOptions = {
type: "buffer",
directory: ".cache",
concurrency: 10,
fetchOptions: {},
dryRun: false, // dont write anything to the file system
// *does* affect cache key hash
removeUrlQueryParams: false,
// runs after removeUrlQueryParams, does not affect cache key hash
// formatUrlForDisplay: function(url) {
// return url;
// },
verbose: false, // Changed in 3.0+
hashLength: 30,
};
/* Queue */
let queue = new PQueue({
concurrency: globalOptions.concurrency,
});
queue.on("active", () => {
debug(`Concurrency: ${queue.concurrency}, Size: ${queue.size}, Pending: ${queue.pending}`);
});
let instCache = {};
let directoryManager = new DirectoryManager();
function createRemoteAssetCache(source, rawOptions = {}) {
if (!Sources.isFullUrl(source) && !Sources.isValidSource(source)) {
return Promise.reject(new Error("Invalid source. Received: " + source));
}
let options = Object.assign({}, globalOptions, rawOptions);
let sourceKey = RemoteAssetCache.getRequestId(source, options);
if(!sourceKey) {
return Promise.reject(Sources.getInvalidSourceError(source));
}
if(instCache[sourceKey]) {
return instCache[sourceKey];
}
let inst = new RemoteAssetCache(source, options.directory, options);
inst.setQueue(queue);
inst.setDirectoryManager(directoryManager);
instCache[sourceKey] = inst;
return inst;
}
module.exports = function (source, options) {
let instance = createRemoteAssetCache(source, options);
return instance.queue();
};
Object.defineProperty(module.exports, "concurrency", {
get: function () {
return queue.concurrency;
},
set: function (concurrency) {
queue.concurrency = concurrency;
},
});
module.exports.Fetch = createRemoteAssetCache;
// Deprecated API kept for backwards compat, instead: use default export directly.
// Intentional: queueCallback is ignored here
module.exports.queue = function(source, queueCallback, options) {
let instance = createRemoteAssetCache(source, options);
return instance.queue();
};
module.exports.Util = {
isFullUrl: Sources.isFullUrl,
};
module.exports.RemoteAssetCache = RemoteAssetCache;
module.exports.AssetCache = AssetCache;
module.exports.Sources = Sources;

66
node_modules/@11ty/eleventy-fetch/package.json generated vendored Normal file
View File

@ -0,0 +1,66 @@
{
"name": "@11ty/eleventy-fetch",
"version": "5.1.2",
"description": "Fetch and locally cache remote API calls and assets.",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/11ty/eleventy-fetch.git"
},
"main": "eleventy-fetch.js",
"scripts": {
"test": "ava",
"sample": "node sample",
"format": "prettier . --write"
},
"files": [
"src/",
"eleventy-fetch.js"
],
"engines": {
"node": ">=18"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/11ty"
},
"keywords": [
"eleventy",
"eleventy-utility"
],
"author": {
"name": "Zach Leatherman",
"email": "zachleatherman@gmail.com",
"url": "https://zachleat.com/"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/11ty/eleventy-fetch/issues"
},
"homepage": "https://github.com/11ty/eleventy-fetch#readme",
"devDependencies": {
"ava": "^6.4.1",
"prettier": "^3.7.3"
},
"dependencies": {
"@11ty/eleventy-utils": "^2.0.7",
"@rgrove/parse-xml": "^4.2.0",
"debug": "^4.4.3",
"flatted": "^3.4.2",
"p-queue": "6.6.2"
},
"ava": {
"failFast": false,
"files": [
"./test/*.js"
],
"watchMode": {
"ignoreChanges": [
"**/.cache/**",
"**/.customcache/**"
]
}
}
}

270
node_modules/@11ty/eleventy-fetch/src/AssetCache.js generated vendored Normal file
View File

@ -0,0 +1,270 @@
const fs = require("node:fs");
const path = require("node:path");
const { DateCompare, createHashHexSync } = require("@11ty/eleventy-utils");
const FileCache = require("./FileCache.js");
const Sources = require("./Sources.js");
const debugUtil = require("debug");
const debug = debugUtil("Eleventy:Fetch");
class AssetCache {
#source;
#hash;
#customFilename;
#cache;
#cacheDirectory;
#cacheLocationDirty = false;
#directoryManager;
constructor(source, cacheDirectory, options = {}) {
if(!Sources.isValidSource(source)) {
throw Sources.getInvalidSourceError(source);
}
let uniqueKey = AssetCache.getCacheKey(source, options);
this.uniqueKey = uniqueKey;
this.hash = AssetCache.getHash(uniqueKey, options.hashLength);
this.cacheDirectory = cacheDirectory || ".cache";
this.options = options;
this.defaultDuration = "1d";
this.duration = options.duration || this.defaultDuration;
// Compute the filename only once
if (typeof this.options.filenameFormat === "function") {
this.#customFilename = AssetCache.cleanFilename(this.options.filenameFormat(uniqueKey, this.hash));
if (typeof this.#customFilename !== "string" || this.#customFilename.length === 0) {
throw new Error(`The provided filenameFormat callback function needs to return valid filename characters.`);
}
}
}
log(message) {
if (this.options.verbose) {
console.log(`[11ty/eleventy-fetch] ${message}`);
} else {
debug(message);
}
}
static cleanFilename(filename) {
// Ensure no illegal characters are present (Windows or Linux: forward/backslash, chevrons, colon, double-quote, pipe, question mark, asterisk)
if (filename.match(/([\/\\<>:"|?*]+?)/)) {
let sanitizedFilename = filename.replace(/[\/\\<>:"|?*]+/g, "");
debug(
`[@11ty/eleventy-fetch] Some illegal characters were removed from the cache filename: ${filename} will be cached as ${sanitizedFilename}.`,
);
return sanitizedFilename;
}
return filename;
}
static getCacheKey(source, options) {
// RemoteAssetCache passes in a string here, which skips this check (requestId is already used upstream)
if (Sources.isValidComplexSource(source)) {
if(options.requestId) {
return options.requestId;
}
if(typeof source.toString === "function") {
// return source.toString();
let toStr = source.toString();
if(toStr !== "function() {}" && toStr !== "[object Object]") {
return toStr;
}
}
throw Sources.getInvalidSourceError(source);
}
return source;
}
// Defult hashLength also set in global options, duplicated here for tests
// v5.0+ key can be Array or literal
static getHash(key, hashLength = 30) {
if (!Array.isArray(key)) {
key = [key];
}
let result = createHashHexSync(...key);
return result.slice(0, hashLength);
}
get source() {
return this.#source;
}
set source(source) {
this.#source = source;
}
get hash() {
return this.#hash;
}
set hash(value) {
if (value !== this.#hash) {
this.#cacheLocationDirty = true;
}
this.#hash = value;
}
get cacheDirectory() {
return this.#cacheDirectory;
}
set cacheDirectory(dir) {
if (dir !== this.#cacheDirectory) {
this.#cacheLocationDirty = true;
}
this.#cacheDirectory = dir;
}
get cacheFilename() {
if (typeof this.#customFilename === "string" && this.#customFilename.length > 0) {
return this.#customFilename;
}
return `eleventy-fetch-${this.hash}`;
}
get rootDir() {
// Work in an AWS Lambda (serverless)
// https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html
// Bad: LAMBDA_TASK_ROOT is /var/task/ on AWS so we must use ELEVENTY_ROOT
// When using ELEVENTY_ROOT, cacheDirectory must be relative
// (we are bundling the cache files into the serverless function)
if (
process.env.LAMBDA_TASK_ROOT &&
process.env.ELEVENTY_ROOT &&
!this.cacheDirectory.startsWith("/")
) {
return path.resolve(process.env.ELEVENTY_ROOT, this.cacheDirectory);
}
// otherwise, it is recommended to use somewhere in /tmp/ for serverless (otherwise it wont write)
return path.resolve(this.cacheDirectory);
}
get cachePath() {
return path.join(this.rootDir, this.cacheFilename);
}
get cache() {
if (!this.#cache || this.#cacheLocationDirty) {
let cache = new FileCache(this.cacheFilename, {
dir: this.rootDir,
source: this.source,
});
cache.setDefaultType(this.options.type);
cache.setDryRun(this.options.dryRun);
cache.setDirectoryManager(this.#directoryManager);
this.#cache = cache;
this.#cacheLocationDirty = false;
}
return this.#cache;
}
getDurationMs(duration = "0s") {
return DateCompare.getDurationMs(duration);
}
setDirectoryManager(manager) {
this.#directoryManager = manager;
}
async save(contents, type = "buffer", metadata = {}) {
if(!contents) {
throw new Error("save(contents) expects contents (was falsy)");
}
this.cache.set(type, contents, metadata);
// Dry-run handled downstream
this.cache.save();
}
getCachedContents() {
return this.cache.getContents();
}
getCachedValue() {
if(this.options.returnType === "response") {
return {
...this.cachedObject.metadata?.response,
body: this.getCachedContents(),
cache: "hit",
}
}
return this.getCachedContents();
}
getCachedTimestamp() {
return this.cachedObject?.cachedAt;
}
isCacheValid(duration = this.duration) {
if(!this.cachedObject || !this.cachedObject?.cachedAt) {
return false;
}
if(this.cachedObject?.type && DateCompare.isTimestampWithinDuration(this.cachedObject?.cachedAt, duration)) {
return this.cache.hasContents(this.cachedObject?.type); // check file system to make files havent been purged.
}
return false;
}
get cachedObject() {
return this.cache.get();
}
// Deprecated
needsToFetch(duration) {
return !this.isCacheValid(duration);
}
// This is only included for completenes—not on the docs.
async fetch(optionsOverride = {}) {
if (this.isCacheValid(optionsOverride.duration)) {
// promise
debug(`Using cached version of: ${this.uniqueKey}`);
return this.getCachedValue();
}
debug(`Saving ${this.uniqueKey} to ${this.cacheFilename}`);
await this.save(this.source, optionsOverride.type);
return this.source;
}
// for testing
hasAnyCacheFiles() {
for(let p of this.cache.getAllPossibleFilePaths()) {
if(fs.existsSync(p)) {
return true;
}
}
return false;
}
// for testing
async destroy() {
await Promise.all(this.cache.getAllPossibleFilePaths().map(path => {
if (fs.existsSync(path)) {
return fs.unlinkSync(path);
}
}))
}
}
module.exports = AssetCache;

View File

@ -0,0 +1,22 @@
const fs = require("node:fs");
const debugAssets = require("debug")("Eleventy:Assets");
class DirectoryManager {
#dirs = new Set();
isCreated(dir) {
return this.#dirs.has(dir);
}
create(dir) {
if(this.isCreated(dir)) {
return;
}
this.#dirs.add(dir);
debugAssets("Creating directory %o", dir);
fs.mkdirSync(dir, { recursive: true });
}
}
module.exports = DirectoryManager;

24
node_modules/@11ty/eleventy-fetch/src/ExistsCache.js generated vendored Normal file
View File

@ -0,0 +1,24 @@
const fs = require("node:fs");
// const debug = require("debug")("Eleventy:Assets");
class ExistsCache {
#checks = new Map();
#count = 0;
set(target, value) {
this.#checks.set(target, Boolean(value));
}
exists(target) {
if(this.#checks.has(target)) {
return this.#checks.get(target);
}
let exists = fs.existsSync(target);
this.#count++;
this.#checks.set(target, exists);
return exists;
}
}
module.exports = ExistsCache;

237
node_modules/@11ty/eleventy-fetch/src/FileCache.js generated vendored Normal file
View File

@ -0,0 +1,237 @@
const fs = require("node:fs");
const path = require("node:path");
const debugUtil = require("debug");
const { parse } = require("flatted");
const debug = debugUtil("Eleventy:Fetch");
const debugAssets = debugUtil("Eleventy:Assets");
const DirectoryManager = require("./DirectoryManager.js");
const ExistsCache = require("./ExistsCache.js");
let existsCache = new ExistsCache();
class FileCache {
#source;
#directoryManager;
#metadata;
#defaultType;
#contents;
#dryRun = false;
#cacheDirectory = ".cache";
#savePending = false;
#counts = {
read: 0,
write: 0,
};
constructor(cacheFilename, options = {}) {
this.cacheFilename = cacheFilename;
if(options.dir) {
this.#cacheDirectory = options.dir;
}
if(options.source) {
this.#source = options.source;
}
}
setDefaultType(type) {
if(type) {
this.#defaultType = type;
}
}
setDryRun(val) {
this.#dryRun = Boolean(val);
}
setDirectoryManager(manager) {
this.#directoryManager = manager;
}
ensureDir() {
if (this.#dryRun || existsCache.exists(this.#cacheDirectory)) {
return;
}
if(!this.#directoryManager) {
// standalone fallback (for tests)
this.#directoryManager = new DirectoryManager();
}
this.#directoryManager.create(this.#cacheDirectory);
}
set(type, contents, extraMetadata = {}) {
this.#savePending = true;
this.#metadata = {
cachedAt: Date.now(),
type,
// source: this.#source,
metadata: extraMetadata,
};
this.#contents = contents;
}
get fsPath() {
return path.join(this.#cacheDirectory, this.cacheFilename);
}
getContentsPath(type) {
if(!type) {
throw new Error("Missing cache type for " + this.fsPath);
}
// normalize to storage type
if(type === "xml") {
type = "text";
} else if(type === "parsed-xml") {
type = "json";
}
return `${this.fsPath}.${type}`;
}
// only when side loaded (buffer content)
get contentsPath() {
return this.getContentsPath(this.#metadata?.type);
}
get() {
if(this.#metadata) {
return this.#metadata;
}
if(!existsCache.exists(this.fsPath)) {
return;
}
debug(`Fetching from cache ${this.fsPath}`);
if(this.#source) {
debugAssets("[11ty/eleventy-fetch] Reading via %o", this.#source);
} else {
debugAssets("[11ty/eleventy-fetch] Reading %o", this.fsPath);
}
this.#counts.read++;
let data = fs.readFileSync(this.fsPath, "utf8");
let json;
// Backwards compatibility with previous caches usingn flat-cache and `flatted`
if(data.startsWith(`[["1"],`)) {
let flattedParsed = parse(data);
if(flattedParsed?.[0]?.value) {
json = flattedParsed?.[0]?.value
}
} else {
json = JSON.parse(data);
}
this.#metadata = json;
return json;
}
_backwardsCompatGetContents(rawData, type) {
if (type === "json") {
return rawData.contents;
} else if (type === "text") {
return rawData.contents.toString();
}
// buffer
return Buffer.from(rawData.contents);
}
hasContents(type) {
if(this.#contents) {
return true;
}
if(this.get()?.contents) { // backwards compat with very old caches
return true;
}
return existsCache.exists(this.getContentsPath(type));
}
getType() {
return this.#metadata?.type || this.#defaultType;
}
getContents() {
if(this.#contents) {
return this.#contents;
}
let metadata = this.get();
// backwards compat with old caches
if(metadata?.contents) {
// already parsed, part of the top level file
let normalizedContent = this._backwardsCompatGetContents(this.get(), this.getType());
this.#contents = normalizedContent;
return normalizedContent;
}
if(!existsCache.exists(this.contentsPath)) {
return;
}
debug(`Fetching from cache ${this.contentsPath}`);
if(this.#source) {
debugAssets("[11ty/eleventy-fetch] Reading (side loaded) via %o", this.#source);
} else {
debugAssets("[11ty/eleventy-fetch] Reading (side loaded) %o", this.contentsPath);
}
// It is intentional to store contents in a separate file from the metadata: we dont want to
// have to read the entire contents via JSON.parse (or otherwise) to check the cache validity.
this.#counts.read++;
let type = metadata?.type || this.getType();
let data = fs.readFileSync(this.contentsPath);
if (type === "json" || type === "parsed-xml") {
data = JSON.parse(data);
}
this.#contents = data;
return data;
}
save() {
if(this.#dryRun || !this.#savePending || this.#metadata && Object.keys(this.#metadata) === 0) {
return;
}
this.ensureDir(); // doesnt add to counts (yet?)
// contents before metadata
debugAssets("[11ty/eleventy-fetch] Writing %o (side loaded) from %o", this.contentsPath, this.#source);
this.#counts.write++;
// the contents must exist before the cache metadata are saved below
let contents = this.#contents;
let type = this.getType();
if (type === "json" || type === "parsed-xml") {
contents = JSON.stringify(contents);
}
fs.writeFileSync(this.contentsPath, contents);
debug(`Writing ${this.contentsPath}`);
this.#counts.write++;
debugAssets("[11ty/eleventy-fetch] Writing %o from %o", this.fsPath, this.#source);
fs.writeFileSync(this.fsPath, JSON.stringify(this.#metadata), "utf8");
debug(`Writing ${this.fsPath}`);
}
// for testing
getAllPossibleFilePaths() {
let types = ["text", "buffer", "json"];
let paths = new Set();
paths.add(this.fsPath);
for(let type of types) {
paths.add(this.getContentsPath(type));
}
return Array.from(paths);
}
}
module.exports = FileCache;

View File

@ -0,0 +1,235 @@
const debugUtil = require("debug");
const { parseXml } = require('@rgrove/parse-xml');
const Sources = require("./Sources.js");
const AssetCache = require("./AssetCache.js");
const debug = debugUtil("Eleventy:Fetch");
const debugAssets = debugUtil("Eleventy:Assets");
class RemoteAssetCache extends AssetCache {
#queue;
#queuePromise;
#fetchPromise;
#lastFetchType;
constructor(source, cacheDirectory, options = {}) {
let requestId = RemoteAssetCache.getRequestId(source, options);
super(requestId, cacheDirectory, options);
this.source = source;
this.options = options;
this.displayUrl = RemoteAssetCache.convertUrlToString(source, options);
this.fetchCount = 0;
}
static getRequestId(source, options = {}) {
if (Sources.isValidComplexSource(source)) {
return this.getCacheKey(source, options);
}
if (options.removeUrlQueryParams) {
let cleaned = this.cleanUrl(source);
return this.getCacheKey(cleaned, options);
}
return this.getCacheKey(source, options);
}
static getCacheKey(source, options) {
let cacheKey = {
source: AssetCache.getCacheKey(source, options),
};
if(options.type === "xml" || options.type === "parsed-xml") {
cacheKey.type = options.type;
}
if (options.fetchOptions) {
if (options.fetchOptions.method && options.fetchOptions.method !== "GET") {
cacheKey.method = options.fetchOptions.method;
}
if (options.fetchOptions.body) {
cacheKey.body = options.fetchOptions.body;
}
}
if(Object.keys(cacheKey).length > 1) {
return JSON.stringify(cacheKey);
}
return cacheKey.source;
}
static cleanUrl(url) {
if(!Sources.isFullUrl(url)) {
return url;
}
let cleanUrl;
if(typeof url === "string" || typeof url.toString === "function") {
cleanUrl = new URL(url);
} else if(url instanceof URL) {
cleanUrl = url;
} else {
throw new Error("Invalid source for cleanUrl: " + url)
}
cleanUrl.search = new URLSearchParams([]);
return cleanUrl.toString();
}
static convertUrlToString(source, options = {}) {
// removes query params
source = RemoteAssetCache.cleanUrl(source);
let { formatUrlForDisplay } = options;
if (formatUrlForDisplay && typeof formatUrlForDisplay === "function") {
return "" + formatUrlForDisplay(source);
}
return "" + source;
}
async getResponseValue(response, type) {
if (type === "json") {
return response.json();
} else if (type === "text" || type === "xml") {
return response.text();
} else if(type === "parsed-xml") {
return parseXml(await response.text());
}
return Buffer.from(await response.arrayBuffer());
}
setQueue(queue) {
this.#queue = queue;
}
// Returns raw Promise
queue() {
if(!this.#queue) {
throw new Error("Missing `#queue` instance.");
}
if(!this.#queuePromise) {
// optionsOverride not supported on fetch here for re-use
this.#queuePromise = this.#queue.add(() => this.fetch()).catch((e) => {
this.#queuePromise = undefined;
throw e;
});
}
return this.#queuePromise;
}
isCacheValid(duration = undefined) {
// uses this.options.duration if not explicitly defined here
return super.isCacheValid(duration);
}
// if last fetch was a cache hit (no fetch occurred) or a cache miss (fetch did occur)
// used by Eleventy Image in disk cache checks.
wasLastFetchCacheHit() {
return this.#lastFetchType === "hit";
}
async #fetch(optionsOverride = {}) {
// Important: no disk writes when dryRun
// As of Fetch v4, reads are now allowed!
if (this.isCacheValid(optionsOverride.duration)) {
debug(`Cache hit for ${this.displayUrl}`);
this.#lastFetchType = "hit";
return super.getCachedValue();
}
this.#lastFetchType = "miss";
try {
let isDryRun = optionsOverride.dryRun || this.options.dryRun;
this.log(`Fetching ${this.displayUrl}`);
let body;
let metadata = {};
let type = optionsOverride.type || this.options.type;
if (typeof this.source === "object" && typeof this.source.then === "function") {
body = await this.source;
} else if (typeof this.source === "function") {
// sync or async function
body = await this.source();
} else {
let fetchOptions = optionsOverride.fetchOptions || this.options.fetchOptions || {};
if(!Sources.isFullUrl(this.source)) {
throw Sources.getInvalidSourceError(this.source);
}
this.fetchCount++;
debugAssets("[11ty/eleventy-fetch] Fetching %o", this.source);
// v5: now using global (Node-native or otherwise) fetch instead of node-fetch
let response;
let error;
try {
response = await fetch(this.source, fetchOptions);
if (response?.ok) {
metadata.response = {
url: response.url,
status: response.status,
headers: Object.fromEntries(response.headers.entries()),
};
body = await this.getResponseValue(response, type);
}
} catch(e) {
error = e;
}
if(!response?.ok || error) {
let errorMessage = response?.status || response?.statusText ? ` (${response?.status}): ${response.statusText}` : `: ${error.message}`;
throw new Error(`Bad response for ${this.displayUrl}${errorMessage}`, {
cause: error || response
})
}
}
if (!isDryRun) {
await super.save(body, type, metadata);
}
if(this.options.returnType === "response") {
return {
...metadata.response,
body,
cache: "miss",
}
}
return body;
} catch (e) {
if (this.cachedObject && this.getDurationMs(this.duration) > 0) {
debug(`Error fetching ${this.displayUrl}. Message: ${e.message}`);
debug(`Failing gracefully with an expired cache entry.`);
return super.getCachedValue();
} else {
return Promise.reject(e);
}
}
}
// async but not explicitly declared for promise equality checks
// returns a Promise
async fetch(optionsOverride = {}) {
if(!this.#fetchPromise) {
// one at a time. clear when finished
this.#fetchPromise = this.#fetch(optionsOverride).finally(() => {
this.#fetchPromise = undefined;
});
}
return this.#fetchPromise;
}
}
module.exports = RemoteAssetCache;

50
node_modules/@11ty/eleventy-fetch/src/Sources.js generated vendored Normal file
View File

@ -0,0 +1,50 @@
class Sources {
static isFullUrl(url) {
try {
if(url instanceof URL) {
return true;
}
new URL(url);
return true;
} catch (e) {
// invalid url OR already a local path
return false;
}
}
static isValidSource(source) {
// String (url?)
if(typeof source === "string") {
return true;
}
if(this.isValidComplexSource(source)) {
return true;
}
return false;
}
static isValidComplexSource(source) {
// Async/sync Function
if(typeof source === "function") {
return true;
}
if(typeof source === "object") {
// Raw promise
if(typeof source.then === "function") {
return true;
}
// anything string-able
if(typeof source.toString === "function") {
return true;
}
}
return false;
}
static getInvalidSourceError(source, errorCause) {
return new Error("Invalid source: must be a string, function, or Promise. If a function or Promise, you must provide a `toString()` method or an `options.requestId` unique key. Received: " + source, { cause: errorCause });
}
}
module.exports = Sources;

40
node_modules/@11ty/eleventy-img/README.md generated vendored Normal file
View File

@ -0,0 +1,40 @@
<p align="center"><img src="https://www.11ty.dev/img/logo-github.svg" width="200" height="200" alt="eleventy Logo"></p>
# eleventy-img
Requires Node 18+
Low level utility to perform build-time image transformations for both vector and raster images. Output multiple sizes, save multiple formats, cache remote images locally. Uses the [sharp](https://sharp.pixelplumbing.com/) image processor.
You maintain full control of your HTML. Use with `<picture>` or `<img>` or CSS `background-image`, or others! Works great to add `width` and `height` to your images!
## [The full `eleventy-img` documentation is on 11ty.dev](https://www.11ty.dev/docs/plugins/image/).
* _This is a plugin for the [Eleventy static site generator](https://www.11ty.dev/)._
* Find more [Eleventy plugins](https://www.11ty.dev/docs/plugins/).
* Please star [Eleventy on GitHub](https://github.com/11ty/eleventy/), follow [@eleven_ty](https://twitter.com/eleven_ty) on Twitter, and support [11ty on Open Collective](https://opencollective.com/11ty)
[![npm Version](https://img.shields.io/npm/v/@11ty/eleventy-img.svg?style=for-the-badge)](https://www.npmjs.com/package/@11ty/eleventy-img) [![GitHub issues](https://img.shields.io/github/issues/11ty/eleventy-img.svg?style=for-the-badge)](https://github.com/11ty/eleventy-img/issues)
## Installation
```
npm install --save-dev @11ty/eleventy-img
```
_[The full `eleventy-img` documentation is on 11ty.dev](https://www.11ty.dev/docs/plugins/image/)._
## Tests
```
npm run test
```
- We use the [ava JavaScript test runner](https://github.com/avajs/ava) ([Assertions documentation](https://github.com/avajs/ava/blob/master/docs/03-assertions.md))
- To keep tests fast, thou shalt try to avoid writing files in tests.
## Community Roadmap
- [Top Feature Requests](https://github.com/11ty/eleventy-img/issues?q=label%3Aneeds-votes+sort%3Areactions-%2B1-desc+label%3Aenhancement) (Add your own votes using the 👍 reaction)
- [Top Bugs 😱](https://github.com/11ty/eleventy-img/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Areactions-%2B1-desc) (Add your own votes using the 👍 reaction)
- [Newest Bugs 🙀](https://github.com/11ty/eleventy-img/issues?q=is%3Aopen+is%3Aissue+label%3Abug)

131
node_modules/@11ty/eleventy-img/eleventy-image.webc generated vendored Normal file
View File

@ -0,0 +1,131 @@
<!---
Supported attribute list:
* src (required)
* width
* formats
* url-path
* output-dir
<img
webc:is="eleventy-image"
src="./src/img/possum-geri.png"
alt="The possum is Eleventys mascot"
width="222, 350"
class="some-custom-class"
sizes="(min-width: 43.75em) 100px, 15vw">
Alternative attribute formats:
:width="[222, 350]"
formats="avif,webp,jpeg"
:formats="['avif', 'webp', 'jpeg']"
--->
<script webc:type="js">
const path = require("path");
// TODO expose this for re-use in a provided shortcode.
async function imagePlugin(attributes, globalPluginOptions) {
if(!attributes.src) {
throw new Error("Missing `src` attribute on <eleventy-image>");
}
// TODO allow remote optimization automatically on full urls
let imagePackage;
let defaultGlobalAttributes;
if(globalPluginOptions) {
defaultGlobalAttributes = globalPluginOptions.defaultAttributes;
delete globalPluginOptions.defaultAttributes;
imagePackage = globalPluginOptions.packages?.image;
delete globalPluginOptions.packages;
}
if(!imagePackage) {
imagePackage = require("@11ty/eleventy-img");
}
let instanceOptions = {};
// Note that multiple widths require a `sizes`
if(attributes.width) {
if(typeof attributes.width === "string") {
instanceOptions.widths = attributes.width.split(",").map(entry => parseInt(entry, 10));
delete attributes.width;
} else if(Array.isArray(attributes.width)) {
instanceOptions.widths = attributes.width;
delete attributes.width;
}
}
if(attributes.formats) {
if(typeof attributes.formats === "string") {
instanceOptions.formats = attributes.formats.split(",").map(entry => entry.trim());
delete attributes.formats;
} else if(Array.isArray(attributes.formats)) {
instanceOptions.formats = attributes.formats;
delete attributes.formats;
}
}
// These defaults are set only if addPlugin was **not** called:
if(!globalPluginOptions) {
// Using eleventy.directories global data (Eleventy 2.0.2+)
if(eleventy.directories) {
instanceOptions.urlPath = "/img/";
// write to output folder by default
instanceOptions.outputDir = path.join(eleventy.directories.output, instanceOptions.urlPath);
}
}
// Overrides via attributes (hopefully you dont need these)
if(attributes.urlPath) {
instanceOptions.urlPath = attributes.urlPath;
delete attributes.urlPath;
if(eleventy.directories && !attributes.outputDir) {
// use output folder if available (Eleventy v2.0.2+)
instanceOptions.outputDir = path.join(eleventy.directories.output, instanceOptions.urlPath);
}
}
if(attributes.outputDir) {
instanceOptions.outputDir = attributes.outputDir;
delete attributes.outputDir;
}
let options = Object.assign({}, globalPluginOptions, instanceOptions);
// see Util.addConfig
if(globalPluginOptions.eleventyConfig) {
Object.defineProperty(options, "eleventyConfig", {
value: globalPluginOptions.eleventyConfig,
enumerable: false,
});
}
let metadata = await imagePackage(src, options);
let imageAttributes = Object.assign({}, defaultGlobalAttributes, attributes);
// You bet we throw an error on missing alt in `imageAttributes` (alt="" works okay)
return imagePackage.generateHTML(metadata, imageAttributes);
};
(async () => {
let globalPluginOptions;
// fetch global options from from addPlugin call
if(typeof __private_eleventyImageConfigurationOptions === "function") {
globalPluginOptions = __private_eleventyImageConfigurationOptions();
}
if(!("filterPublicAttributes" in webc)) {
throw new Error("The <eleventy-image> WebC component requires WebC v0.10.1+");
}
let attributes = webc.filterPublicAttributes(webc.attributes);
return imagePlugin(attributes, globalPluginOptions);
})();
</script>

29
node_modules/@11ty/eleventy-img/eslint.config.mjs generated vendored Normal file
View File

@ -0,0 +1,29 @@
import { defineConfig } from "eslint/config";
import pluginJs from "@eslint/js";
import pluginStylistic from "@stylistic/eslint-plugin-js";
import globals from "globals";
const GLOB_JS = '**/*.?([cm])js';
export default defineConfig([
{
files: [GLOB_JS],
plugins: {
js: pluginJs,
"@stylistic/js": pluginStylistic
},
extends: [
"js/recommended",
],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: { ...globals.node },
},
rules: {
"@stylistic/js/indent": ["error", 2],
"@stylistic/js/linebreak-style": ["error", "unix"],
"@stylistic/js/semi": ["error", "always"],
},
},
]);

151
node_modules/@11ty/eleventy-img/img.js generated vendored Normal file
View File

@ -0,0 +1,151 @@
const {default: PQueue} = require("p-queue");
const DeferCounter = require("./src/defer-counter.js");
const BuildLogger = require("./src/build-logger.js");
const Util = require("./src/util.js");
const Image = require("./src/image.js");
const DirectoryManager = require("./src/directory-manager.js");
// For exports
const getImageSize = require("image-size");
const ImagePath = require("./src/image-path.js");
const debug = require("debug")("Eleventy:Image");
const GLOBAL_OPTIONS = require("./src/global-options.js").defaults;
const { memCache, diskCache } = require("./src/caches.js");
let deferCounter = new DeferCounter();
let buildLogger = new BuildLogger();
let directoryManager = new DirectoryManager();
/* Queue */
let processingQueue = new PQueue({
concurrency: GLOBAL_OPTIONS.concurrency
});
processingQueue.on("active", () => {
debug( `Concurrency: ${processingQueue.concurrency}, Size: ${processingQueue.size}, Pending: ${processingQueue.pending}` );
});
// TODO move this into build-logger.js
function setupLogger(eleventyConfig, opts) {
if(typeof eleventyConfig?.logger?.logWithOptions !== "function" || Util.isRequested(opts?.generatedVia)) {
return;
}
buildLogger.setupOnce(eleventyConfig, () => {
// before build
deferCounter.resetCount();
memCache.resetCount();
diskCache.resetCount();
}, () => {
// after build
let [memoryCacheHit] = memCache.getCount();
let [diskCacheHit, diskCacheMiss] = diskCache.getCount();
// these are unique images, multiple requests to optimize the same image are de-duplicated
let deferCount = deferCounter.getCount();
let cachedCount = memoryCacheHit + diskCacheHit;
let optimizedCount = diskCacheMiss + diskCacheHit + memoryCacheHit + deferCount;
let msg = [];
msg.push(`${optimizedCount} ${optimizedCount !== 1 ? "images" : "image"} optimized`);
if(cachedCount > 0 || deferCount > 0) {
let innerMsg = [];
if(cachedCount > 0) {
innerMsg.push(`${cachedCount} cached`);
}
if(deferCount > 0) {
innerMsg.push(`${deferCount} deferred`);
}
msg.push(` (${innerMsg.join(", ")})`);
}
if(optimizedCount > 0 || cachedCount > 0 || deferCount > 0) {
eleventyConfig?.logger?.logWithOptions({
message: msg.join(""),
prefix: "[11ty/eleventy-img]",
color: "green",
});
}
});
}
function createImage(src, opts = {}) {
let eleventyConfig = opts.eleventyConfig;
if(opts?.eleventyConfig && {}.propertyIsEnumerable.call(opts, "eleventyConfig")) {
delete opts.eleventyConfig;
Util.addConfig(eleventyConfig, opts);
}
let img = Image.create(src, opts);
img.setQueue(processingQueue);
img.setBuildLogger(buildLogger);
img.setDirectoryManager(directoryManager);
setupLogger(eleventyConfig, opts);
if(opts.transformOnRequest) {
deferCounter.increment(src);
}
return img;
};
function queueImage(src, opts = {}) {
if(src.constructor?.name === "UserConfig") {
throw new Error(`Eleventy Images default export is not an Eleventy Plugin and cannot be used with \`eleventyConfig.addPlugin()\`. Use the \`eleventyImageTransformPlugin\` named export instead, like this: \`import { eleventyImageTransformPlugin } from '@11ty/eleventy-img';\` or this: \`const { eleventyImageTransformPlugin } = require('@11ty/eleventy-img');\``);
}
let img = createImage(src, opts);
return img.queue();
}
// Exports
module.exports = queueImage;
Object.defineProperty(module.exports, "concurrency", {
get: function() {
return processingQueue.concurrency;
},
set: function(concurrency) {
processingQueue.concurrency = concurrency;
},
});
module.exports.Util = Util;
module.exports.Image = Image;
module.exports.ImagePath = ImagePath;
module.exports.ImageSize = getImageSize;
// Backwards compat
module.exports.statsSync = Image.statsSync;
module.exports.statsByDimensionsSync = Image.statsByDimensionsSync;
module.exports.getFormats = Image.getFormatsArray;
module.exports.getWidths = Image.getValidWidths;
module.exports.getHash = function getHash(src, options) {
let img = new Image(src, options);
return img.getHash();
};
module.exports.setupLogger = setupLogger;
const generateHTML = require("./src/generate-html.js");
module.exports.generateHTML = generateHTML;
module.exports.generateObject = generateHTML.generateObject;
const { eleventyWebcOptionsPlugin } = require("./src/webc-options-plugin.js");
module.exports.eleventyImagePlugin = eleventyWebcOptionsPlugin;
module.exports.eleventyImageWebcOptionsPlugin = eleventyWebcOptionsPlugin;
const { eleventyImageTransformPlugin } = require("./src/transform-plugin.js");
module.exports.eleventyImageTransformPlugin = eleventyImageTransformPlugin;
const { eleventyImageOnRequestDuringServePlugin } = require("./src/on-request-during-serve-plugin.js");
module.exports.eleventyImageOnRequestDuringServePlugin = eleventyImageOnRequestDuringServePlugin;

75
node_modules/@11ty/eleventy-img/package.json generated vendored Normal file
View File

@ -0,0 +1,75 @@
{
"name": "@11ty/eleventy-img",
"version": "6.0.4",
"description": "Low level utility to perform build-time image transformations.",
"publishConfig": {
"access": "public"
},
"main": "img.js",
"engines": {
"node": ">=18"
},
"scripts": {
"pretest": "eslint img.js src/**.js test/**.js",
"test": "ava --no-worker-threads",
"watch": "ava --no-worker-threads --watch",
"sample": "cd sample && node sample.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/11ty/eleventy-img.git"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/11ty"
},
"keywords": [
"eleventy",
"eleventy-utility"
],
"author": {
"name": "Zach Leatherman",
"email": "zachleatherman@gmail.com",
"url": "https://zachleat.com/"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/11ty/eleventy-img/issues"
},
"homepage": "https://github.com/11ty/eleventy-img#readme",
"dependencies": {
"@11ty/eleventy-fetch": "^5.1.0",
"@11ty/eleventy-utils": "^2.0.7",
"brotli-size": "^4.0.0",
"debug": "^4.4.0",
"entities": "^6.0.0",
"image-size": "^1.2.1",
"p-queue": "^6.6.2",
"sharp": "^0.33.5"
},
"devDependencies": {
"@11ty/eleventy": "^3.0.0",
"@11ty/eleventy-plugin-webc": "^0.11.2",
"@eslint/js": "^9.26.0",
"@stylistic/eslint-plugin-js": "^4.2.0",
"ava": "^6.3.0",
"eslint": "^9.26.0",
"exifr": "^7.1.3",
"globals": "^16.1.0",
"pixelmatch": "^5.3.0"
},
"ava": {
"failFast": false,
"files": [
"./test/*.{js,cjs,mjs}"
],
"watchMode": {
"ignoreChanges": [
"./.cache/*",
"./img/*",
"./test/img/*",
"./test/**/generated*"
]
}
}
}

View File

@ -0,0 +1,3 @@
module.exports = function() {
throw new Error("`svgCompressionSize: 'br'` feature is not supported in browser.");
};

View File

@ -0,0 +1,5 @@
const brotliSize = require("brotli-size");
module.exports = function(contents) {
return brotliSize.sync(contents);
};

View File

@ -0,0 +1,3 @@
module.exports = function() {
throw new Error("Sharp is not supported in browser.");
};

View File

@ -0,0 +1,3 @@
const sharp = require("sharp");
module.exports = sharp;

66
node_modules/@11ty/eleventy-img/src/build-logger.js generated vendored Normal file
View File

@ -0,0 +1,66 @@
const path = require("node:path");
const { TemplatePath } = require("@11ty/eleventy-utils");
const Util = require("./util.js");
class BuildLogger {
#eleventyConfig;
constructor() {
this.hasAssigned = false;
}
setupOnce(eleventyConfig, beforeCallback, afterCallback) {
if(this.hasAssigned) {
return;
}
this.hasAssigned = true;
this.#eleventyConfig = eleventyConfig;
eleventyConfig.on("eleventy.before", beforeCallback);
eleventyConfig.on("eleventy.after", afterCallback);
eleventyConfig.on("eleventy.reset", () => {
this.hasAssigned = false;
beforeCallback(); // we run this on reset because the before callback will have disappeared (as the config reset)
});
}
getFriendlyImageSource(imageSource) {
if(Buffer.isBuffer(imageSource)) {
return `<Buffer>`;
}
if(Util.isRemoteUrl(imageSource)) {
return imageSource;
}
if(path.isAbsolute(imageSource)) {
// convert back to relative url
return TemplatePath.addLeadingDotSlash(path.relative(path.resolve("."), imageSource));
}
return TemplatePath.addLeadingDotSlash(imageSource);
}
log(message, options = {}, logOptions = {}) {
if(typeof this.#eleventyConfig?.logger?.logWithOptions !== "function" || options.transformOnRequest) {
return;
}
this.#eleventyConfig.logger.logWithOptions(Object.assign({
message: `${message}${options.generatedVia ? ` (${options.generatedVia})` : ""}`,
type: "log",
prefix: "[11ty/eleventy-img]"
}, logOptions));
}
error(message, options = {}, logOptions = {}) {
logOptions.type = "error";
logOptions.force = true;
this.log(message, options, logOptions);
}
}
module.exports = BuildLogger;

16
node_modules/@11ty/eleventy-img/src/caches.js generated vendored Normal file
View File

@ -0,0 +1,16 @@
const MemoryCache = require("./memory-cache.js");
const DiskCache = require("./disk-cache.js");
const ExistsCache = require("./exists-cache.js");
let memCache = new MemoryCache();
let existsCache = new ExistsCache();
let diskCache = new DiskCache();
diskCache.setExistsCache(existsCache);
module.exports = {
memCache,
diskCache,
existsCache
};

27
node_modules/@11ty/eleventy-img/src/defer-counter.js generated vendored Normal file
View File

@ -0,0 +1,27 @@
class DeferCounter {
constructor() {
this.resetCount();
}
resetCount() {
this.deferCount = 0;
this.inputs = new Map();
}
getCount() {
return this.deferCount;
}
increment(input) {
if(input) {
if(this.inputs.has(input)) {
return;
}
this.inputs.set(input, true);
}
this.deferCount++;
}
}
module.exports = DeferCounter;

View File

@ -0,0 +1,29 @@
const fs = require("node:fs");
const path = require("node:path");
const debugUtil = require("debug");
const debugAssets = debugUtil("Eleventy:Assets");
class DirectoryManager {
#dirs = new Set();
isCreated(dir) {
return this.#dirs.has(dir);
}
create(dir) {
if(this.isCreated(dir)) {
return;
}
this.#dirs.add(dir);
debugAssets("[11ty/eleventy-img] Creating directory %o", dir);
fs.mkdirSync(dir, { recursive: true });
}
createFromFile(filepath) {
let dir = path.dirname(filepath);
this.create(dir);
}
}
module.exports = DirectoryManager;

54
node_modules/@11ty/eleventy-img/src/disk-cache.js generated vendored Normal file
View File

@ -0,0 +1,54 @@
// const debug = require("debug")("Eleventy:Image");
class DiskCache {
#existsCache;
constructor() {
this.hitCounter = 0;
this.missCounter = 0;
this.inputs = new Map();
}
setExistsCache(existsCache) {
this.#existsCache = existsCache;
}
resetCount() {
this.hitCounter = 0;
this.missCounter = 0;
}
getCount() {
return [this.hitCounter, this.missCounter];
}
isCached(targetFile, sourceInput, incrementCounts = true) {
if(!this.#existsCache) {
throw new Error("Missing `#existsCache`");
}
// Disk cache runs once per output file, so we only increment counts once per input
if(this.inputs.has(sourceInput)) {
incrementCounts = false;
}
this.inputs.set(sourceInput, true);
if(this.#existsCache?.exists(targetFile)) {
if(incrementCounts) {
this.hitCounter++;
}
// debug("Images re-used (via disk cache): %o", this.hitCounter);
return true;
}
if(incrementCounts) {
this.missCounter++;
}
return false;
}
}
module.exports = DiskCache;

40
node_modules/@11ty/eleventy-img/src/exists-cache.js generated vendored Normal file
View File

@ -0,0 +1,40 @@
const fs = require("node:fs");
const Util = require("./util.js");
// Checks both files and directories
class ExistsCache {
#exists = new Map();
constructor() {
this.lookupCount = 0;
}
get size() {
return this.#exists.size;
}
has(path) {
return this.#exists.has(path);
}
// Relative paths (to root directory) expected (but not enforced due to perf costs)
exists(path) {
if(Util.isFullUrl(path)) {
return false;
}
if (!this.#exists.has(path)) {
let exists = fs.existsSync(path);
this.lookupCount++;
// mark for next time
this.#exists.set(path, Boolean(exists));
return exists;
}
return this.#exists.get(path);
}
}
module.exports = ExistsCache;

View File

@ -0,0 +1,14 @@
const fs = require("node:fs");
const debugUtil = require("debug");
const debugAssets = debugUtil("Eleventy:Assets");
module.exports = async function createSvg(sharpInstance) {
let input = sharpInstance.options.input;
let svgBuffer = input.buffer;
if(svgBuffer) { // remote URL already has buffer
return svgBuffer;
} else { // local file system
debugAssets("[11ty/eleventy-img] Reading %o", input.file);
return fs.readFileSync(input.file);
}
};

220
node_modules/@11ty/eleventy-img/src/generate-html.js generated vendored Normal file
View File

@ -0,0 +1,220 @@
const { escapeAttribute } = require("entities");
const LOWSRC_FORMAT_PREFERENCE = ["jpeg", "png", "gif", "svg", "webp", "avif"];
const CHILDREN_OBJECT_KEY = "@children";
function generateSrcset(metadataFormatEntry) {
if(!Array.isArray(metadataFormatEntry)) {
return "";
}
return metadataFormatEntry.map(entry => entry.srcset).join(", ");
}
/*
Returns:
e.g. { img: { alt: "", src: "" }
e.g. { img: { alt: "", src: "", srcset: "", sizes: "" } }
e.g. { picture: {
class: "",
@children: [
{ source: { srcset: "", sizes: "" } },
{ source: { srcset: "", sizes: "" } },
{ img: { alt: "", src: "", srcset: "", sizes: "" } },
]
}
*/
function generateObject(metadata, userDefinedImgAttributes = {}, userDefinedPictureAttributes = {}, options = {}) {
let htmlOptions = options?.htmlOptions || {};
let imgAttributes = Object.assign({}, options?.defaultAttributes, htmlOptions?.imgAttributes, userDefinedImgAttributes);
let pictureAttributes = Object.assign({}, htmlOptions?.pictureAttributes, userDefinedPictureAttributes);
// The attributes.src gets overwritten later on. Save it here to make the error outputs less cryptic.
let originalSrc = imgAttributes.src;
if(imgAttributes.alt === undefined) {
// You bet we throw an error on missing alt (alt="" works okay)
throw new Error(`Missing \`alt\` attribute on eleventy-img shortcode from: ${originalSrc}`);
}
let formats = Object.keys(metadata);
let values = Object.values(metadata);
let entryCount = 0;
for(let imageFormat of values) {
entryCount += imageFormat.length;
}
if(entryCount === 0) {
throw new Error("No image results found from `eleventy-img` in generateHTML. Expects a results object similar to: https://www.11ty.dev/docs/plugins/image/#usage.");
}
let lowsrc;
let lowsrcFormat;
for(let format of LOWSRC_FORMAT_PREFERENCE) {
if((format in metadata) && metadata[format].length) {
lowsrcFormat = format;
lowsrc = metadata[lowsrcFormat];
break;
}
}
// Handle if empty intersection between format and LOWSRC_FORMAT_PREFERENCE (e.g. gif)
// If theres only one format in the results, use that
if(!lowsrc && formats.length === 1) {
lowsrcFormat = formats[0];
lowsrc = metadata[lowsrcFormat];
}
if(!lowsrc || !lowsrc.length) {
throw new Error(`Could not find the lowest <img> source for responsive markup for ${originalSrc}`);
}
imgAttributes.src = lowsrc[0].url;
if(htmlOptions.fallback === "largest" || htmlOptions.fallback === undefined) {
imgAttributes.width = lowsrc[lowsrc.length - 1].width;
imgAttributes.height = lowsrc[lowsrc.length - 1].height;
} else if(htmlOptions.fallback === "smallest") {
imgAttributes.width = lowsrc[0].width;
imgAttributes.height = lowsrc[0].height;
} else {
throw new Error("Invalid `fallback` option specified. 'largest' and 'smallest' are supported. Received: " + htmlOptions.fallback);
}
let imgAttributesWithoutSizes = Object.assign({}, imgAttributes);
delete imgAttributesWithoutSizes.sizes;
// <img>: one format and one size
if(entryCount === 1) {
return {
img: imgAttributesWithoutSizes
};
}
// Per the HTML specification sizes is required srcset is using the `w` unit
// https://html.spec.whatwg.org/dev/semantics.html#the-link-element:attr-link-imagesrcset-4
// Using the default "100vw" is okay
let missingSizesErrorMessage = `Missing \`sizes\` attribute on eleventy-img shortcode from: ${originalSrc}. Workarounds: 1. Use a single output width for this image 2. Use \`loading="lazy"\` (which uses sizes="auto" though browser support currently varies)`;
// <img srcset>: one format and multiple sizes
if(formats.length === 1) { // implied entryCount > 1
if(entryCount > 1 && !imgAttributes.sizes) {
// Use `sizes="auto"` when using `loading="lazy"` instead of throwing an error.
if(imgAttributes.loading === "lazy") {
imgAttributes.sizes = "auto";
} else {
throw new Error(missingSizesErrorMessage);
}
}
let imgAttributesCopy = Object.assign({}, imgAttributesWithoutSizes);
imgAttributesCopy.srcset = generateSrcset(lowsrc);
imgAttributesCopy.sizes = imgAttributes.sizes;
return {
img: imgAttributesCopy
};
}
let children = [];
values.filter(imageFormat => {
return imageFormat.length > 0 && (lowsrcFormat !== imageFormat[0].format);
}).forEach(imageFormat => {
if(imageFormat.length > 1 && !imgAttributes.sizes) {
if(imgAttributes.loading === "lazy") {
imgAttributes.sizes = "auto";
} else {
throw new Error(missingSizesErrorMessage);
}
}
let sourceAttrs = {
type: imageFormat[0].sourceType,
srcset: generateSrcset(imageFormat),
};
if(imgAttributes.sizes) {
sourceAttrs.sizes = imgAttributes.sizes;
}
children.push({
"source": sourceAttrs
});
});
/*
Add lowsrc as an img, for browsers that dont support picture or the formats provided in source
If we have more than one size, we can use srcset and sizes.
If the browser doesn't support those attributes, it should ignore them.
*/
let imgAttributesForPicture = Object.assign({}, imgAttributesWithoutSizes);
if (lowsrc.length > 1) {
if (!imgAttributes.sizes) {
// Per the HTML specification sizes is required srcset is using the `w` unit
// https://html.spec.whatwg.org/dev/semantics.html#the-link-element:attr-link-imagesrcset-4
// Using the default "100vw" is okay
throw new Error(missingSizesErrorMessage);
}
imgAttributesForPicture.srcset = generateSrcset(lowsrc);
imgAttributesForPicture.sizes = imgAttributes.sizes;
}
children.push({
"img": imgAttributesForPicture
});
return {
"picture": {
...pictureAttributes,
[CHILDREN_OBJECT_KEY]: children,
}
};
}
function mapObjectToHTML(tagName, attrs = {}) {
let attrHtml = Object.entries(attrs).map(entry => {
let [key, value] = entry;
if(key === CHILDREN_OBJECT_KEY) {
return false;
}
// Issue #82
if(key === "alt") {
return `${key}="${value ? escapeAttribute(value) : ""}"`;
}
return `${key}="${value}"`;
}).filter(keyPair => Boolean(keyPair)).join(" ");
return `<${tagName}${attrHtml ? ` ${attrHtml}` : ""}>`;
}
function generateHTML(metadata, attributes = {}, htmlOptionsOverride = {}) {
let htmlOptions = Object.assign({}, metadata?.eleventyImage?.htmlOptions, htmlOptionsOverride);
let isInline = htmlOptions.whitespaceMode !== "block";
let markup = [];
// htmlOptions.imgAttributes and htmlOptions.pictureAttributes are merged in generateObject
let obj = generateObject(metadata, attributes, {}, { htmlOptions });
for(let tag in obj) {
markup.push(mapObjectToHTML(tag, obj[tag]));
// <picture>
if(Array.isArray(obj[tag]?.[CHILDREN_OBJECT_KEY])) {
for(let child of obj[tag][CHILDREN_OBJECT_KEY]) {
let childTagName = Object.keys(child)[0];
markup.push((!isInline ? " " : "") + mapObjectToHTML(childTagName, child[childTagName]));
}
markup.push(`</${tag}>`);
}
}
return markup.join(!isInline ? "\n" : "");
}
module.exports = generateHTML;
module.exports.generateObject = generateObject;

121
node_modules/@11ty/eleventy-img/src/global-options.js generated vendored Normal file
View File

@ -0,0 +1,121 @@
const path = require("node:path");
const os = require("node:os");
const Util = require("./util.js");
const svgHook = require("./format-hooks/svg.js");
const DEFAULTS = {
widths: ["auto"],
formats: ["webp", "jpeg"], // "png", "svg", "avif"
formatFiltering: ["transparent", "animated"],
// Via https://github.com/11ty/eleventy-img/issues/258
concurrency: Math.min(Math.max(8, os.availableParallelism()), 16),
urlPath: "/img/",
outputDir: "img/",
// true to skip raster formats if SVG input is found
// "size" to skip raster formats if larger than SVG input
svgShortCircuit: false,
svgAllowUpscale: true,
svgCompressionSize: "", // "br" to report SVG `size` property in metadata as Brotli compressed
// overrideInputFormat: false, // internal, used to force svg output in statsSync et al
sharpOptions: {}, // options passed to the Sharp constructor
sharpWebpOptions: {}, // options passed to the Sharp webp output method
sharpPngOptions: {}, // options passed to the Sharp png output method
sharpJpegOptions: {}, // options passed to the Sharp jpeg output method
sharpAvifOptions: {}, // options passed to the Sharp avif output method
formatHooks: {
svg: svgHook,
},
cacheDuration: "1d", // deprecated, use cacheOptions.duration
// disk cache for remote assets
cacheOptions: {
// duration: "1d",
// directory: ".cache",
// removeUrlQueryParams: false,
// fetchOptions: {},
},
filenameFormat: null,
// urlFormat allows you to return a full URL to an image including the domain.
// Useful when youre using your own hosted image service (probably via .statsSync or .statsByDimensionsSync)
// Note: when you use this, metadata will not include .filename or .outputPath
urlFormat: null,
// If true, skips all image processing, just return stats. Doesnt read files, doesnt write files.
// Important to note that `dryRun: true` performs image processing and includes a buffer—this does not.
// Useful when used with `urlFormat` above.
// Better than .statsSync* functions, because this will use the in-memory cache and de-dupe requests. Those will not.
statsOnly: false,
remoteImageMetadata: {}, // For `statsOnly` remote images, this needs to be populated with { width, height, format? }
useCache: true, // in-memory and disk cache
dryRun: false, // Also returns a buffer instance in the return object. Doesnt write anything to the file system
hashLength: 10, // Truncates the hash to this length
fixOrientation: false, // always rotate images to ensure correct orientation
// When the original width is smaller than the desired output width, this is the minimum size difference
// between the next smallest image width that will generate one extra width in the output.
// e.g. when using `widths: [400, 800]`, the source image would need to be at least (400 * 1.25 =) 500px wide
// to generate two outputs (400px, 500px). If the source image is less than 500px, only one output will
// be generated (400px).
// Read more at https://github.com/11ty/eleventy-img/issues/184 and https://github.com/11ty/eleventy-img/pull/190
minimumThreshold: 1.25,
// During --serve mode in Eleventy, this will generate images on request instead of part of the build skipping
// writes to the file system and speeding up builds!
transformOnRequest: false,
// operate on Sharp instance manually.
transform: undefined,
// return HTML from generateHTML directly
returnType: "object", // or "html"
// Defaults used when generateHTML is called from a result set
htmlOptions: {
imgAttributes: {},
pictureAttributes: {},
whitespaceMode: "inline", // "block"
// the <img> will use the largest dimensions for width/height (when multiple output widths are specified)
// see https://github.com/11ty/eleventy-img/issues/63
fallback: "largest", // or "smallest"
},
// v5.0.0 Removed `extensions`, option to override output format with new file extension. It wasnt being used anywhere or documented.
// v6.0.0, removed `useCacheValidityInHash: true` see https://github.com/11ty/eleventy-img/issues/146#issuecomment-2555741376
};
function getGlobalOptions(eleventyConfig, options, via) {
let directories = eleventyConfig.directories;
let globalOptions = Object.assign({
packages: {
image: require("../"),
},
outputDir: path.join(directories.output, options.urlPath || ""),
failOnError: true,
}, options);
globalOptions.directories = directories;
globalOptions.generatedVia = via;
Util.addConfig(eleventyConfig, globalOptions);
return globalOptions;
}
module.exports = {
getGlobalOptions,
defaults: DEFAULTS,
};

View File

@ -0,0 +1,140 @@
const eleventyImage = require("../img.js");
const Util = require("./util.js");
const ATTR_PREFIX = "eleventy:";
const CHILDREN_OBJECT_KEY = "@children";
const ATTR = {
IGNORE: `${ATTR_PREFIX}ignore`,
WIDTHS: `${ATTR_PREFIX}widths`,
FORMATS: `${ATTR_PREFIX}formats`,
OUTPUT: `${ATTR_PREFIX}output`,
OPTIONAL: `${ATTR_PREFIX}optional`,
PICTURE: `${ATTR_PREFIX}pictureattr:`,
};
function getPictureAttributesFromImgNode(attrs = {}) {
let pictureAttrs = {};
for(let key in attrs) {
// <img eleventy:pictureattr:NAME="VALUE"> hoists to `<picture NAME="VALUE">
// e.g. <img eleventy:pictureattr:class="outer"> hoists to <picture class="outer">
if(key.startsWith(ATTR.PICTURE)) {
pictureAttrs[key.slice(ATTR.PICTURE.length)] = attrs[key];
}
}
return pictureAttrs;
}
function convertToPosthtmlNode(obj) {
// node.tag
// node.attrs
// node.content
let node = {};
let [key] = Object.keys(obj);
node.tag = key;
let children = obj[key]?.[CHILDREN_OBJECT_KEY];
let attributes = {};
for(let attrKey in obj[key]) {
if(attrKey !== CHILDREN_OBJECT_KEY) {
attributes[attrKey] = obj[key][attrKey];
}
}
node.attrs = attributes;
if(Array.isArray(children)) {
node.content = obj[key]?.[CHILDREN_OBJECT_KEY]
.filter(child => Boolean(child))
.map(child => {
return convertToPosthtmlNode(child);
});
}
return node;
}
function isValidSimpleWidthAttribute(width) {
// `width` must be a single integer (not comma separated). Dont use invalid HTML in width attribute. Use eleventy:widths if you want more complex support
return (""+width) == (""+parseInt(width, 10));
}
async function imageAttributesToPosthtmlNode(attributes, instanceOptions, globalPluginOptions) {
if(!attributes.src) {
throw new Error("Missing `src` attribute for `@11ty/eleventy-img`");
}
if(!globalPluginOptions) {
throw new Error("Missing global defaults for `@11ty/eleventy-img`: did you call addPlugin?");
}
if(!instanceOptions) {
instanceOptions = {};
}
// overrides global widths
if(attributes.width && isValidSimpleWidthAttribute(attributes.width)) {
// Support `width` but only single value
instanceOptions.widths = [ parseInt(attributes.width, 10) ];
} else if(attributes[ATTR.WIDTHS] && typeof attributes[ATTR.WIDTHS] === "string") {
instanceOptions.widths = attributes[ATTR.WIDTHS].split(",").map(entry => parseInt(entry, 10));
}
if(attributes[ATTR.FORMATS] && typeof attributes[ATTR.FORMATS] === "string") {
instanceOptions.formats = attributes[ATTR.FORMATS].split(",");
}
let options = Object.assign({}, globalPluginOptions, instanceOptions);
Util.addConfig(globalPluginOptions.eleventyConfig, options);
let metadata = await eleventyImage(attributes.src, options);
let pictureAttributes = getPictureAttributesFromImgNode(attributes);
cleanAttrs(attributes);
// You bet we throw an error on missing alt in `imageAttributes` (alt="" works okay)
let obj = await eleventyImage.generateObject(metadata, attributes, pictureAttributes, options);
return convertToPosthtmlNode(obj);
}
function cleanAttrs(attrs = {}) {
for(let key in attrs) {
if(key.startsWith(ATTR_PREFIX)) {
delete attrs?.[key];
}
}
}
function cleanTag(node) {
// Delete all prefixed attributes
cleanAttrs(node?.attrs);
}
function isIgnored(node) {
return node?.attrs && node?.attrs?.[ATTR.IGNORE] !== undefined;
}
function isOptional(node, comparisonValue) {
let attrValue = node?.attrs && node?.attrs?.[ATTR.OPTIONAL];
if(attrValue !== undefined) {
// if comparisonValue is not specified, return true
if(comparisonValue === undefined) {
return true;
}
return attrValue === comparisonValue;
}
return false;
}
function getOutputDirectory(node) {
return node?.attrs?.[ATTR.OUTPUT];
}
module.exports = {
imageAttributesToPosthtmlNode,
cleanTag,
isIgnored,
isOptional,
getOutputDirectory,
};

30
node_modules/@11ty/eleventy-img/src/image-path.js generated vendored Normal file
View File

@ -0,0 +1,30 @@
const path = require("node:path");
class ImagePath {
static filenameFormat(id, src, width, format) { // and options
if (width) {
return `${id}-${width}.${format}`;
}
return `${id}.${format}`;
}
static getFilename(id, src, width, format, options = {}) {
if (typeof options.filenameFormat === "function") {
let filename = options.filenameFormat(id, src, width, format, options);
// if options.filenameFormat returns falsy, use fallback filename
if(filename) {
return filename;
}
}
return ImagePath.filenameFormat(id, src, width, format, options);
}
static convertFilePathToUrl(dir, filename) {
let src = path.join(dir, filename);
return src.split(path.sep).join("/");
}
}
module.exports = ImagePath;

930
node_modules/@11ty/eleventy-img/src/image.js generated vendored Normal file
View File

@ -0,0 +1,930 @@
const fs = require("node:fs");
const fsp = fs.promises;
const path = require("node:path");
const getImageSize = require("image-size");
const debugUtil = require("debug");
const { createHashSync } = require("@11ty/eleventy-utils");
const { Fetch } = require("@11ty/eleventy-fetch");
const sharp = require("./adapters/sharp.js");
const brotliSize = require("./adapters/brotli-size.js");
const Util = require("./util.js");
const ImagePath = require("./image-path.js");
const generateHTML = require("./generate-html.js");
const GLOBAL_OPTIONS = require("./global-options.js").defaults;
const { existsCache, memCache, diskCache } = require("./caches.js");
const debug = debugUtil("Eleventy:Image");
const debugAssets = debugUtil("Eleventy:Assets");
const MIME_TYPES = {
"jpeg": "image/jpeg",
"webp": "image/webp",
"png": "image/png",
"svg": "image/svg+xml",
"avif": "image/avif",
"gif": "image/gif",
};
const FORMAT_ALIASES = {
"jpg": "jpeg",
// if youre working from a mime type input, lets alias it back to svg
"svg+xml": "svg",
};
const ANIMATED_TYPES = [
"webp",
"gif",
];
const TRANSPARENCY_TYPES = [
"avif",
"png",
"webp",
"gif",
"svg",
];
const MINIMUM_TRANSPARENCY_TYPES = [
"png",
"gif",
"svg",
];
class Image {
#input;
#contents = {};
#queue;
#queuePromise;
#buildLogger;
#computedHash;
#directoryManager;
constructor(src, options = {}) {
if(!src) {
throw new Error("`src` is a required argument to the eleventy-img utility (can be a String file path, String URL, or Buffer).");
}
this.src = src;
this.isRemoteUrl = typeof src === "string" && Util.isRemoteUrl(src);
this.rawOptions = options;
this.options = Object.assign({}, GLOBAL_OPTIONS, options);
// Compatible with eleventy-dev-server and Eleventy 3.0.0-alpha.7+ in serve mode.
if(this.options.transformOnRequest && !this.options.urlFormat) {
this.options.urlFormat = function({ src, width, format }/*, imageOptions*/, options) {
return `/.11ty/image/?src=${encodeURIComponent(src)}&width=${width}&format=${format}${options.generatedVia ? `&via=${options.generatedVia}` : ""}`;
};
this.options.statsOnly = true;
}
if(this.isRemoteUrl) {
this.cacheOptions = Object.assign({
type: "buffer",
// deprecated in Eleventy Image, but we already prefer this.cacheOptions.duration automatically
duration: this.options.cacheDuration,
// Issue #117: re-use eleventy-img dryRun option value for eleventy-fetch dryRun
dryRun: this.options.dryRun,
}, this.options.cacheOptions);
// v6.0.0 this now inherits eleventy-fetch option defaults
this.assetCache = Fetch(src, this.cacheOptions);
}
}
setQueue(queue) {
this.#queue = queue;
}
setBuildLogger(buildLogger) {
this.#buildLogger = buildLogger;
}
setDirectoryManager(manager) {
this.#directoryManager = manager;
}
get directoryManager() {
if(!this.#directoryManager) {
throw new Error("Missing #directoryManager");
}
return this.#directoryManager;
}
get buildLogger() {
if(!this.#buildLogger) {
throw new Error("Missing #buildLogger. Call `setBuildLogger`");
}
return this.#buildLogger;
}
// In memory cache is up front, handles promise de-duping from input (this does not use getHash)
// Note: output cache is also in play below (uses getHash)
getInMemoryCacheKey() {
let opts = Util.getSortedObject(this.options);
opts.__originalSrc = this.src;
if(this.isRemoteUrl) {
opts.sourceUrl = this.src; // the source url
} else if(Buffer.isBuffer(this.src)) {
opts.sourceUrl = this.src.toString();
opts.__originalSize = this.src.length;
} else {
// Important: do not cache this
opts.__originalSize = fs.statSync(this.src).size;
}
return JSON.stringify(opts, function(key, value) {
// allows `transform` functions to be truthy for in-memory key
if (typeof value === "function") {
return "<fn>" + (value.name || "");
}
return value;
});
}
getFileContents(overrideLocalFilePath) {
if(!overrideLocalFilePath && this.isRemoteUrl) {
return false;
}
let src = overrideLocalFilePath || this.src;
if(!this.#contents[src]) {
// perf: check to make sure its not a string first
if(typeof src !== "string" && Buffer.isBuffer(src)) {
this.#contents[src] = src;
} else {
debugAssets("[11ty/eleventy-img] Reading %o", src);
this.#contents[src] = fs.readFileSync(src);
}
}
// Always <Buffer>
return this.#contents[src];
}
static getValidWidths(originalWidth, widths = [], allowUpscale = false, minimumThreshold = 1) {
// replace any falsy values with the original width
let valid = widths.map(width => !width || width === 'auto' ? originalWidth : width);
// Convert strings to numbers, "400" (floats are not allowed in sharp)
valid = valid.map(width => parseInt(width, 10));
// Replace any larger-than-original widths with the original width if upscaling is not allowed.
// This ensures that if a larger width has been requested, we're at least providing the closest
// non-upscaled image that we can.
if (!allowUpscale) {
let lastWidthWasBigEnough = true; // first one is always valid
valid = valid.sort((a, b) => a - b).map(width => {
if(width > originalWidth) {
if(lastWidthWasBigEnough) {
return originalWidth;
}
return -1;
}
lastWidthWasBigEnough = originalWidth > Math.floor(width * minimumThreshold);
return width;
}).filter(width => width > 0);
}
// Remove duplicates (e.g., if null happens to coincide with an explicit width
// or a user passes in multiple duplicate values, or multiple larger-than-original
// widths have resulted in the original width being included multiple times)
valid = [...new Set(valid)];
// sort ascending
return valid.sort((a, b) => a - b);
}
static getFormatsArray(formats, autoFormat, svgShortCircuit, isAnimated, hasTransparency) {
if(formats && formats.length) {
if(typeof formats === "string") {
formats = formats.split(",");
}
formats = formats.map(format => {
if(autoFormat) {
if((!format || format === "auto")) {
format = autoFormat;
}
}
if(FORMAT_ALIASES[format]) {
return FORMAT_ALIASES[format];
}
return format;
});
if(svgShortCircuit !== "size") {
// svg must come first for possible short circuiting
formats.sort((a, b) => {
if(a === "svg") {
return -1;
} else if(b === "svg") {
return 1;
}
return 0;
});
}
if(isAnimated) {
let validAnimatedFormats = formats.filter(f => ANIMATED_TYPES.includes(f));
// override formats if a valid animated format is found, otherwise leave as-is
if(validAnimatedFormats.length > 0) {
debug("Filtering non-animated formats from output: from %o to %o", formats, validAnimatedFormats);
formats = validAnimatedFormats;
} else {
debug("No animated output formats found for animated image, using original formats (may be a static image): %o", formats);
}
}
if(hasTransparency) {
let minimumValidTransparencyFormats = formats.filter(f => MINIMUM_TRANSPARENCY_TYPES.includes(f));
// override formats if a valid animated format is found, otherwise leave as-is
if(minimumValidTransparencyFormats.length > 0) {
let validTransparencyFormats = formats.filter(f => TRANSPARENCY_TYPES.includes(f));
debug("Filtering non-transparency-friendly formats from output: from %o to %o", formats, validTransparencyFormats);
formats = validTransparencyFormats;
} else {
debug("At least one transparency-friendly output format of %o must be included if the source image has an alpha channel, skipping formatFiltering and using original formats: %o", MINIMUM_TRANSPARENCY_TYPES, formats);
}
}
// Remove duplicates (e.g., if null happens to coincide with an explicit format
// or a user passes in multiple duplicate values)
formats = [...new Set(formats)];
return formats;
}
return [];
}
#transformRawFiles(files = []) {
let byType = {};
for(let file of files) {
if(!byType[file.format]) {
byType[file.format] = [];
}
byType[file.format].push(file);
}
for(let type in byType) {
// sort by width, ascending (for `srcset`)
byType[type].sort((a, b) => {
return a.width - b.width;
});
}
let filterLargeRasterImages = this.options.svgShortCircuit === "size";
let svgEntry = byType.svg;
let svgSize = svgEntry && svgEntry.length && svgEntry[0].size;
if(filterLargeRasterImages && svgSize) {
for(let type of Object.keys(byType)) {
if(type === "svg") {
continue;
}
let svgAdded = false;
let originalFormatKept = false;
byType[type] = byType[type].map(entry => {
if(entry.size > svgSize) {
if(!svgAdded) {
svgAdded = true;
// need at least one raster smaller than SVG to do this trick
if(originalFormatKept) {
return svgEntry[0];
}
// all rasters are bigger
return false;
}
return false;
}
originalFormatKept = true;
return entry;
}).filter(entry => entry);
}
}
return byType;
}
#finalizeResults(results = {}) {
// used when results are passed to generate HTML, we maintain some internal metadata about the options used.
let imgAttributes = this.options.htmlOptions?.imgAttributes || {};
imgAttributes.src = this.src;
Object.defineProperty(results, "eleventyImage", {
enumerable: false,
writable: false,
value: {
htmlOptions: {
whitespaceMode: this.options.htmlOptions?.whitespaceMode,
imgAttributes,
pictureAttributes: this.options.htmlOptions?.pictureAttributes,
fallback: this.options.htmlOptions?.fallback,
},
}
});
// renamed `return` to `returnType` to match Fetch API in v6.0.0-beta.3
if(this.options.returnType === "html" || this.options.return === "html") {
return generateHTML(results);
}
return results;
}
getSharpOptionsForFormat(format) {
if(format === "webp") {
return this.options.sharpWebpOptions;
} else if(format === "jpeg") {
return this.options.sharpJpegOptions;
} else if(format === "png") {
return this.options.sharpPngOptions;
} else if(format === "avif") {
return this.options.sharpAvifOptions;
}
return {};
}
async getInput() {
// internal cache
if(!this.#input) {
if(this.isRemoteUrl) {
// fetch remote image Buffer
this.#input = this.assetCache.queue();
} else {
// not actually a promise, this is sync
this.#input = this.getFileContents();
}
}
return this.#input;
}
getHash() {
if (this.#computedHash) {
return this.#computedHash;
}
// debug("Creating hash for %o", this.src);
let hashContents = [];
if(existsCache.exists(this.src)) {
let fileContents = this.getFileContents();
// If the file starts with whitespace or the '<' character, it might be SVG.
// Otherwise, skip the expensive buffer.toString() call
// (no point in unicode encoding a binary file)
let fileContentsPrefix = fileContents?.slice(0, 1)?.toString()?.trim();
if (!fileContentsPrefix || fileContentsPrefix[0] == "<") {
// remove all newlines for hashing for better cross-OS hash compatibility (Issue #122)
let fileContentsStr = fileContents.toString();
let firstFour = fileContentsStr.trim().slice(0, 5);
if(firstFour === "<svg " || firstFour === "<?xml") {
fileContents = fileContentsStr.replace(/\r|\n/g, '');
}
}
hashContents.push(fileContents);
} else {
// probably a remote URL
hashContents.push(this.src);
// `useCacheValidityInHash` was removed in v6.0.0, but well keep this as part of the hash to maintain consistent hashes across versions
if(this.isRemoteUrl && this.assetCache && this.cacheOptions) {
hashContents.push(`ValidCache:true`);
}
}
// We ignore all keys not relevant to the file processing/output (including `widths`, which is a suffix added to the filename)
// e.g. `widths: [300]` and `widths: [300, 600]`, with all else being equal the 300px output of each should have the same hash
let keysToKeep = [
"sharpOptions",
"sharpWebpOptions",
"sharpPngOptions",
"sharpJpegOptions",
"sharpAvifOptions"
].sort();
let hashObject = {};
// The code currently assumes are keysToKeep are Object literals (see Util.getSortedObject)
for(let key of keysToKeep) {
if(this.options[key]) {
hashObject[key] = Util.getSortedObject(this.options[key]);
}
}
hashContents.push(JSON.stringify(hashObject));
let base64hash = createHashSync(...hashContents);
let truncated = base64hash.substring(0, this.options.hashLength);
this.#computedHash = truncated;
return truncated;
}
getStat(outputFormat, width, height) {
let url;
let outputFilename;
if(this.options.urlFormat && typeof this.options.urlFormat === "function") {
let hash;
if(!this.options.statsOnly) {
hash = this.getHash();
}
url = this.options.urlFormat({
hash,
src: this.src,
width,
format: outputFormat,
}, this.options);
} else {
let hash = this.getHash();
outputFilename = ImagePath.getFilename(hash, this.src, width, outputFormat, this.options);
if(Util.isFullUrl(this.options.urlPath)) {
url = new URL(outputFilename, this.options.urlPath).toString();
} else {
url = ImagePath.convertFilePathToUrl(this.options.urlPath, outputFilename);
}
}
let statEntry = {
format: outputFormat,
width: width,
height: height,
url: url,
sourceType: MIME_TYPES[outputFormat],
srcset: `${url} ${width}w`,
// Not available in stats* functions below
// size // only after processing
};
if(outputFilename) {
statEntry.filename = outputFilename; // optional
statEntry.outputPath = path.join(this.options.outputDir, outputFilename); // optional
}
return statEntry;
}
// https://jdhao.github.io/2019/07/31/image_rotation_exif_info/
// Orientations 5 to 8 mean image is rotated ±90º (width/height are flipped)
needsRotation(orientation) {
// Sharp's metadata API exposes undefined EXIF orientations >8 as 1 (normal) but check anyways
return orientation >= 5 && orientation <= 8;
}
isAnimated(metadata) {
// sharp options have animated image support enabled
if(!this.options?.sharpOptions?.animated) {
return false;
}
let isAnimationFriendlyFormat = ANIMATED_TYPES.includes(metadata.format);
if(!isAnimationFriendlyFormat) {
return false;
}
if(metadata?.pages) {
// input has multiple pages: https://sharp.pixelplumbing.com/api-input#metadata
// this is *unknown* when not called from `resize` (limited metadata available)
return metadata?.pages > 1;
}
// Best guess
return isAnimationFriendlyFormat;
}
getEntryFormat(metadata) {
return metadata.format || this.options.overrideInputFormat;
}
// metadata so far: width, height, format
// src is used to calculate the output file names
getFullStats(metadata) {
let results = [];
let isImageAnimated = this.isAnimated(metadata) && Array.isArray(this.options.formatFiltering) && this.options.formatFiltering.includes("animated");
let hasAlpha = metadata.hasAlpha && Array.isArray(this.options.formatFiltering) && this.options.formatFiltering.includes("transparent");
let entryFormat = this.getEntryFormat(metadata);
let outputFormats = Image.getFormatsArray(this.options.formats, entryFormat, this.options.svgShortCircuit, isImageAnimated, hasAlpha);
if (this.needsRotation(metadata.orientation)) {
[metadata.height, metadata.width] = [metadata.width, metadata.height];
}
if(metadata.pageHeight) {
// When the { animated: true } option is provided to sharp, animated
// image formats like gifs or webp will have an inaccurate `height` value
// in their metadata which is actually the height of every single frame added together.
// In these cases, the metadata will contain an additional `pageHeight` property which
// is the height that the image should be displayed at.
metadata.height = metadata.pageHeight;
}
for(let outputFormat of outputFormats) {
if(!outputFormat || outputFormat === "auto") {
throw new Error("When using statsSync or statsByDimensionsSync, `formats: [null | 'auto']` to use the native image format is not supported.");
}
if(outputFormat === "svg") {
if(entryFormat === "svg") {
let svgStats = this.getStat("svg", metadata.width, metadata.height);
// SVG metadata.size is only available with Buffer input (remote urls)
if(metadata.size) {
// Note this is unfair for comparison with raster formats because its uncompressed (no GZIP, etc)
svgStats.size = metadata.size;
}
results.push(svgStats);
if(this.options.svgShortCircuit === true) {
break;
} else {
continue;
}
} else {
debug("Skipping SVG output for %o: received raster input.", this.src);
continue;
}
} else { // not outputting SVG (might still be SVG input though!)
let widths = Image.getValidWidths(metadata.width, this.options.widths, metadata.format === "svg" && this.options.svgAllowUpscale, this.options.minimumThreshold);
for(let width of widths) {
let height = Image.getAspectRatioHeight(metadata, width);
results.push(this.getStat(outputFormat, width, height));
}
}
}
return this.#transformRawFiles(results);
}
static getDimensionsFromSharp(sharpInstance, stat) {
let dims = {};
if(sharpInstance.options.width > -1) {
dims.width = sharpInstance.options.width;
dims.resized = true;
}
if(sharpInstance.options.height > -1) {
dims.height = sharpInstance.options.height;
dims.resized = true;
}
if(dims.width || dims.height) {
if(!dims.width) {
dims.width = Image.getAspectRatioWidth(stat, dims.height);
}
if(!dims.height) {
dims.height = Image.getAspectRatioHeight(stat, dims.width);
}
}
return dims;
}
static getAspectRatioWidth(originalDimensions, newHeight) {
return Math.floor(newHeight * originalDimensions.width / originalDimensions.height);
}
static getAspectRatioHeight(originalDimensions, newWidth) {
// Warning: if this is a guess via statsByDimensionsSync and that guess is wrong
// The aspect ratio will be wrong and any height/widths returned will be wrong!
return Math.floor(newWidth * originalDimensions.height / originalDimensions.width);
}
getOutputSize(contents, filePath) {
if(contents) {
if(this.options.svgCompressionSize === "br") {
return brotliSize(contents);
}
if("length" in contents) {
return contents.length;
}
}
// fallback to looking on local file system
if(!filePath) {
throw new Error("`filePath` expected.");
}
return fs.statSync(filePath).size;
}
isOutputCached(targetFile, sourceInput) {
if(!this.options.useCache) {
return false;
}
// last cache was a miss, so we must write to disk
if(this.assetCache && !this.assetCache.wasLastFetchCacheHit()) {
return false;
}
if(!diskCache.isCached(targetFile, sourceInput, !Util.isRequested(this.options.generatedVia))) {
return false;
}
return true;
}
// src should be a file path to an image or a buffer
async resize(input) {
let sharpInputImage = sharp(input, Object.assign({
// Deprecated by sharp, use `failOn` option instead
// https://github.com/lovell/sharp/blob/1533bf995acda779313fc178d2b9d46791349961/lib/index.d.ts#L915
failOnError: false,
}, this.options.sharpOptions));
// Must find the image format from the metadata
// File extensions lie or may not be present in the src url!
let sharpMetadata = await sharpInputImage.metadata();
let outputFilePromises = [];
let fullStats = this.getFullStats(sharpMetadata);
for(let outputFormat in fullStats) {
for(let stat of fullStats[outputFormat]) {
if(this.isOutputCached(stat.outputPath, input)) {
// Cached images already exist in output
let outputFileContents;
if(this.options.dryRun || outputFormat === "svg" && this.options.svgCompressionSize === "br") {
outputFileContents = this.getFileContents(stat.outputPath);
}
if(this.options.dryRun) {
stat.buffer = outputFileContents;
}
stat.size = this.getOutputSize(outputFileContents, stat.outputPath);
outputFilePromises.push(Promise.resolve(stat));
continue;
}
let sharpInstance = sharpInputImage.clone();
let transform = this.options.transform;
let isTransformResize = false;
if(transform) {
if(typeof transform !== "function") {
throw new Error("Expected `function` type in `transform` option. Received: " + transform);
}
await transform(sharpInstance);
// Resized in a transform (maybe for a crop)
let dims = Image.getDimensionsFromSharp(sharpInstance, stat);
if(dims.resized) {
isTransformResize = true;
// Overwrite current `stat` object with new sizes and file names
stat = this.getStat(stat.format, dims.width, dims.height);
}
}
// https://github.com/11ty/eleventy-img/issues/244
sharpInstance.keepIccProfile();
// Output images do not include orientation metadata (https://github.com/11ty/eleventy-img/issues/52)
// Use sharp.rotate to bake orientation into the image (https://github.com/lovell/sharp/blob/v0.32.6/docs/api-operation.md#rotate):
// > If no angle is provided, it is determined from the EXIF data. Mirroring is supported and may infer the use of a flip operation.
// > The use of rotate without an angle will remove the EXIF Orientation tag, if any.
if(this.options.fixOrientation || this.needsRotation(sharpMetadata.orientation)) {
sharpInstance.rotate();
}
if(!isTransformResize) {
if(stat.width < sharpMetadata.width || (this.options.svgAllowUpscale && sharpMetadata.format === "svg")) {
let resizeOptions = {
width: stat.width
};
if(sharpMetadata.format !== "svg" || !this.options.svgAllowUpscale) {
resizeOptions.withoutEnlargement = true;
}
sharpInstance.resize(resizeOptions);
}
}
// Format hooks take priority over Sharp processing.
// format hooks are only used for SVG out of the box
if(this.options.formatHooks && this.options.formatHooks[outputFormat]) {
let hookResult = await this.options.formatHooks[outputFormat].call(stat, sharpInstance);
if(hookResult) {
stat.size = this.getOutputSize(hookResult);
if(this.options.dryRun) {
stat.buffer = Buffer.from(hookResult);
outputFilePromises.push(Promise.resolve(stat));
} else {
this.directoryManager.createFromFile(stat.outputPath);
debugAssets("[11ty/eleventy-img] Writing %o", stat.outputPath);
outputFilePromises.push(fsp.writeFile(stat.outputPath, hookResult).then(() => stat));
}
}
} else { // not a format hook
let sharpFormatOptions = this.getSharpOptionsForFormat(outputFormat);
let hasFormatOptions = Object.keys(sharpFormatOptions).length > 0;
if(hasFormatOptions || outputFormat && sharpMetadata.format !== outputFormat) {
// https://github.com/lovell/sharp/issues/3680
// Fix heic regression in sharp 0.33
if(outputFormat === "heic" && !sharpFormatOptions.compression) {
sharpFormatOptions.compression = "av1";
}
sharpInstance.toFormat(outputFormat, sharpFormatOptions);
}
if(!this.options.dryRun && stat.outputPath) {
// Should never write when dryRun is true
this.directoryManager.createFromFile(stat.outputPath);
debugAssets("[11ty/eleventy-img] Writing %o", stat.outputPath);
outputFilePromises.push(
sharpInstance.toFile(stat.outputPath)
.then(info => {
stat.size = info.size;
return stat;
})
);
} else {
outputFilePromises.push(sharpInstance.toBuffer({ resolveWithObject: true }).then(({ data, info }) => {
stat.buffer = data;
stat.size = info.size;
return stat;
}));
}
}
if(stat.outputPath) {
if(this.options.dryRun) {
debug( "Generated %o", stat.url );
} else {
debug( "Wrote %o", stat.outputPath );
}
}
}
}
return Promise.all(outputFilePromises).then(files => this.#finalizeResults(this.#transformRawFiles(files)));
}
async getStatsOnly() {
if(typeof this.src !== "string" || !this.options.statsOnly) {
return;
}
let input;
if(Util.isRemoteUrl(this.src)) {
if(this.rawOptions.remoteImageMetadata?.width && this.rawOptions.remoteImageMetadata?.height) {
return this.getFullStats({
width: this.rawOptions.remoteImageMetadata.width,
height: this.rawOptions.remoteImageMetadata.height,
format: this.rawOptions.remoteImageMetadata.format, // only required if you want to use the "auto" format
guess: true,
});
}
// Fetch remote image to operate on it
// `remoteImageMetadata` is no longer required for statsOnly on remote images
input = await this.getInput();
}
// Local images
try {
// Related to https://github.com/11ty/eleventy-img/issues/295
let { width, height, type } = getImageSize(input || this.src);
return this.getFullStats({
width,
height,
format: type // only required if you want to use the "auto" format
});
} catch(e) {
throw new Error(`Eleventy Image error (statsOnly): \`image-size\` on "${this.src}" failed. Original error: ${e.message}`);
}
}
// returns raw Promise
queue() {
if(!this.#queue) {
return Promise.reject(new Error("Missing #queue."));
}
if(this.#queuePromise) {
return this.#queuePromise;
}
debug("Processing %o (in-memory cache miss), options: %o", this.src, this.options);
this.#queuePromise = this.#queue.add(async () => {
try {
if(typeof this.src === "string" && this.options.statsOnly) {
return this.getStatsOnly();
}
this.buildLogger.log(`Processing ${this.buildLogger.getFriendlyImageSource(this.src)}`, this.options);
let input = await this.getInput();
return this.resize(input);
} catch(e) {
this.buildLogger.error(`Error: ${e.message} (via ${this.buildLogger.getFriendlyImageSource(this.src)})`, this.options);
if(this.options.failOnError) {
throw e;
}
}
});
return this.#queuePromise;
}
// Factory to return from cache if available
static create(src, options = {}) {
let img = new Image(src, options);
// use resolved options for this
if(!img.options.useCache) {
return img;
}
let key = img.getInMemoryCacheKey();
let cached = memCache.get(key, !options.transformOnRequest && !Util.isRequested(options.generatedVia));
if(cached) {
return cached;
}
memCache.add(key, img);
return img;
}
/* `statsSync` doesnt generate any files, but will tell you where
* the asynchronously generated files will end up! This is useful
* in synchronous-only template environments where you need the
* image URLs synchronously but cant rely on the files being in
* the correct location yet.
*
* `options.dryRun` is still asynchronous but also doesnt generate
* any files.
*/
statsSync() {
if(this.isRemoteUrl) {
throw new Error("`statsSync` is not supported with remote sources. Use `statsByDimensionsSync(src, width, height, options)` instead.");
}
let dimensions = getImageSize(this.src);
return this.getFullStats({
width: dimensions.width,
height: dimensions.height,
format: dimensions.type,
});
}
static statsSync(src, opts) {
if(typeof src === "string" && Util.isRemoteUrl(src)) {
throw new Error("`statsSync` is not supported with remote sources. Use `statsByDimensionsSync(src, width, height, options)` instead.");
}
let img = Image.create(src, opts);
return img.statsSync();
}
statsByDimensionsSync(width, height) {
let dimensions = {
width,
height,
guess: true
};
return this.getFullStats(dimensions);
}
static statsByDimensionsSync(src, width, height, opts) {
let img = Image.create(src, opts);
return img.statsByDimensionsSync(width, height);
}
}
module.exports = Image;

54
node_modules/@11ty/eleventy-img/src/memory-cache.js generated vendored Normal file
View File

@ -0,0 +1,54 @@
const debug = require("debug")("Eleventy:Image");
class MemoryCache {
constructor() {
this.cache = {};
this.hitCounter = 0;
this.missCounter = 0;
}
resetCount() {
this.hitCounter = 0;
this.missCounter = 0;
}
getCount() {
return [this.hitCounter, this.missCounter];
}
add(key, results) {
this.cache[key] = {
results
};
debug("Unique images processed: %o", this.size());
}
get(key, incrementCounts = false) {
if(this.cache[key]) {
if(incrementCounts) {
this.hitCounter++;
}
// debug("Images re-used (via in-memory cache): %o", this.hitCounter);
// may return promise
return this.cache[key].results;
}
if(incrementCounts) {
this.missCounter++;
}
return false;
}
has(key) {
return key in this.cache;
}
size() {
return Object.keys(this.cache).length;
}
}
module.exports = MemoryCache;

View File

@ -0,0 +1,105 @@
const fs = require("node:fs");
const { TemplatePath } = require("@11ty/eleventy-utils");
const eleventyImage = require("../img.js");
const setupLogger = eleventyImage.setupLogger;
const Util = require("./util.js");
const debug = require("debug")("Eleventy:Image");
function eleventyImageOnRequestDuringServePlugin(eleventyConfig, options = {}) {
try {
// Throw an error if the application is not using Eleventy 3.0.0-alpha.7 or newer (including prereleases).
eleventyConfig.versionCheck(">=3.0.0-alpha.7");
} catch(e) {
console.log( `[11ty/eleventy-img] Warning: your version of Eleventy is incompatible with the dynamic image rendering plugin (see \`eleventyImageOnRequestDuringServePlugin\`). Any dynamically rendered images will 404 (be missing) during --serve mode but will not affect the standard build output: ${e.message}` );
}
setupLogger(eleventyConfig, {});
// Eleventy 3.0 or newer only.
eleventyConfig.setServerOptions({
onRequest: {
// TODO work with dev-servers option for `injectedScriptsFolder`
"/.11ty/image/": async function({ url }) {
// src could be file path or full url
let src = url.searchParams.get("src");
let imageFormat = url.searchParams.get("format");
let width = parseInt(url.searchParams.get("width"), 10);
let via = url.searchParams.get("via");
let defaultOptions;
if(via === "webc") {
defaultOptions = eleventyConfig.getFilter("__private_eleventyImageConfigurationOptions")();
} else if(via === "transform") {
defaultOptions = eleventyConfig.getFilter("__private_eleventyImageTransformConfigurationOptions")();
}
// if using this plugin directly (not via webc or transform), global default options will need to be passed in to the `addPlugin` call directly
// Prefer options passed to this plugin, fallback to Transform plugin or WebC options if the image source was generated via those options.
let opts = Object.assign({}, defaultOptions, options, {
widths: [width || "auto"],
formats: [imageFormat || "auto"],
dryRun: true,
cacheOptions: {
// We *do* want to write files to .cache for re-use here.
dryRun: false
},
transformOnRequest: false, // use the built images so we dont go in a loop
generatedVia: Util.KEYS.requested,
});
Util.addConfig(eleventyConfig, opts);
debug( `%o transformed on request to %o at %o width.`, src, imageFormat, width );
try {
if(!Util.isFullUrl(src)) {
// Image path on file system must be in working directory
src = TemplatePath.absolutePath(".", src);
if(!fs.existsSync(src) || !src.startsWith(TemplatePath.absolutePath("."))) {
throw new Error(`Invalid path: ${src}`);
}
}
let stats = await eleventyImage(src, opts);
let format = Object.keys(stats).pop();
let stat = stats[format][0];
if(!stat) {
throw new Error("Invalid image format.");
}
if(!stat.buffer) {
throw new Error("Could not find `buffer` property for image.");
}
return {
headers: {
// TODO Set cache headers to match eleventy-fetch cache options (though remote fetchs are still written to .cache)
"Content-Type": stat.sourceType,
},
body: stat.buffer,
};
} catch (error) {
debug("Error attempting to transform %o: %O", src, error);
return {
status: 500,
headers: {
"Content-Type": "image/svg+xml",
"x-error-message": error.message
},
body: `<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="${width}" height="${width}" x="0" y="0" viewBox="0 0 1569.4 2186" xml:space="preserve" aria-hidden="true" focusable="false"><style>.st0{fill:#bbb;stroke:#bbb;stroke-width:28;stroke-miterlimit:10}</style><g><path class="st0" d="M562.2 1410.1c-9 0-13.5-12-13.5-36.1V778.9c0-11.5-2.3-16.9-7-16.2-28.4 7.2-42.7 10.8-43.1 10.8-7.9.7-11.8-7.2-11.8-23.7v-51.7c0-14.3 4.3-22.4 12.9-24.2l142.2-36.6c1.1-.3 2.7-.5 4.8-.5 7.9 0 11.8 8.4 11.8 25.3v712c0 24.1-4.7 36.1-14 36.1l-82.3-.1zM930.5 1411.2c-14.4 0-26.8-1-37.4-3-10.6-2-21.6-6.5-33.1-13.5s-20.9-16.6-28.3-28.8-13.4-29.3-18-51.2-7-47.9-7-78.1V960.4c0-7.2-2-10.8-5.9-10.8h-33.4c-9 0-13.5-8.6-13.5-25.8v-29.1c0-17.6 4.5-26.4 13.5-26.4h33.4c3.9 0 5.9-4.8 5.9-14.5l9.7-209.5c1.1-19 5.7-28.5 14-28.5h53.9c9 0 13.5 9.5 13.5 28.5v209.5c0 9.7 2.1 14.5 6.5 14.5H973c9 0 13.5 8.8 13.5 26.4v29.1c0 17.2-4.5 25.8-13.5 25.8h-68.9c-2.5 0-4.2.6-5.1 1.9-.9 1.2-1.3 4.2-1.3 8.9v277.9c0 20.8 1.3 38.2 4 52s6.6 24 11.8 30.4 10.4 10.8 15.6 12.9c5.2 2.2 11.6 3.2 19.1 3.2h38.2c9.7 0 14.5 6.7 14.5 19.9v32.3c0 14.7-5.2 22.1-15.6 22.1l-54.8.1zM1137.2 1475.8c8.2 0 15.4-6.7 21.5-20.2s9.2-32.6 9.2-57.4c0-5.8-3.6-25.7-10.8-59.8l-105.6-438.9c-.7-5-1.1-9-1.1-11.9 0-12.9 2.7-19.4 8.1-19.4h65.2c5 0 9.1 1.7 12.4 5.1s5.8 10.3 7.5 20.7l70 370.5c1.4 4.3 2.3 6.5 2.7 6.5 1.4 0 2.2-2 2.2-5.9l54.9-369.5c1.4-10.8 3.7-18 6.7-21.8s6.9-5.7 11.6-5.7h45.2c6.1 0 9.2 7 9.2 21 0 3.2-.4 7.4-1.1 12.4l-95.9 499.3c-7.5 41.3-15.8 72.9-24.8 94.8s-19 36.8-30.2 44.7c-11.1 7.9-25.8 12-44.2 12.4h-5.4c-29.1 0-48.8-7.7-59.2-23.2-2.9-3.2-4.3-11.5-4.3-24.8 0-26.6 4.3-39.9 12.9-39.9.7 0 7.2 1.8 19.4 5.4 12.4 3.8 20.3 5.6 23.9 5.6z"/><g><path class="st0" d="M291.2 1411.1c-9 0-13.5-12-13.5-36.1V779.9c0-11.5-2.3-16.9-7-16.2-28.4 7.2-42.7 10.8-43.1 10.8-7.9.7-11.8-7.2-11.8-23.7v-51.7c0-14.3 4.3-22.4 12.9-24.2L371 638.2c1.1-.3 2.7-.5 4.8-.5 7.9 0 11.8 8.4 11.8 25.3v712c0 24.1-4.7 36.1-14 36.1h-82.4z"/></g></g></svg>`,
};
}
}
}
});
}
module.exports = {
eleventyImageOnRequestDuringServePlugin,
};

210
node_modules/@11ty/eleventy-img/src/transform-plugin.js generated vendored Normal file
View File

@ -0,0 +1,210 @@
const path = require("node:path");
const Util = require("./util.js");
const { imageAttributesToPosthtmlNode, getOutputDirectory, cleanTag, isIgnored, isOptional } = require("./image-attrs-to-posthtml-node.js");
const { getGlobalOptions } = require("./global-options.js");
const { eleventyImageOnRequestDuringServePlugin } = require("./on-request-during-serve-plugin.js");
const PLACEHOLDER_DATA_URI = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNgYAAAAAMAASsJTYQAAAAASUVORK5CYII=";
const ATTRS = {
ORIGINAL_SOURCE: "eleventy:internal_original_src",
};
function getSrcAttributeValue(sourceNode/*, rootTargetNode*/) {
// Debatable TODO: use rootTargetNode (if `picture`) to retrieve a potentially higher quality source from <source srcset>
return sourceNode.attrs?.src;
}
function assignAttributes(rootTargetNode, newNode) {
// only copy attributes if old and new tag name are the same (picture => picture, img => img)
if(rootTargetNode.tag !== newNode.tag) {
delete rootTargetNode.attrs;
}
if(!rootTargetNode.attrs) {
rootTargetNode.attrs = {};
}
// Copy all new attributes to target
if(newNode.attrs) {
Object.assign(rootTargetNode.attrs, newNode.attrs);
}
}
function getOutputLocations(originalSource, outputDirectoryFromAttribute, pageContext, options) {
let projectOutputDirectory = options.directories.output;
if(outputDirectoryFromAttribute) {
if(path.isAbsolute(outputDirectoryFromAttribute)) {
return {
outputDir: path.join(projectOutputDirectory, outputDirectoryFromAttribute),
urlPath: outputDirectoryFromAttribute,
};
}
return {
outputDir: path.join(projectOutputDirectory, pageContext.url, outputDirectoryFromAttribute),
urlPath: path.join(pageContext.url, outputDirectoryFromAttribute),
};
}
if(options.urlPath) {
// do nothing, user has specified directories in the plugin options.
return {};
}
if(path.isAbsolute(originalSource)) {
// if the path is an absolute one (relative to the content directory) write to a global output directory to avoid duplicate writes for identical source images.
return {
outputDir: path.join(projectOutputDirectory, "/img/"),
urlPath: "/img/",
};
}
// If original source is a relative one, this colocates images to the template output.
let dir = path.dirname(pageContext.outputPath);
// filename is included in url: ./dir/post.html => /dir/post.html
if(pageContext.outputPath.endsWith(pageContext.url)) {
// remove file name
let split = pageContext.url.split("/");
split[split.length - 1] = "";
return {
outputDir: dir,
urlPath: split.join("/"),
};
}
// filename is not included in url: ./dir/post/index.html => /dir/post/
return {
outputDir: dir,
urlPath: pageContext.url,
};
}
function transformTag(context, sourceNode, rootTargetNode, opts) {
let originalSource = getSrcAttributeValue(sourceNode, rootTargetNode);
if(!originalSource) {
return sourceNode;
}
let { inputPath } = context.page;
sourceNode.attrs.src = Util.normalizeImageSource({
input: opts.directories.input,
inputPath,
}, originalSource, {
isViaHtml: true, // this reference came from HTML, so we can decode the file name
});
if(sourceNode.attrs.src !== originalSource) {
sourceNode.attrs[ATTRS.ORIGINAL_SOURCE] = originalSource;
}
let outputDirectoryFromAttribute = getOutputDirectory(sourceNode);
let instanceOptions = getOutputLocations(originalSource, outputDirectoryFromAttribute, context.page, opts);
// returns promise
return imageAttributesToPosthtmlNode(sourceNode.attrs, instanceOptions, opts).then(newNode => {
// node.tag
// node.attrs
// node.content
assignAttributes(rootTargetNode, newNode);
rootTargetNode.tag = newNode.tag;
rootTargetNode.content = newNode.content;
}, (error) => {
if(isOptional(sourceNode) || !opts.failOnError) {
if(isOptional(sourceNode, "keep")) {
// replace with the original source value, no image transformation is taking place
if(sourceNode.attrs[ATTRS.ORIGINAL_SOURCE]) {
sourceNode.attrs.src = sourceNode.attrs[ATTRS.ORIGINAL_SOURCE];
}
// leave as-is, likely 404 when a user visits the page
} else if(isOptional(sourceNode, "placeholder")) {
// transparent png
sourceNode.attrs.src = PLACEHOLDER_DATA_URI;
} else if(isOptional(sourceNode)) {
delete sourceNode.attrs.src;
}
// optional or dont fail on error
cleanTag(sourceNode);
return Promise.resolve();
}
return Promise.reject(error);
});
}
function eleventyImageTransformPlugin(eleventyConfig, options = {}) {
options = Object.assign({
extensions: "html",
transformOnRequest: process.env.ELEVENTY_RUN_MODE === "serve",
}, options);
if(options.transformOnRequest !== false) {
// Add the on-request plugin automatically (unless opt-out in this plugins options only)
eleventyConfig.addPlugin(eleventyImageOnRequestDuringServePlugin);
}
// Notably, global options are not shared automatically with the WebC `eleventyImagePlugin` above.
// Devs can pass in the same object to both if they want!
let opts = getGlobalOptions(eleventyConfig, options, "transform");
eleventyConfig.addJavaScriptFunction("__private_eleventyImageTransformConfigurationOptions", () => {
return opts;
});
function posthtmlPlugin(context) {
return async (tree) => {
let promises = [];
let match = tree.match;
tree.match({ tag: 'picture' }, pictureNode => {
match.call(pictureNode, { tag: 'img' }, imgNode => {
imgNode._insideOfPicture = true;
if(!isIgnored(imgNode) && !imgNode?.attrs?.src?.startsWith("data:")) {
promises.push(transformTag(context, imgNode, pictureNode, opts));
}
return imgNode;
});
return pictureNode;
});
tree.match({ tag: 'img' }, (imgNode) => {
if(imgNode._insideOfPicture) {
delete imgNode._insideOfPicture;
} else if(isIgnored(imgNode) || imgNode?.attrs?.src?.startsWith("data:")) {
cleanTag(imgNode);
} else {
promises.push(transformTag(context, imgNode, imgNode, opts));
}
return imgNode;
});
await Promise.all(promises);
return tree;
};
}
if(!eleventyConfig.htmlTransformer || !("addPosthtmlPlugin" in eleventyConfig.htmlTransformer)) {
throw new Error("[@11ty/eleventy-img] `eleventyImageTransformPlugin` is not compatible with this version of Eleventy. You will need to use v3.0.0 or newer.");
}
eleventyConfig.htmlTransformer.addPosthtmlPlugin(options.extensions, posthtmlPlugin, {
priority: -1, // we want this to go before <base> or inputpath to url
});
}
module.exports = {
eleventyImageTransformPlugin,
};

78
node_modules/@11ty/eleventy-img/src/util.js generated vendored Normal file
View File

@ -0,0 +1,78 @@
const path = require("node:path");
class Util {
static KEYS = {
requested: "requested"
};
/*
* Does not mutate, returns new Object.
*/
static getSortedObject(unordered) {
let keys = Object.keys(unordered).sort();
let obj = {};
for(let key of keys) {
obj[key] = unordered[key];
}
return obj;
}
static isRemoteUrl(url) {
try {
const validUrl = new URL(url);
if (validUrl.protocol.startsWith("https:") || validUrl.protocol.startsWith("http:")) {
return true;
}
return false;
// eslint-disable-next-line no-unused-vars
} catch(e) {
// invalid url OR local path
return false;
}
}
static normalizeImageSource({ input, inputPath }, src, options = {}) {
let { isViaHtml } = Object.assign({
isViaHtml: false
}, options);
if(Util.isFullUrl(src)) {
return src;
}
if(isViaHtml) {
src = decodeURIComponent(src);
}
if(!path.isAbsolute(src)) {
// if the image src is relative, make it relative to the template file (inputPath);
let dir = path.dirname(inputPath);
return path.join(dir, src);
}
// if the image src is absolute, make it relative to the input/content directory.
return path.join(input, src);
}
static isRequested(generatedVia) {
return generatedVia === this.KEYS.requested;
}
static addConfig(eleventyConfig, options) {
if(!eleventyConfig) {
return;
}
Object.defineProperty(options, "eleventyConfig", {
value: eleventyConfig,
enumerable: false,
});
}
}
// Temporary alias for changes made in https://github.com/11ty/eleventy-img/pull/138
Util.isFullUrl = Util.isRemoteUrl;
module.exports = Util;

View File

@ -0,0 +1,23 @@
const { getGlobalOptions } = require("./global-options.js");
const { eleventyImageOnRequestDuringServePlugin } = require("./on-request-during-serve-plugin.js");
function eleventyWebcOptionsPlugin(eleventyConfig, options = {}) {
options = Object.assign({
transformOnRequest: process.env.ELEVENTY_RUN_MODE === "serve",
}, options);
// Notably, global options are not shared automatically with the `eleventyImageTransformPlugin` below.
// Devs can pass in the same object to both if they want!
eleventyConfig.addJavaScriptFunction("__private_eleventyImageConfigurationOptions", () => {
return getGlobalOptions(eleventyConfig, options, "webc");
});
if(options.transformOnRequest !== false) {
// Add the on-request plugin automatically (unless opt-out in this plugins options only)
eleventyConfig.addPlugin(eleventyImageOnRequestDuringServePlugin);
}
}
module.exports = {
eleventyWebcOptionsPlugin,
};

26
node_modules/@11ty/eleventy-navigation/.eleventy.js generated vendored Normal file
View File

@ -0,0 +1,26 @@
const pkg = require("./package.json");
const EleventyNavigation = require("./eleventy-navigation");
// export the configuration function for plugin
module.exports = function(eleventyConfig) {
try {
eleventyConfig.versionCheck(pkg["11ty"].compatibility);
} catch(e) {
console.log( `WARN: Eleventy Plugin (${pkg.name}) Compatibility: ${e.message}` );
}
eleventyConfig.addFilter("eleventyNavigation", EleventyNavigation.findNavigationEntries);
eleventyConfig.addFilter("eleventyNavigationBreadcrumb", EleventyNavigation.findBreadcrumbEntries);
eleventyConfig.addFilter("eleventyNavigationToHtml", function(pages, options) {
return EleventyNavigation.toHtml.call(eleventyConfig, pages, options);
});
eleventyConfig.addFilter("eleventyNavigationToMarkdown", function(pages, options) {
return EleventyNavigation.toMarkdown.call(eleventyConfig, pages, options);
});
};
module.exports.navigation = {
find: EleventyNavigation.findNavigationEntries,
findBreadcrumbs: EleventyNavigation.findBreadcrumbEntries,
getDependencyGraph: EleventyNavigation.getDependencyGraph,
};

Some files were not shown because too many files have changed in this diff Show More