@d-zero/scaffold 5.0.0-beta.17 → 5.0.0-beta.19
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/.vscode/settings.json +9 -0
- package/CHANGELOG.md +12 -0
- package/README.md +7 -8
- package/__assets/_libs/component/c-nav-breadcrumb.pug +1 -1
- package/__assets/_libs/mixin/meta.pug +3 -1
- package/cspell.json +2 -1
- package/htdocs/__tmpl/000_home.html +279 -0
- package/htdocs/__tmpl/100_sub.html +1695 -0
- package/htdocs/__tmpl/200_blog_index.html +412 -0
- package/htdocs/__tmpl/210_blog_index.html +412 -0
- package/htdocs/__tmpl/300_form_input.html +800 -0
- package/htdocs/__tmpl/301_form_confirm.html +528 -0
- package/htdocs/__tmpl/302_form_complete.html +309 -0
- package/htdocs/__tmpl/index.html +82 -0
- package/htdocs/css/bge_style.css +13 -0
- package/htdocs/css/style.css +13 -0
- package/htdocs/index.html +13 -0
- package/htdocs/js/script.js +5 -0
- package/htdocs/sample/index.html +244 -0
- package/htdocs/sub-folder.test/css/style.css +7 -0
- package/htdocs/sub-folder.test/index.html +32 -0
- package/htdocs/sub-folder.test/js/script.js +5 -0
- package/kamado.config.ts +48 -0
- package/package.json +27 -26
- package/__assets/_libs/data/breadcrumbs.js +0 -77
- package/__assets/_libs/data/titlelist.js +0 -16
- package/eleventy.config.mjs +0 -82
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="ja">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width">
|
|
6
|
+
<title>サンプルページ__サイト名__</title>
|
|
7
|
+
<meta name="format-detection" content="telephone=no">
|
|
8
|
+
<meta name="description" content="サンプルページの説明">
|
|
9
|
+
<meta property="og:type" content="website">
|
|
10
|
+
<meta property="og:site_name" content="__サイト名__">
|
|
11
|
+
<meta property="og:description" content="サンプルページの説明">
|
|
12
|
+
<meta property="og:url" content="https://example.com/sample/">
|
|
13
|
+
<meta property="og:image" content="https://example.com/img/ogp.png">
|
|
14
|
+
<meta name="twitter:card" content="summary_large_image">
|
|
15
|
+
<meta name="twitter:url" content="https://example.com/sample/">
|
|
16
|
+
<meta name="twitter:title" content="__サイト名__">
|
|
17
|
+
<meta name="twitter:description" content="サンプルページの説明">
|
|
18
|
+
<meta name="twitter:image" content="https://example.com/img/ogp.png">
|
|
19
|
+
<link rel="icon" href="/favicon.png">
|
|
20
|
+
<link rel="apple-touch-icon" href="/img/apple-touch-icon.png">
|
|
21
|
+
<link href="/css/style.css" rel="stylesheet">
|
|
22
|
+
<link ⚠️="baserCMS組み込み時は削除してください" rel="stylesheet" href="/__tmpl/__burger_editor/css/colorbox.css">
|
|
23
|
+
<script src="/js/jquery.min.js"></script>
|
|
24
|
+
<script ⚠️="baserCMS組み込み時は削除してください" src="https://maps.google.com/maps/api/js?key=AIzaSyDc3Vko3MvdrlJuQyEmo0WiT50RIMMtk5g"></script>
|
|
25
|
+
<script ⚠️="baserCMS組み込み時は削除してください" src="/__tmpl/__burger_editor/js/bge_modules/jquery.colorbox-min.js"></script>
|
|
26
|
+
<script ⚠️="baserCMS組み込み時は削除してください" src="/__tmpl/__burger_editor/js/bge_modules/bge_functions.min.js"></script>
|
|
27
|
+
<script src="/js/script.js" type="module"></script>
|
|
28
|
+
</head>
|
|
29
|
+
<body class="c-page-sub">
|
|
30
|
+
<div class="c-page-sub__base">
|
|
31
|
+
<div class="c-page-sub__header">
|
|
32
|
+
<header class="c-header">
|
|
33
|
+
<div class="c-header__body">
|
|
34
|
+
<div class="c-header__title">
|
|
35
|
+
<div class="c-header__site-name">
|
|
36
|
+
<div>
|
|
37
|
+
<a href="__URL__"><span>サイトタイトル</span></a>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
<p class="c-header__description">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="c-header__info">
|
|
43
|
+
<ul class="c-header__links">
|
|
44
|
+
<li>
|
|
45
|
+
<a href="__URL__"><span>会社概要</span></a>
|
|
46
|
+
</li>
|
|
47
|
+
<li>
|
|
48
|
+
<a href="__URL__"><span>新着情報</span></a>
|
|
49
|
+
</li>
|
|
50
|
+
<li>
|
|
51
|
+
<a href="__URL__"><span>サイトマップ</span></a>
|
|
52
|
+
</li>
|
|
53
|
+
</ul>
|
|
54
|
+
<div class="c-header__tel">
|
|
55
|
+
<a href="tel:0000000000"><span>00-0000-0000</span></a>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</header>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="c-page-sub__nav-global">
|
|
62
|
+
<nav class="c-nav-global" aria-label="メインメニュー">
|
|
63
|
+
<div class="c-nav-global__body">
|
|
64
|
+
<ul class="c-nav-global__list">
|
|
65
|
+
<li class="c-nav-global__item">
|
|
66
|
+
<a href="__URL__"><span>コンテンツ</span></a>
|
|
67
|
+
</li>
|
|
68
|
+
<li class="c-nav-global__item">
|
|
69
|
+
<a href="__URL__"><span>コンテンツ</span></a>
|
|
70
|
+
</li>
|
|
71
|
+
<li class="c-nav-global__item">
|
|
72
|
+
<a href="__URL__"><span>コンテンツ</span></a>
|
|
73
|
+
</li>
|
|
74
|
+
<li class="c-nav-global__item">
|
|
75
|
+
<a href="__URL__"><span>コンテンツ</span></a>
|
|
76
|
+
</li>
|
|
77
|
+
<li class="c-nav-global__item">
|
|
78
|
+
<a href="__URL__"><span>コンテンツ</span></a>
|
|
79
|
+
</li>
|
|
80
|
+
<li class="c-nav-global__item">
|
|
81
|
+
<a href="__URL__"><span>コンテンツ</span></a>
|
|
82
|
+
</li>
|
|
83
|
+
</ul>
|
|
84
|
+
</div>
|
|
85
|
+
</nav>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="c-page-sub__main">
|
|
88
|
+
<main>
|
|
89
|
+
<article class="c-page-sub__content">
|
|
90
|
+
<div class="c-page-sub__title-page">
|
|
91
|
+
<div class="c-title-page">
|
|
92
|
+
<h1>サンプルページ</h1>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="c-page-sub__nav-breadcrumb">
|
|
96
|
+
<div class="c-nav-breadcrumb">
|
|
97
|
+
<ol itemscope itemtype="https://schema.org/BreadcrumbList">
|
|
98
|
+
<li class="c-nav-breadcrumb__item" itemscope itemprop="itemListElement" itemtype="https://schema.org/ListItem" data-breadcrumb="home">
|
|
99
|
+
<a href="/" itemscope itemprop="item" itemtype="https://schema.org/WebPage" itemid="/"><span itemprop="name">Home</span></a> <meta itemprop="position" content="1"><span class="c-nav-breadcrumb__separetor"></span>
|
|
100
|
+
</li>
|
|
101
|
+
<li class="c-nav-breadcrumb__item" itemscope itemprop="itemListElement" itemtype="https://schema.org/ListItem">
|
|
102
|
+
<a href="/sample/" itemscope itemprop="item" itemtype="https://schema.org/WebPage" itemid="/sample/"><span itemprop="name">サンプルページ</span></a>
|
|
103
|
+
<meta itemprop="position" content="2">
|
|
104
|
+
</li>
|
|
105
|
+
</ol>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
<div class="c-page-sub__content-body">
|
|
109
|
+
<div class="c-content-main">
|
|
110
|
+
<div data-bge-container="inline:immutable" data-bge-name="title">
|
|
111
|
+
<div data-bge-container-frame="">
|
|
112
|
+
<div data-bge-item="">
|
|
113
|
+
<div data-bgi="title-h2" data-bgi-ver="0.0.0"><h2 class="bge-title-h2" data-bge="title-h2">サンプルページ</h2></div>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
</article>
|
|
120
|
+
</main>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="c-page-sub__nav-sitemap">
|
|
123
|
+
<nav class="c-nav-sitemap" aria-label="ページ一覧">
|
|
124
|
+
<div class="c-nav-sitemap__body">
|
|
125
|
+
<ul data-sitemap-level="1">
|
|
126
|
+
<li data-sitemap-level="1">
|
|
127
|
+
<a href="__URL__">Lv.1_カテゴリインデックス</a>
|
|
128
|
+
<ul data-sitemap-level="2">
|
|
129
|
+
<li data-sitemap-level="2">
|
|
130
|
+
<a href="__URL__">Lv.2_サブカテゴリインデックス</a>
|
|
131
|
+
<ul data-sitemap-level="3">
|
|
132
|
+
<li data-sitemap-level="3"><a href="__URL__">Lv.3_ページタイトル</a></li>
|
|
133
|
+
<li data-sitemap-level="3"><a href="__URL__">Lv.3_ページタイトル</a></li>
|
|
134
|
+
<li data-sitemap-level="3"><a href="__URL__">Lv.3_ページタイトル</a></li>
|
|
135
|
+
<li data-sitemap-level="3"><a href="__URL__">Lv.3_ページタイトル</a></li>
|
|
136
|
+
</ul>
|
|
137
|
+
</li>
|
|
138
|
+
</ul>
|
|
139
|
+
</li>
|
|
140
|
+
<li data-sitemap-level="1"><a href="__URL__">Lv.1_ページタイトル</a></li>
|
|
141
|
+
<li data-sitemap-level="1"><a href="__URL__">Lv.1_ページタイトル</a></li>
|
|
142
|
+
<li data-sitemap-level="1"><a href="__URL__">Lv.1_ページタイトル</a></li>
|
|
143
|
+
<li data-sitemap-level="1">
|
|
144
|
+
<a href="__URL__">Lv.1_カテゴリインデックス</a>
|
|
145
|
+
<ul data-sitemap-level="2">
|
|
146
|
+
<li data-sitemap-level="2"><a href="__URL__">Lv.2_ページタイトル</a></li>
|
|
147
|
+
<li data-sitemap-level="2"><a href="__URL__">Lv.2_ページタイトル</a></li>
|
|
148
|
+
<li data-sitemap-level="2"><a href="__URL__">Lv.2_ページタイトル</a></li>
|
|
149
|
+
<li data-sitemap-level="2">
|
|
150
|
+
<a href="__URL__">Lv.2_サブカテゴリインデックス</a>
|
|
151
|
+
<ul data-sitemap-level="3">
|
|
152
|
+
<li data-sitemap-level="3"><a href="__URL__">Lv.3_ページタイトル</a></li>
|
|
153
|
+
<li data-sitemap-level="3"><a href="__URL__">Lv.3_ページタイトル</a></li>
|
|
154
|
+
<li data-sitemap-level="3"><a href="__URL__">Lv.3_ページタイトル</a></li>
|
|
155
|
+
</ul>
|
|
156
|
+
</li>
|
|
157
|
+
</ul>
|
|
158
|
+
</li>
|
|
159
|
+
<li data-sitemap-level="1"><a href="__URL__">Lv.1_ページタイトル</a></li>
|
|
160
|
+
<li data-sitemap-level="1"><a href="__URL__">Lv.1_ページタイトル</a></li>
|
|
161
|
+
<li data-sitemap-level="1">
|
|
162
|
+
<a href="__URL__">Lv.1_カテゴリインデックス</a>
|
|
163
|
+
<ul data-sitemap-level="2">
|
|
164
|
+
<li data-sitemap-level="2"><a href="__URL__">Lv.2_ページタイトル</a></li>
|
|
165
|
+
<li data-sitemap-level="2">
|
|
166
|
+
<a href="__URL__">Lv.2_サブカテゴリインデックス</a>
|
|
167
|
+
<ul data-sitemap-level="3">
|
|
168
|
+
<li data-sitemap-level="3"><a href="__URL__">Lv.3_ページタイトル</a></li>
|
|
169
|
+
<li data-sitemap-level="3"><a href="__URL__">Lv.3_ページタイトル</a></li>
|
|
170
|
+
<li data-sitemap-level="3"><a href="__URL__">Lv.3_ページタイトル</a></li>
|
|
171
|
+
</ul>
|
|
172
|
+
</li>
|
|
173
|
+
<li data-sitemap-level="2"><a href="__URL__">Lv.2_ページタイトル</a></li>
|
|
174
|
+
<li data-sitemap-level="2"><a href="__URL__">Lv.2_ページタイトル</a></li>
|
|
175
|
+
</ul>
|
|
176
|
+
</li>
|
|
177
|
+
<li data-sitemap-level="1">
|
|
178
|
+
<a href="__URL__">Lv.1_カテゴリインデックス</a>
|
|
179
|
+
<ul data-sitemap-level="2">
|
|
180
|
+
<li data-sitemap-level="2"><a href="__URL__">Lv.2_ページタイトル</a></li>
|
|
181
|
+
<li data-sitemap-level="2"><a href="__URL__">Lv.2_ページタイトル</a></li>
|
|
182
|
+
<li data-sitemap-level="2"><a href="__URL__">Lv.2_ページタイトル</a></li>
|
|
183
|
+
<li data-sitemap-level="2">
|
|
184
|
+
<a href="__URL__">Lv.2_サブカテゴリインデックス</a>
|
|
185
|
+
<ul data-sitemap-level="3">
|
|
186
|
+
<li data-sitemap-level="3"><a href="__URL__">Lv.3_ページタイトル</a></li>
|
|
187
|
+
<li data-sitemap-level="3"><a href="__URL__">Lv.3_ページタイトル</a></li>
|
|
188
|
+
</ul>
|
|
189
|
+
</li>
|
|
190
|
+
</ul>
|
|
191
|
+
</li>
|
|
192
|
+
<li data-sitemap-level="1"><a href="__URL__">Lv.1_ページタイトル</a></li>
|
|
193
|
+
<li data-sitemap-level="1">
|
|
194
|
+
<a href="__URL__">Lv.1_カテゴリインデックス</a>
|
|
195
|
+
<ul data-sitemap-level="2">
|
|
196
|
+
<li data-sitemap-level="2"><a href="__URL__">Lv.2_ページタイトル</a></li>
|
|
197
|
+
<li data-sitemap-level="2">
|
|
198
|
+
<a href="__URL__">Lv.2_サブカテゴリインデックス</a>
|
|
199
|
+
<ul data-sitemap-level="3">
|
|
200
|
+
<li data-sitemap-level="3"><a href="__URL__">Lv.3_ページタイトル</a></li>
|
|
201
|
+
<li data-sitemap-level="3"><a href="__URL__">Lv.3_ページタイトル</a></li>
|
|
202
|
+
<li data-sitemap-level="3"><a href="__URL__">Lv.3_ページタイトル</a></li>
|
|
203
|
+
</ul>
|
|
204
|
+
</li>
|
|
205
|
+
<li data-sitemap-level="2"><a href="__URL__">Lv.2_ページタイトル</a></li>
|
|
206
|
+
<li data-sitemap-level="2"><a href="__URL__">Lv.2_ページタイトル</a></li>
|
|
207
|
+
</ul>
|
|
208
|
+
</li>
|
|
209
|
+
<li data-sitemap-level="1">
|
|
210
|
+
<a href="__URL__">Lv.1_カテゴリインデックス</a>
|
|
211
|
+
<ul data-sitemap-level="2">
|
|
212
|
+
<li data-sitemap-level="2"><a href="__URL__">Lv.2_ページタイトル</a></li>
|
|
213
|
+
<li data-sitemap-level="2"><a href="__URL__">Lv.2_ページタイトル</a></li>
|
|
214
|
+
<li data-sitemap-level="2"><a href="__URL__">Lv.2_ページタイトル</a></li>
|
|
215
|
+
<li data-sitemap-level="2">
|
|
216
|
+
<a href="__URL__">Lv.2_サブカテゴリインデックス</a>
|
|
217
|
+
<ul data-sitemap-level="3">
|
|
218
|
+
<li data-sitemap-level="3"><a href="__URL__">Lv.3_ページタイトル</a></li>
|
|
219
|
+
<li data-sitemap-level="3"><a href="__URL__">Lv.3_ページタイトル</a></li>
|
|
220
|
+
</ul>
|
|
221
|
+
</li>
|
|
222
|
+
</ul>
|
|
223
|
+
</li>
|
|
224
|
+
</ul>
|
|
225
|
+
</div>
|
|
226
|
+
</nav>
|
|
227
|
+
</div>
|
|
228
|
+
<div class="c-page-sub__footer">
|
|
229
|
+
<footer class="c-footer">
|
|
230
|
+
<div class="c-footer__body">
|
|
231
|
+
<div class="c-footer__links">
|
|
232
|
+
<ul>
|
|
233
|
+
<li><a href="__URL__">個人情報保護方針</a></li>
|
|
234
|
+
<li><a href="__URL__">サイトポリシー</a></li>
|
|
235
|
+
<li><a href="__URL__">お問い合わせ</a></li>
|
|
236
|
+
</ul>
|
|
237
|
+
</div>
|
|
238
|
+
<small class="c-footer__copyright">©2024 THE SITE NAME Co.,Ltd.</small>
|
|
239
|
+
</div>
|
|
240
|
+
</footer>
|
|
241
|
+
</div>
|
|
242
|
+
</div>
|
|
243
|
+
</body>
|
|
244
|
+
</html>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*
|
|
2
|
+
rev. 2025-12-22
|
|
3
|
+
copyright © 2025
|
|
4
|
+
*/
|
|
5
|
+
@layer reset{
|
|
6
|
+
|
|
7
|
+
/*! kiso.css v1.2.2 | MIT License | https://github.com/tak-dcxi/kiso.css */*,:after,:before{box-sizing:border-box}:where(:root){font-family:sans-serif;line-height:1.5;text-spacing-trim:trim-start;text-autospace:normal;line-break:strict;overflow-wrap:anywhere;-webkit-text-size-adjust:100%;text-size-adjust:100%;scrollbar-gutter:stable;-webkit-tap-highlight-color:transparent}:where(body){min-block-size:100dvb;margin:unset}:where(h1,h2,h3,h4,h5,h6){text-wrap:pretty}:where(h1){margin-block:.67em;font-size:2em}:where(h2,h3,h4,h5,h6){margin-block:unset}:where(search){display:block}:where(p,blockquote,figure,pre,address,ul,ol,dl,menu){margin-block:unset}:where(blockquote,figure){margin-inline:unset}:where(p:lang(en)){text-wrap:pretty}:where(address:lang(ja)){font-style:unset}:where(ul,ol,menu){padding-inline-start:unset;list-style-type:""}:where(dt){font-weight:bolder}:where(dd){margin-inline-start:unset}:where(pre){text-spacing-trim:space-all;text-autospace:no-autospace}:where(em:lang(ja)){font-weight:bolder}:where(:is(i,cite,em,dfn,var):lang(ja)){font-style:unset}:where(code,kbd,samp){font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:unset;font-variant-ligatures:none}:where(abbr[title]){text-decoration-line:underline;text-decoration-style:dotted;cursor:help}:where(time){text-autospace:no-autospace}@media (forced-colors:active){:where(mark){background-color:Highlight;color:HighlightText}}@media print{:where(mark){border-width:1px;border-style:dotted}}:where(a:any-link){color:unset;text-decoration-line:unset;text-decoration-thickness:from-font}:where(img,svg,picture,video,canvas,model,audio,iframe,embed,object){block-size:auto;max-inline-size:100%;vertical-align:bottom}:where(iframe){border:unset}:where(table){border-collapse:collapse}:where(caption,th){text-align:unset}:where(caption){text-wrap:pretty}::file-selector-button,:where(button,input,select,textarea){border:1px solid;border-color:unset;border-radius:unset;color:unset;font:unset;letter-spacing:unset;text-align:unset}:where(input:is([type=radio i],[type=checkbox i])){margin:unset}:where(input[type=file i]){border:unset}:where(input[type=search i]){-webkit-appearance:textfield}@supports (-webkit-touch-callout:none){:where(input[type=search i]){background-color:Canvas}}:where(input:is([type=tel i],[type=url i],[type=email i],[type=number i]):not(:placeholder-shown)){direction:ltr}:where(textarea){margin-block:unset;resize:block}:where(input:not([type=button i],[type=submit i],[type=reset i]),textarea,[contenteditable]){text-autospace:no-autospace}::file-selector-button,:where(button,input:is([type=button i],[type=submit i],[type=reset i])){background-color:unset}::file-selector-button,:where(button,input:is([type=button i],[type=submit i],[type=reset i]),[role=tab i],[role=button i],[role=option i]){touch-action:manipulation}:where(:enabled)::file-selector-button,:where(button:enabled,label[for],select:enabled,input:is([type=button i],[type=submit i],[type=reset i],[type=radio i],[type=checkbox i]):enabled,[role=tab i],[role=button i],[role=option i]){cursor:pointer}:where(fieldset){min-inline-size:0;margin-inline:unset;padding:unset;border:unset}:where(legend){padding-inline:unset}:where(progress){vertical-align:unset}::placeholder{opacity:unset}:where(summary){list-style-type:"";cursor:pointer}:where(summary)::-webkit-details-marker{display:none}:where(dialog,[popover]){overscroll-behavior-block:contain;padding:unset;border:unset}:where(dialog:not([open],[popover]),[popover]:not(:popover-open)){display:none!important}:where(dialog){max-inline-size:unset;max-block-size:unset}:where(dialog)::backdrop{background-color:oklch(0 0 0deg/30%)}:where([popover]){margin:unset}:where(:focus-visible){outline-offset:3px}[tabindex="-1"]:focus{outline:none!important}:where(:disabled,[aria-disabled=true i]){cursor:default}[hidden]:not([hidden=until-found i]){display:none!important}}:root{--lightest-color:#fff;--darkest-color:#333;--base-font-color:var(--darkest-color);--border-color:var(--darkest-color);--base-font-size:16px;--base-line-height:1.8;--font-family-body:sans-serif;--font-family-heading:helvetica,var(--font-family-body);--font-size-h1:4em;--font-size-h2:2.66667em;--font-size-h3:2em;--font-size-h4:1.6em;--font-size-h5:1.33333em;--font-size-h6:1.14286em}*{&,&:after,&:before{box-sizing:border-box}}body{padding:0;margin:0;font-family:var(--font-family-body);font-size:var(--base-font-size);line-height:var(--base-line-height);color:var(--base-font-color)}button{border-radius:0}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="ja">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width">
|
|
6
|
+
<title>sub-folder.test__サイト名__</title>
|
|
7
|
+
<meta name="format-detection" content="telephone=no">
|
|
8
|
+
<meta name="description" content="">
|
|
9
|
+
<meta property="og:type" content="website">
|
|
10
|
+
<meta property="og:site_name" content="__サイト名__">
|
|
11
|
+
<meta property="og:url" content="https://example.com/sub-folder.test/">
|
|
12
|
+
<meta property="og:image" content="https://example.com/img/ogp.png">
|
|
13
|
+
<meta name="twitter:card" content="summary_large_image">
|
|
14
|
+
<meta name="twitter:url" content="https://example.com/sub-folder.test/">
|
|
15
|
+
<meta name="twitter:title" content="__サイト名__">
|
|
16
|
+
<meta name="twitter:image" content="https://example.com/img/ogp.png">
|
|
17
|
+
<link rel="icon" href="/favicon.png">
|
|
18
|
+
<link rel="apple-touch-icon" href="/img/apple-touch-icon.png">
|
|
19
|
+
<link href="/css/style.css" rel="stylesheet">
|
|
20
|
+
<link ⚠️="baserCMS組み込み時は削除してください" rel="stylesheet" href="/__tmpl/__burger_editor/css/colorbox.css">
|
|
21
|
+
<script src="/js/jquery.min.js"></script>
|
|
22
|
+
<script ⚠️="baserCMS組み込み時は削除してください" src="https://maps.google.com/maps/api/js?key=AIzaSyDc3Vko3MvdrlJuQyEmo0WiT50RIMMtk5g"></script>
|
|
23
|
+
<script ⚠️="baserCMS組み込み時は削除してください" src="/__tmpl/__burger_editor/js/bge_modules/jquery.colorbox-min.js"></script>
|
|
24
|
+
<script ⚠️="baserCMS組み込み時は削除してください" src="/__tmpl/__burger_editor/js/bge_modules/bge_functions.min.js"></script>
|
|
25
|
+
<script src="/js/script.js" type="module"></script>
|
|
26
|
+
</head>
|
|
27
|
+
<body>
|
|
28
|
+
<main>
|
|
29
|
+
<h1>Hello World!</h1>
|
|
30
|
+
</main>
|
|
31
|
+
</body>
|
|
32
|
+
</html>
|
package/kamado.config.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { UserConfig } from 'kamado/config';
|
|
2
|
+
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
|
|
5
|
+
import { pageCompiler } from '@kamado-io/page-compiler';
|
|
6
|
+
import { createCompileHooks } from '@kamado-io/pug-compiler';
|
|
7
|
+
import { scriptCompiler } from '@kamado-io/script-compiler';
|
|
8
|
+
import { styleCompiler } from '@kamado-io/style-compiler';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @type {import('kamado/config').UserConfig}
|
|
12
|
+
*/
|
|
13
|
+
export default {
|
|
14
|
+
dir: {
|
|
15
|
+
root: import.meta.dirname,
|
|
16
|
+
input: path.resolve(import.meta.dirname, '__assets', 'htdocs'),
|
|
17
|
+
output: path.resolve(import.meta.dirname, 'htdocs'),
|
|
18
|
+
},
|
|
19
|
+
devServer: {
|
|
20
|
+
open: true,
|
|
21
|
+
port: 8000,
|
|
22
|
+
},
|
|
23
|
+
compilers: [
|
|
24
|
+
pageCompiler({
|
|
25
|
+
files: '**/*.{html,pug}',
|
|
26
|
+
globalData: {
|
|
27
|
+
dir: path.resolve(import.meta.dirname, '__assets', '_libs', 'data'),
|
|
28
|
+
},
|
|
29
|
+
layouts: {
|
|
30
|
+
dir: path.resolve(import.meta.dirname, '__assets', '_libs', 'layouts'),
|
|
31
|
+
},
|
|
32
|
+
compileHooks: createCompileHooks({
|
|
33
|
+
pathAlias: path.resolve(import.meta.dirname, '__assets', '_libs'),
|
|
34
|
+
}),
|
|
35
|
+
}),
|
|
36
|
+
styleCompiler({
|
|
37
|
+
alias: {
|
|
38
|
+
'@': path.resolve(import.meta.dirname, '__assets', '_libs'),
|
|
39
|
+
},
|
|
40
|
+
}),
|
|
41
|
+
scriptCompiler({
|
|
42
|
+
minifier: true,
|
|
43
|
+
alias: {
|
|
44
|
+
'@': path.resolve(import.meta.dirname, '__assets', '_libs'),
|
|
45
|
+
},
|
|
46
|
+
}),
|
|
47
|
+
],
|
|
48
|
+
} as const satisfies UserConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d-zero/scaffold",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.19",
|
|
4
4
|
"description": "Frontend scaffold files of D-ZERO Co., Ltd.",
|
|
5
5
|
"repository": "https://github.com/d-zero-dev/frontend-env.git",
|
|
6
6
|
"author": "D-ZERO Co., Ltd.",
|
|
@@ -15,11 +15,9 @@
|
|
|
15
15
|
"siteName": "__サイト名__"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
|
-
"build": "yarn lint && npx
|
|
19
|
-
"build:only": "npx
|
|
20
|
-
"
|
|
21
|
-
"build:only:cleaer": "npx @d-zero/builder --clear-cache",
|
|
22
|
-
"dev": "npx eleventy --serve --watch",
|
|
18
|
+
"build": "yarn lint && npx kamado build",
|
|
19
|
+
"build:only": "npx kamado build",
|
|
20
|
+
"dev": "npx kamado dev",
|
|
23
21
|
"d": "yarn dev",
|
|
24
22
|
"lint": "run-s \"lint:*\"",
|
|
25
23
|
"lint:html": "npx markuplint \"./__assets/**/*.{pug,html}\"",
|
|
@@ -45,40 +43,43 @@
|
|
|
45
43
|
"last 2 ios_saf version"
|
|
46
44
|
],
|
|
47
45
|
"devDependencies": {
|
|
48
|
-
"@burger-editor/local": "4.0.0-alpha.
|
|
49
|
-
"@d-zero/
|
|
50
|
-
"@d-zero/
|
|
51
|
-
"@d-zero/
|
|
52
|
-
"@d-zero/
|
|
53
|
-
"@d-zero/
|
|
54
|
-
"@d-zero/
|
|
55
|
-
"@d-zero/
|
|
56
|
-
"@d-zero/
|
|
57
|
-
"@d-zero/
|
|
58
|
-
"@d-zero/textlint-config": "5.0.0-alpha.73",
|
|
46
|
+
"@burger-editor/local": "4.0.0-alpha.42",
|
|
47
|
+
"@d-zero/cspell-config": "5.0.0-alpha.76",
|
|
48
|
+
"@d-zero/eslint-config": "5.0.0-alpha.76",
|
|
49
|
+
"@d-zero/lint-staged-config": "5.0.0-alpha.76",
|
|
50
|
+
"@d-zero/markuplint-config": "5.0.0-alpha.76",
|
|
51
|
+
"@d-zero/postcss-config": "5.0.0-beta.19",
|
|
52
|
+
"@d-zero/prettier-config": "5.0.0-alpha.76",
|
|
53
|
+
"@d-zero/pug-lint-config": "5.0.0-alpha.76",
|
|
54
|
+
"@d-zero/stylelint-config": "5.0.0-alpha.76",
|
|
55
|
+
"@d-zero/textlint-config": "5.0.0-alpha.76",
|
|
59
56
|
"@d-zero/tsconfig": "0.5.0",
|
|
57
|
+
"@kamado-io/page-compiler": "1.0.0-alpha.1",
|
|
58
|
+
"@kamado-io/pug-compiler": "1.0.0-alpha.1",
|
|
59
|
+
"@kamado-io/script-compiler": "1.0.0-alpha.1",
|
|
60
|
+
"@kamado-io/style-compiler": "1.0.0-alpha.1",
|
|
60
61
|
"@prettier/plugin-pug": "3.4.2",
|
|
61
|
-
"@types/node": "24.
|
|
62
|
+
"@types/node": "24.10.4",
|
|
62
63
|
"cross-env": "10.1.0",
|
|
63
64
|
"dotenv": "17.2.3",
|
|
64
65
|
"husky": "9.1.7",
|
|
65
|
-
"
|
|
66
|
+
"kamado": "1.0.0-alpha.1",
|
|
66
67
|
"npm-run-all2": "8.0.4",
|
|
67
68
|
"typescript": "5.9.3",
|
|
68
|
-
"vitest": "
|
|
69
|
+
"vitest": "4.0.16"
|
|
69
70
|
},
|
|
70
71
|
"dependencies": {
|
|
71
|
-
"@burger-editor/css": "4.0.0-alpha.
|
|
72
|
-
"@d-zero/custom-components": "5.0.0-beta.
|
|
72
|
+
"@burger-editor/css": "4.0.0-alpha.42",
|
|
73
|
+
"@d-zero/custom-components": "5.0.0-beta.19",
|
|
73
74
|
"dialog-toggle-events-polyfill": "1.1.4",
|
|
74
75
|
"invokers-polyfill": "0.5.7",
|
|
75
76
|
"kiso.css": "1.2.2",
|
|
76
77
|
"tslib": "2.8.1"
|
|
77
78
|
},
|
|
78
|
-
"packageManager": "yarn@4.
|
|
79
|
+
"packageManager": "yarn@4.12.0",
|
|
79
80
|
"volta": {
|
|
80
|
-
"node": "24.
|
|
81
|
-
"yarn": "4.
|
|
81
|
+
"node": "24.12.0",
|
|
82
|
+
"yarn": "4.12.0"
|
|
82
83
|
},
|
|
83
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "f5101ec7cc373c11a37f1648f9d53f8ed8886777"
|
|
84
85
|
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import path from 'node:path';
|
|
2
|
-
|
|
3
|
-
import { JSDOM } from 'jsdom';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
export default function () {
|
|
9
|
-
return (page, collections) => {
|
|
10
|
-
const breadcrumbs = collections.all
|
|
11
|
-
.filter((item) => isAncestor(page, item.filePathStem))
|
|
12
|
-
.map((item) => ({
|
|
13
|
-
title: getTitle(item),
|
|
14
|
-
href: item.page.url,
|
|
15
|
-
depth: item.page.url.split('/').filter(Boolean).length,
|
|
16
|
-
}))
|
|
17
|
-
.sort((a, b) => a.depth - b.depth);
|
|
18
|
-
return breadcrumbs;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @param page
|
|
25
|
-
* @param filePathStem
|
|
26
|
-
*/
|
|
27
|
-
function isAncestor(page, filePathStem) {
|
|
28
|
-
const dirname = path.dirname(filePathStem);
|
|
29
|
-
const name = path.basename(filePathStem);
|
|
30
|
-
const included = page.filePathStem.startsWith(dirname);
|
|
31
|
-
const isIndex = name === 'index';
|
|
32
|
-
const isSelf = page.filePathStem === filePathStem;
|
|
33
|
-
return (included && isIndex) || isSelf;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
const titleCache = new Map();
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @param item
|
|
41
|
-
*/
|
|
42
|
-
function getTitle(item) {
|
|
43
|
-
const filePathStem = item.filePathStem;
|
|
44
|
-
if (titleCache.has(filePathStem)) {
|
|
45
|
-
return titleCache.get(filePathStem);
|
|
46
|
-
}
|
|
47
|
-
const title =
|
|
48
|
-
item.data.title?.trim() ||
|
|
49
|
-
getTitleFromDOM(getContent(item)) ||
|
|
50
|
-
item.page.fileSlug?.trim();
|
|
51
|
-
titleCache.set(filePathStem, title);
|
|
52
|
-
return title;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @param item
|
|
58
|
-
*/
|
|
59
|
-
function getTitleFromDOM(item) {
|
|
60
|
-
const content = getContent(item);
|
|
61
|
-
const dom = new JSDOM(content);
|
|
62
|
-
const title = dom.window.document.title.trim();
|
|
63
|
-
return title;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @param item
|
|
69
|
-
*/
|
|
70
|
-
function getContent(item) {
|
|
71
|
-
try {
|
|
72
|
-
// UsingCircularTemplateContentReferenceError may potentially occur
|
|
73
|
-
return item.templateContent;
|
|
74
|
-
} catch {
|
|
75
|
-
return null;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import breadcrumbs from './breadcrumbs.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
export default async function () {
|
|
7
|
-
return (page, collections, pkg, separator = ' | ') => {
|
|
8
|
-
const breadcrumbLinkList = breadcrumbs()(page, collections);
|
|
9
|
-
const titleList = breadcrumbLinkList
|
|
10
|
-
.filter((item) => item.href !== '/')
|
|
11
|
-
.toReversed()
|
|
12
|
-
.map((item) => item.title);
|
|
13
|
-
titleList.push(pkg.production?.siteName || '__サイト名__');
|
|
14
|
-
return titleList.join(separator);
|
|
15
|
-
};
|
|
16
|
-
}
|
package/eleventy.config.mjs
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import path from 'node:path';
|
|
2
|
-
|
|
3
|
-
import eleventy from '@d-zero/builder/11ty';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
* @param eleventyConfig
|
|
8
|
-
*/
|
|
9
|
-
export default function (eleventyConfig) {
|
|
10
|
-
return eleventy(eleventyConfig, {
|
|
11
|
-
/**
|
|
12
|
-
* Alias for the path to the directory containing the components.
|
|
13
|
-
*/
|
|
14
|
-
alias: {
|
|
15
|
-
'@': path.resolve(import.meta.dirname, '__assets', '_libs'),
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* The directory where the source files are located.
|
|
20
|
-
*/
|
|
21
|
-
// outDir: 'htdocs',
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Prettier options.
|
|
25
|
-
*
|
|
26
|
-
* If `true`, use the prettier config in the project root.
|
|
27
|
-
*
|
|
28
|
-
* If `false`, disable prettier.
|
|
29
|
-
*
|
|
30
|
-
* If `object`, use the options. Merge with the prettier config in the project root.
|
|
31
|
-
* @see https://prettier.io/docs/en/options
|
|
32
|
-
*/
|
|
33
|
-
prettier: true,
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Minifier options.
|
|
37
|
-
* @see https://github.com/terser/html-minifier-terser?tab=readme-ov-file#options-quick-reference
|
|
38
|
-
*/
|
|
39
|
-
// minifier: { minifyJS: false },
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Line break.
|
|
43
|
-
*/
|
|
44
|
-
// lineBreak: '\r\n',
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Character encoding.
|
|
48
|
-
*/
|
|
49
|
-
// charset: 'shift_jis',
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Convert character entities
|
|
53
|
-
*/
|
|
54
|
-
// characterEntities: true
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Path format
|
|
58
|
-
*/
|
|
59
|
-
// pathFormat: 'directory',
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Automatically decode the content on the dev server.
|
|
63
|
-
*/
|
|
64
|
-
// autoDecode: true,
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Server Side Include options on the dev server.
|
|
68
|
-
*/
|
|
69
|
-
// ssi: { '**/*': { encoding: 'shift_jis' } },
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Parser options.
|
|
73
|
-
*/
|
|
74
|
-
// parserOptions: {
|
|
75
|
-
// /**
|
|
76
|
-
// * Pug parser options.
|
|
77
|
-
// * @see https://pugjs.org/api/reference.html
|
|
78
|
-
// */
|
|
79
|
-
// pugOptions: { pretty: false },
|
|
80
|
-
// },
|
|
81
|
-
});
|
|
82
|
-
}
|