create-berna-stencil 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +170 -0
- package/NOTICE +5 -0
- package/README.md +4 -4
- package/bin/create.js +11 -4
- package/docs/Head and SEO.md +23 -0
- package/package.json +5 -3
- package/src/frontend/components/welcome.njk +11 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other
|
|
43
|
+
modifications represent, as a whole, an original work of authorship.
|
|
44
|
+
For the purposes of this License, Derivative Works shall not include
|
|
45
|
+
works that remain separable from, or merely link (or bind by name)
|
|
46
|
+
to the interfaces of, the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean, as submitted to the Licensor for inclusion
|
|
49
|
+
in the Work by the copyright owner or by an individual or Legal Entity
|
|
50
|
+
authorized to submit on behalf of the copyright owner. For the
|
|
51
|
+
purposes of this definition, "submitted" means any form of electronic,
|
|
52
|
+
verbal, or written communication sent to the Licensor or its
|
|
53
|
+
representatives, including but not limited to communication on
|
|
54
|
+
electronic mailing lists, source code control systems, and issue
|
|
55
|
+
tracking systems that are managed by, or on behalf of, the Licensor
|
|
56
|
+
for the purpose of discussing and improving the Work, but excluding
|
|
57
|
+
communication that is conspicuously marked or otherwise designated
|
|
58
|
+
in writing by the copyright owner as "Not a Contribution."
|
|
59
|
+
|
|
60
|
+
"Contributor" shall mean Licensor and any Legal Entity on behalf of
|
|
61
|
+
whom a Contribution has been received by the Licensor and incorporated
|
|
62
|
+
within the Work.
|
|
63
|
+
|
|
64
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
65
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
66
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
67
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
68
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
69
|
+
Work and such Derivative Works in Source or Object form.
|
|
70
|
+
|
|
71
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
72
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
73
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
74
|
+
(except as stated in this section) patent license to make, have made,
|
|
75
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
76
|
+
where such license applies only to those patent claims licensable
|
|
77
|
+
by such Contributor that are necessarily infringed by their
|
|
78
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
79
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
80
|
+
institute patent litigation against any entity (including a
|
|
81
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
82
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
83
|
+
or contributory patent infringement, then any patent licenses
|
|
84
|
+
granted to You under this License for that Work shall terminate
|
|
85
|
+
as of the date such litigation is filed.
|
|
86
|
+
|
|
87
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
88
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
89
|
+
modifications, and in Source or Object form, provided that You
|
|
90
|
+
meet the following conditions:
|
|
91
|
+
|
|
92
|
+
(a) You must give any other recipients of the Work or Derivative
|
|
93
|
+
Works a copy of this License; and
|
|
94
|
+
|
|
95
|
+
(b) You must cause any modified files to carry prominent notices
|
|
96
|
+
stating that You changed the files; and
|
|
97
|
+
|
|
98
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
99
|
+
that You distribute, all copyright, patent, trademark, and
|
|
100
|
+
attribution notices from the Source form of the Work,
|
|
101
|
+
excluding those notices that do not pertain to any part of
|
|
102
|
+
the Derivative Works; and
|
|
103
|
+
|
|
104
|
+
(d) If the Work includes a NOTICE text file, You must include a
|
|
105
|
+
readable copy of the attribution notices contained within such
|
|
106
|
+
NOTICE file, in at least one of the following places: within
|
|
107
|
+
a NOTICE text file distributed as part of the Derivative Works;
|
|
108
|
+
within the Source form or documentation, if provided along with
|
|
109
|
+
the Derivative Works; or, within a display generated by the
|
|
110
|
+
Derivative Works, if and wherever such third-party notices
|
|
111
|
+
normally appear. The contents of the NOTICE file are for
|
|
112
|
+
informational purposes only and do not modify the License.
|
|
113
|
+
|
|
114
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
115
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
116
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
117
|
+
this License, without any additional terms or conditions.
|
|
118
|
+
|
|
119
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
120
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
121
|
+
except as required for reasonable and customary use in describing the
|
|
122
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
123
|
+
|
|
124
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed
|
|
125
|
+
to in writing, Licensor provides the Work (and each Contributor
|
|
126
|
+
provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES
|
|
127
|
+
OR CONDITIONS OF ANY KIND, either express or implied, including,
|
|
128
|
+
without limitation, any warranties or conditions of TITLE,
|
|
129
|
+
NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR
|
|
130
|
+
PURPOSE. You are solely responsible for determining the
|
|
131
|
+
appropriateness of using or reproducing the Work and assume any
|
|
132
|
+
risks associated with Your exercise of permissions under this License.
|
|
133
|
+
|
|
134
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
135
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
136
|
+
unless required by applicable law (such as deliberate and grossly
|
|
137
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
138
|
+
liable to You for damages, including any direct, indirect, special,
|
|
139
|
+
incidental, or exemplary damages of any character arising as a
|
|
140
|
+
result of this License or out of the use or inability to use the
|
|
141
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
142
|
+
work stoppage, computer failure or malfunction, or all other
|
|
143
|
+
commercial damages or losses), even if such Contributor has been
|
|
144
|
+
advised of the possibility of such damages.
|
|
145
|
+
|
|
146
|
+
9. Accepting Warranty or Liability While Redistributing. You may choose
|
|
147
|
+
to offer, and charge a fee for, acceptance of support, warranty,
|
|
148
|
+
indemnity, or other liability obligations and/or rights consistent
|
|
149
|
+
with this License. However, in accepting such obligations, You may
|
|
150
|
+
act only on Your own behalf and on Your sole responsibility, not on
|
|
151
|
+
behalf of any other Contributor, and only if You agree to indemnify,
|
|
152
|
+
defend, and hold each Contributor harmless for any liability incurred
|
|
153
|
+
by, or claims asserted against, such Contributor by reason of your
|
|
154
|
+
accepting any such warranty or additional liability.
|
|
155
|
+
|
|
156
|
+
END OF TERMS AND CONDITIONS
|
|
157
|
+
|
|
158
|
+
Copyright 2026 Michele Garofalo
|
|
159
|
+
|
|
160
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
161
|
+
you may not use this file except in compliance with the License.
|
|
162
|
+
You may obtain a copy of the License at
|
|
163
|
+
|
|
164
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
165
|
+
|
|
166
|
+
Unless required by applicable law or agreed to in writing, software
|
|
167
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
168
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
169
|
+
implied. See the License for the specific language governing
|
|
170
|
+
permissions and limitations under the License.
|
package/NOTICE
ADDED
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ✏️ Berna-Stencil
|
|
2
2
|
**Berna-Stencil** is an open source static site generator built on top of [Eleventy](https://www.11ty.dev/), designed with one clear mission: make web development simple, approachable, and enjoyable — for everyone.
|
|
3
3
|
|
|
4
4
|
Whether you're a seasoned developer looking for a clean starting point or a beginner taking your first steps into the world of web creation, Berna-Stencil gives you everything you need, right out of the box. No complicated setup, no hours spent reading documentation, no frustration — just a solid, well-structured foundation ready to become your next website.
|
|
@@ -12,8 +12,8 @@ Building a website from scratch involves a lot of moving parts: templating engin
|
|
|
12
12
|
- 📁 **Scalable structure** — a clean, opinionated project layout that grows with your needs
|
|
13
13
|
- 🌍 **Open source** — free to use, free to modify, free to share
|
|
14
14
|
|
|
15
|
-

|
|
16
|
+

|
|
17
17
|

|
|
18
18
|
|
|
19
19
|
## Prerequisites
|
|
@@ -44,7 +44,7 @@ Building a website from scratch involves a lot of moving parts: templating engin
|
|
|
44
44
|
|
|
45
45
|
## Changelog
|
|
46
46
|
|
|
47
|
-
### [2.0.
|
|
47
|
+
### [2.0.3] - 2025-05-28
|
|
48
48
|
* Initial release
|
|
49
49
|
* Eleventy v3.1.2 support
|
|
50
50
|
* Base project structure and scaffolding CLI
|
package/bin/create.js
CHANGED
|
@@ -13,16 +13,23 @@ const COPY_TARGETS = [
|
|
|
13
13
|
'.eleventyignore',
|
|
14
14
|
];
|
|
15
15
|
|
|
16
|
+
const configExample = path.join(targetDir, 'src/backend/config.example.php');
|
|
17
|
+
const configDest = path.join(targetDir, 'src/backend/config.php');
|
|
18
|
+
if (fs.existsSync(configExample) && !fs.existsSync(configDest)) {
|
|
19
|
+
fs.copyFileSync(configExample, configDest);
|
|
20
|
+
fs.unlinkSync(configExample);
|
|
21
|
+
}
|
|
22
|
+
|
|
16
23
|
const PROJECT_PACKAGE = {
|
|
17
24
|
name: path.basename(targetDir),
|
|
18
|
-
version: '
|
|
25
|
+
version: '2.0.3',
|
|
19
26
|
private: true,
|
|
20
27
|
scripts: {
|
|
21
|
-
"build:css": "sass src/frontend/scss:out/css --no-source-map --style=compressed --quiet
|
|
28
|
+
"build:css": "sass src/frontend/scss:out/css --no-source-map --style=compressed --quiet",
|
|
22
29
|
"build:js": "esbuild \"src/frontend/js/pages/*.js\" --bundle --outdir=out/js/pages --minify",
|
|
23
30
|
"build:11ty": "eleventy",
|
|
24
|
-
"build": "npm run build:css && npm run build:js && npm run build:11ty",
|
|
25
|
-
"serve:css": "sass --watch src/frontend/scss:out/css --no-source-map --quiet
|
|
31
|
+
"build": "npm run clean && npm run build:css && npm run build:js && npm run build:11ty",
|
|
32
|
+
"serve:css": "sass --watch src/frontend/scss:out/css --no-source-map --quiet",
|
|
26
33
|
"serve:js": "esbuild \"src/frontend/js/pages/*.js\" --bundle --outdir=out/js/pages --watch",
|
|
27
34
|
"serve:11ty": "eleventy --serve --quiet",
|
|
28
35
|
"clean": "node _tools/cleanOutput.js",
|
package/docs/Head and SEO.md
CHANGED
|
@@ -55,6 +55,29 @@ If you don't want to use a particular cdn inserting it in `base.njk` for all pag
|
|
|
55
55
|
|
|
56
56
|
To customize them, edit `src/llms.njk` or `src/robots.njk` directly.
|
|
57
57
|
|
|
58
|
+
### Customizing llms.txt
|
|
59
|
+
|
|
60
|
+
`src/llms.njk` ships with a base template — **replace the placeholders with your own content**:
|
|
61
|
+
|
|
62
|
+
```markdown
|
|
63
|
+
# Site name
|
|
64
|
+
|
|
65
|
+
> Site description
|
|
66
|
+
|
|
67
|
+
Built by Name and surname — https://yoursite.com
|
|
68
|
+
|
|
69
|
+
## Pages
|
|
70
|
+
|
|
71
|
+
- https://yoursite.com: Homepage
|
|
72
|
+
|
|
73
|
+
## Notes
|
|
74
|
+
|
|
75
|
+
- Language: en
|
|
76
|
+
- All content may be used for AI indexing unless otherwise stated
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
> The more accurate and detailed your `llms.txt`, the better AI models will understand and reference your site.
|
|
80
|
+
|
|
58
81
|
## Configuration field description
|
|
59
82
|
|
|
60
83
|
| Field | Purpose |
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-berna-stencil",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Eleventy boilerplate with per-page SCSS/JS pipeline, esbuild bundling, multi-framework CSS support and a built-in page management CLI",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Michele Garofalo",
|
|
7
|
-
"license": "
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "https://github.com/rhaastrake/berna-stencil"
|
|
@@ -23,7 +23,9 @@
|
|
|
23
23
|
"_tools/",
|
|
24
24
|
".eleventy.js",
|
|
25
25
|
".eleventyignore",
|
|
26
|
-
".gitignore"
|
|
26
|
+
".gitignore",
|
|
27
|
+
"LICENSE",
|
|
28
|
+
"NOTICE"
|
|
27
29
|
],
|
|
28
30
|
"engines": {
|
|
29
31
|
"node": ">=18.0.0"
|
|
@@ -310,7 +310,7 @@ export function yourFunction() {
|
|
|
310
310
|
"description": "Page description"
|
|
311
311
|
}
|
|
312
312
|
}</code></pre>
|
|
313
|
-
<p>See <a href="head-
|
|
313
|
+
<p>See <a href="#" class="nav-to-head-seo">Head & SEO</a> for all available options</p>
|
|
314
314
|
</div>
|
|
315
315
|
</div>
|
|
316
316
|
|
|
@@ -832,7 +832,16 @@ const res = await fetch('/api/posts', {
|
|
|
832
832
|
if (assistantRadio) {
|
|
833
833
|
assistantRadio.checked = true;
|
|
834
834
|
assistantRadio.dispatchEvent(new Event('change'));
|
|
835
|
-
|
|
835
|
+
}
|
|
836
|
+
});
|
|
837
|
+
document.querySelector('.nav-to-head-seo').addEventListener('click', (e) => {
|
|
838
|
+
e.preventDefault();
|
|
839
|
+
|
|
840
|
+
const headAndSeoRadio = document.querySelector('input[name="guide-filter"][value="head-seo"]');
|
|
841
|
+
|
|
842
|
+
if (headAndSeoRadio) {
|
|
843
|
+
headAndSeoRadio.checked = true;
|
|
844
|
+
headAndSeoRadio.dispatchEvent(new Event('change'));
|
|
836
845
|
}
|
|
837
846
|
});
|
|
838
847
|
</script>
|