@d-zero/scaffold 5.0.0-alpha.10

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.
Files changed (80) hide show
  1. package/.editorconfig +18 -0
  2. package/.eslintrc.cjs +4 -0
  3. package/.gitignore +25 -0
  4. package/.markuplintrc +3 -0
  5. package/.postcssrc.js +5 -0
  6. package/.prettierignore +1 -0
  7. package/.prettierrc.mjs +5 -0
  8. package/.pug-lintrc +3 -0
  9. package/.stylelintrc +3 -0
  10. package/.textlintrc.js +3 -0
  11. package/.vscode/extensions.json +11 -0
  12. package/.vscode/settings.json +42 -0
  13. package/CHANGELOG.md +56 -0
  14. package/README.md +13 -0
  15. package/__assets/_libs/.markuplintrc +19 -0
  16. package/__assets/_libs/component/_c-card-list.scss +7 -0
  17. package/__assets/_libs/component/_c-card.pug +23 -0
  18. package/__assets/_libs/component/_c-card.scss +106 -0
  19. package/__assets/_libs/component/_c-content-index.scss +8 -0
  20. package/__assets/_libs/component/_c-content-main.scss +270 -0
  21. package/__assets/_libs/component/_c-footer.pug +8 -0
  22. package/__assets/_libs/component/_c-footer.scss +43 -0
  23. package/__assets/_libs/component/_c-header.pug +20 -0
  24. package/__assets/_libs/component/_c-header.scss +96 -0
  25. package/__assets/_libs/component/_c-media-list.scss +7 -0
  26. package/__assets/_libs/component/_c-media.pug +23 -0
  27. package/__assets/_libs/component/_c-media.scss +115 -0
  28. package/__assets/_libs/component/_c-nav-breadcrumb.pug +42 -0
  29. package/__assets/_libs/component/_c-nav-breadcrumb.scss +47 -0
  30. package/__assets/_libs/component/_c-nav-global.pug +9 -0
  31. package/__assets/_libs/component/_c-nav-global.scss +117 -0
  32. package/__assets/_libs/component/_c-nav-sitemap.pug +115 -0
  33. package/__assets/_libs/component/_c-nav-sitemap.scss +140 -0
  34. package/__assets/_libs/component/_c-page-home.scss +45 -0
  35. package/__assets/_libs/component/_c-page-sub.scss +65 -0
  36. package/__assets/_libs/component/_c-pagination.pug +14 -0
  37. package/__assets/_libs/component/_c-pagination.scss +100 -0
  38. package/__assets/_libs/component/_c-title-page.pug +2 -0
  39. package/__assets/_libs/component/_c-title-page.scss +11 -0
  40. package/__assets/_libs/data/.markuplintrc +3 -0
  41. package/__assets/_libs/data/blocks-burger.html +4161 -0
  42. package/__assets/_libs/data/blocks.cjs +6 -0
  43. package/__assets/_libs/data/blocks.html +101 -0
  44. package/__assets/_libs/data/data.yml +27 -0
  45. package/__assets/_libs/img/bg-arrow.svg +1 -0
  46. package/__assets/_libs/img/bg-repeat-01.gif +0 -0
  47. package/__assets/_libs/mixin/meta.pug +21 -0
  48. package/__assets/_libs/script/index.ts +3 -0
  49. package/__assets/_libs/style/base/_root.scss +30 -0
  50. package/__assets/_libs/style/general/_all.scss +11 -0
  51. package/__assets/_libs/style/general/_body.scss +10 -0
  52. package/__assets/_libs/style/general/_button.scss +5 -0
  53. package/__assets/_libs/style/general/_img.scss +6 -0
  54. package/__assets/_libs/style/theme/_color.scss +4 -0
  55. package/__assets/_libs/style/theme/_dimension.scss +53 -0
  56. package/__assets/_libs/style/theme/_font.scss +2 -0
  57. package/__assets/_libs/style/theme/_index.scss +3 -0
  58. package/__assets/htdocs/.eslintrc +10 -0
  59. package/__assets/htdocs/@static/empty +0 -0
  60. package/__assets/htdocs/@static/img/empty +0 -0
  61. package/__assets/htdocs/__tmpl/.markuplintrc +19 -0
  62. package/__assets/htdocs/__tmpl/000_home.pug +20 -0
  63. package/__assets/htdocs/__tmpl/100_sub.pug +23 -0
  64. package/__assets/htdocs/__tmpl/200_blog_index.pug +40 -0
  65. package/__assets/htdocs/__tmpl/210_blog_index.pug +40 -0
  66. package/__assets/htdocs/__tmpl/300_form_input.pug +569 -0
  67. package/__assets/htdocs/__tmpl/301_form_confirm.pug +211 -0
  68. package/__assets/htdocs/__tmpl/302_form_complete.pug +27 -0
  69. package/__assets/htdocs/__tmpl/index.pug +69 -0
  70. package/__assets/htdocs/css/style.scss +32 -0
  71. package/__assets/htdocs/index.pug +9 -0
  72. package/__assets/htdocs/js/script.ts +3 -0
  73. package/__assets/htdocs/sub-folder.test/css/style.scss +7 -0
  74. package/__assets/htdocs/sub-folder.test/index.pug +8 -0
  75. package/__assets/htdocs/sub-folder.test/js/script.js +9 -0
  76. package/cspell.json +4 -0
  77. package/eleventy.config.cjs +25 -0
  78. package/lint-staged.config.mjs +3 -0
  79. package/package.json +55 -0
  80. package/tsconfig.json +11 -0
@@ -0,0 +1,6 @@
1
+ const fs = require('node:fs');
2
+ const path = require('node:path');
3
+
4
+ module.exports = fs.readFileSync(path.resolve(__dirname, './blocks.html'), {
5
+ encoding: 'utf8',
6
+ });
@@ -0,0 +1,101 @@
1
+ <h3>中見出し(テキストブロック内)</h3>
2
+
3
+ <h4>小見出し(Lv.4)</h4>
4
+ <h5>小見出し(Lv.5)</h5>
5
+ <h6>小見出し(Lv.6)</h6>
6
+
7
+ <ul>
8
+ <li>リスト</li>
9
+ <li>リスト</li>
10
+ <li>
11
+ リスト
12
+ <ul>
13
+ <li>リスト Lv.2</li>
14
+ <li>
15
+ リスト Lv.2
16
+ <ul>
17
+ <li>リスト Lv.3</li>
18
+ <li>リスト Lv.3</li>
19
+ </ul>
20
+ </li>
21
+ </ul>
22
+ </li>
23
+ </ul>
24
+
25
+ <ol>
26
+ <li>番号順リスト</li>
27
+ <li>番号順リスト</li>
28
+ <li>番号順リスト</li>
29
+ <li>番号順リスト</li>
30
+ <li>
31
+ 番号順リスト
32
+ <ol>
33
+ <li>番号順リスト Lv.2</li>
34
+ <li>番号順リスト Lv.2</li>
35
+ <li>番号順リスト Lv.2</li>
36
+ <li>番号順リスト Lv.2</li>
37
+ </ol>
38
+ </li>
39
+ </ol>
40
+
41
+ <blockquote>
42
+ <p>ブロック引用</p>
43
+
44
+ <p>blockquote</p>
45
+ </blockquote>
46
+
47
+ <p>
48
+ 通常テキスト<strong>太字テキスト</strong><u>下線</u><s>取り消し線</s
49
+ ><sub>下付き文字</sub><sup>上付き文字</sup
50
+ ><a href="./">リンクテキスト</a>通常テキスト<strong>太字テキスト</strong><u>下線</u
51
+ ><s>取り消し線</s><sub>下付き文字</sub><sup>上付き文字</sup
52
+ ><a href="./">リンクテキスト</a>通常テキスト<strong>太字テキスト</strong><u>下線</u
53
+ ><s>取り消し線</s><sub>下付き文字</sub><sup>上付き文字</sup
54
+ ><a href="./">リンクテキスト</a>通常テキスト<strong>太字テキスト</strong><u>下線</u
55
+ ><s>取り消し線</s><sub>下付き文字</sub><sup>上付き文字</sup
56
+ ><a href="./">リンクテキスト</a>通常テキスト<strong>太字テキスト</strong><u>下線</u
57
+ ><s>取り消し線</s><sub>下付き文字</sub><sup>上付き文字</sup
58
+ ><a href="./">リンクテキスト</a>通常テキスト<strong>太字テキスト</strong><u>下線</u
59
+ ><s>取り消し線</s><sub>下付き文字</sub><sup>上付き文字</sup
60
+ ><a href="./">リンクテキスト</a>通常テキスト<strong>太字テキスト</strong><u>下線</u
61
+ ><s>取り消し線</s><sub>下付き文字</sub><sup>上付き文字</sup
62
+ ><a href="./">リンクテキスト</a>通常テキスト<strong>太字テキスト</strong><u>下線</u
63
+ ><s>取り消し線</s><sub>下付き文字</sub><sup>上付き文字</sup
64
+ ><a href="./">リンクテキスト</a>通常テキスト<strong>太字テキスト</strong><u>下線</u
65
+ ><s>取り消し線</s><sub>下付き文字</sub><sup>上付き文字</sup
66
+ ><a href="./">リンクテキスト</a>通常テキスト<strong>太字テキスト</strong><u>下線</u
67
+ ><s>取り消し線</s><sub>下付き文字</sub><sup>上付き文字</sup
68
+ ><a href="./">リンクテキスト</a>通常テキスト<strong>太字テキスト</strong><u>下線</u
69
+ ><s>取り消し線</s><sub>下付き文字</sub><sup>上付き文字</sup
70
+ ><a href="./">リンクテキスト</a>通常テキスト<strong>太字テキスト</strong><u>下線</u
71
+ ><s>取り消し線</s><sub>下付き文字</sub><sup>上付き文字</sup
72
+ ><a href="./">リンクテキスト</a>通常テキスト<strong>太字テキスト</strong><u>下線</u
73
+ ><s>取り消し線</s><sub>下付き文字</sub><sup>上付き文字</sup
74
+ ><a href="./">リンクテキスト</a>通常テキスト<strong>太字テキスト</strong><u>下線</u
75
+ ><s>取り消し線</s><sub>下付き文字</sub><sup>上付き文字</sup
76
+ ><a href="./">リンクテキスト</a>
77
+ </p>
78
+
79
+ <table>
80
+ <caption>
81
+ 表のキャプション
82
+ </caption>
83
+ <tbody>
84
+ <tr>
85
+ <th>表の見出し</th>
86
+ <th>表の見出し</th>
87
+ </tr>
88
+ <tr>
89
+ <td>表のセル</td>
90
+ <td>表のセル</td>
91
+ </tr>
92
+ <tr>
93
+ <td>表のセル</td>
94
+ <td>表のセル</td>
95
+ </tr>
96
+ <tr>
97
+ <td>表のセル</td>
98
+ <td>表のセル</td>
99
+ </tr>
100
+ </tbody>
101
+ </table>
@@ -0,0 +1,27 @@
1
+ articles:
2
+ - title: リンゴ
3
+ # spell-checker:disable-next-line
4
+ desc: リンゴ(林檎、学名:Malus pumila)は、バラ科リンゴ属の落葉高木樹。またはその果実のこと。植物学上はセイヨウリンゴと呼ぶ。春、白または薄紅の花が咲く。
5
+ time: 2019-01-01
6
+ url: https://ja.wikipedia.org/wiki/%E3%83%AA%E3%83%B3%E3%82%B4
7
+ img: //upload.wikimedia.org/wikipedia/commons/thumb/1/15/Red_Apple.jpg/250px-Red_Apple.jpg
8
+ cat:
9
+ - id: fruit
10
+ name: 果物
11
+ tag:
12
+ - 甘い
13
+ - 赤
14
+ - title: みかん
15
+ # spell-checker:disable-next-line
16
+ desc: ウンシュウミカン(温州蜜柑、学名:Citrus unshiu)は、ミカン科の常緑低木またはその果実のこと。様々な栽培品種があり、食用として利用される。
17
+ time: 2019-02-01
18
+ url: https://ja.wikipedia.org/wiki/%E3%82%A6%E3%83%B3%E3%82%B7%E3%83%A5%E3%82%A6%E3%83%9F%E3%82%AB%E3%83%B3
19
+ # spell-checker:disable-next-line
20
+ img: //upload.wikimedia.org/wikipedia/commons/thumb/3/31/Citrus_unshiu_20101127_c.jpg/250px-Citrus_unshiu_20101127_c.jpg
21
+ cat:
22
+ - id: fruit
23
+ name: 果物
24
+ tag:
25
+ - 甘い
26
+ - 酸っぱい
27
+ - オレンジ
@@ -0,0 +1 @@
1
+ <svg viewBox='0 0 140 140' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><g><path d='m121.3,34.6c-1.6-1.6-4.2-1.6-5.8,0l-51,51.1-51.1-51.1c-1.6-1.6-4.2-1.6-5.8,0-1.6,1.6-1.6,4.2 0,5.8l53.9,53.9c0.8,0.8 1.8,1.2 2.9,1.2 1,0 2.1-0.4 2.9-1.2l53.9-53.9c1.7-1.6 1.7-4.2 0.1-5.8z'/></g></svg>
@@ -0,0 +1,21 @@
1
+ mixin meta(title)
2
+ meta(charset="UTF-8")
3
+ meta(name="viewport" content="width=device-width")
4
+ title= title
5
+ meta(name="format-detection" content="telephone=no")
6
+ meta(name="description" content="__ディスクリプション__")
7
+ meta(property="og:type" content="website")
8
+ meta(property="og:title" content="__サイトタイトル__")
9
+ meta(property="og:site_name" content="__サイトタイトル__")
10
+ meta(property="og:description" content="__ディスクリプション__")
11
+ meta(property="og:url" content="__SNSからリンクさせるURL__")
12
+ meta(property="og:image" content="__OGP用画像__")
13
+ meta(name="twitter:card" content="summary_large_image")
14
+ meta(name="twitter:url" content="__SNSからリンクさせるURL__")
15
+ meta(name="twitter:title" content="__サイトタイトル__")
16
+ meta(name="twitter:description" content="__ディスクリプション__")
17
+ meta(name="twitter:image" content="__OGP用画像__")
18
+ link(rel="shortcut icon" href="/favicon.png")
19
+ link(rel="apple-touch-icon" href="/img/apple-touch-icon.png")
20
+ link(href="/css/style.scss" rel="stylesheet")
21
+ script(src="/js/script.ts" type="module")
@@ -0,0 +1,3 @@
1
+ export function helloWorld() {
2
+ console.log('Hello, world!'); // eslint-disable-line no-console
3
+ }
@@ -0,0 +1,30 @@
1
+ @use 'sass:math';
2
+ @use '../theme' as *;
3
+
4
+ :root {
5
+ // 配色
6
+ --base-font-color: #{$darkest-color};
7
+ --base-font-size: #{$base-font-size * 1px};
8
+ --base-line-height: #{$base-line-height};
9
+ --border-color: #{$darkest-color};
10
+
11
+ // コンテンツ幅
12
+ --content-width: #{math.div($breakpoint-sm, $base-font-size) * 1rem};
13
+ --wide-layout-width: #{math.div($breakpoint-md, $base-font-size) * 1rem};
14
+
15
+ // フォントファミリー
16
+ --font-family-body: #{$font-family-body};
17
+ --font-family-heading: #{$font-family-heading};
18
+
19
+ // 見出し調和数列スケーリング
20
+ // @see https://standard.shiftbrain.com/blog/music-math-typography
21
+ --font-size-h1: calc(1em * 8 / 2);
22
+ --font-size-h2: calc(1em * 8 / 3);
23
+ --font-size-h3: calc(1em * 8 / 4);
24
+ --font-size-h4: calc(1em * 8 / 5);
25
+ --font-size-h5: calc(1em * 8 / 6);
26
+ --font-size-h6: calc(1em * 8 / 7);
27
+
28
+ // 定義
29
+ font-size: var(--base-font-size);
30
+ }
@@ -0,0 +1,11 @@
1
+ @use '../theme' as *;
2
+
3
+ /* stylelint-disable selector-max-universal -- this is universal selector rules */
4
+ * {
5
+ &,
6
+ &::before,
7
+ &::after {
8
+ box-sizing: border-box;
9
+ }
10
+ }
11
+ /* stylelint-enable selector-max-universal */
@@ -0,0 +1,10 @@
1
+ @use '../theme' as *;
2
+
3
+ body {
4
+ padding: 0;
5
+ margin: 0;
6
+ font-family: var(--font-family-body);
7
+ font-size: 1rem;
8
+ line-height: var(--base-line-height);
9
+ color: var(--base-font-color);
10
+ }
@@ -0,0 +1,5 @@
1
+ @use '../theme' as *;
2
+
3
+ button {
4
+ border-radius: 0;
5
+ }
@@ -0,0 +1,6 @@
1
+ @use '../theme' as *;
2
+
3
+ img {
4
+ min-inline-size: 0;
5
+ min-block-size: 0;
6
+ }
@@ -0,0 +1,4 @@
1
+ // サイトで最も明るい色
2
+ $lightest-color: #fff;
3
+ // サイトで最も暗い色
4
+ $darkest-color: #333;
@@ -0,0 +1,53 @@
1
+ // # タイポグラフィ
2
+ // @see https://techblog.yahoo.co.jp/entry/2023052430423559/
3
+ $base-font-size: 17;
4
+ $base-line-height: 1.8;
5
+
6
+ // # 寸法
7
+ //
8
+ $breakpoint-xs: 576;
9
+ $breakpoint-sm: 768;
10
+ $breakpoint-md: 992;
11
+ $breakpoint-lg: 1200;
12
+
13
+ // xsのみ
14
+ @custom-media --xs (max-width: #{$breakpoint-xs * 1px});
15
+
16
+ // smのみ
17
+ @custom-media --sm (min-width: #{$breakpoint-xs * 1px}) and (max-width: #{$breakpoint-sm * 1px - 1px});
18
+
19
+ // mdのみ
20
+ @custom-media --md (min-width: #{$breakpoint-sm * 1px}) and (max-width: #{$breakpoint-md * 1px - 1px});
21
+
22
+ // lgのみ
23
+ @custom-media --lg (min-width: #{$breakpoint-md * 1px}) and (max-width: #{$breakpoint-lg * 1px - 1px});
24
+
25
+ // xlのみ
26
+ @custom-media --xl (min-width: #{$breakpoint-lg * 1px});
27
+
28
+ // xs以下 = xsのみ
29
+ @custom-media --xs-lte (max-width: #{$breakpoint-xs * 1px - 1px});
30
+
31
+ // sm以下
32
+ @custom-media --sm-lte (max-width: #{$breakpoint-sm * 1px - 1px});
33
+
34
+ // md以下
35
+ @custom-media --md-lte (max-width: #{$breakpoint-md * 1px - 1px});
36
+
37
+ // lg以下
38
+ @custom-media --lg-lte (max-width: #{$breakpoint-lg * 1px - 1px});
39
+
40
+ // xs超え
41
+ @custom-media --xs-gt (min-width: #{$breakpoint-xs * 1px});
42
+
43
+ // sm超え
44
+ @custom-media --sm-gt (min-width: #{$breakpoint-sm * 1px});
45
+
46
+ // md超え
47
+ @custom-media --md-gt (min-width: #{$breakpoint-md * 1px});
48
+
49
+ // lg超え
50
+ @custom-media --lg-gt (min-width: #{$breakpoint-lg * 1px});
51
+
52
+ // high resolution
53
+ @custom-media --hr (min-resolution: 2dppx);
@@ -0,0 +1,2 @@
1
+ $font-family-body: sans-serif;
2
+ $font-family-heading: Helvetica, $font-family-body;
@@ -0,0 +1,3 @@
1
+ @forward 'color';
2
+ @forward 'dimension';
3
+ @forward 'font';
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": ["../../.eslintrc.cjs"],
3
+ "env": {
4
+ "node": false,
5
+ "browser": true,
6
+ "jquery": true,
7
+ "es6": true,
8
+ "commonjs": true
9
+ }
10
+ }
File without changes
File without changes
@@ -0,0 +1,19 @@
1
+ {
2
+ "extends": ["../../../.markuplintrc"],
3
+ "nodeRules": [
4
+ {
5
+ "selector": "link, script",
6
+ "rules": {
7
+ "invalid-attr": {
8
+ "options": {
9
+ "allowAttrs": {
10
+ "⚠️": {
11
+ "type": "Any"
12
+ }
13
+ }
14
+ }
15
+ }
16
+ }
17
+ }
18
+ ]
19
+ }
@@ -0,0 +1,20 @@
1
+ html(lang="ja")
2
+ head
3
+ include /mixin/meta.pug
4
+ +meta('__サイトタイトル__')
5
+ body.c-page-home
6
+ .c-page-home__base
7
+ .c-page-home__header
8
+ - const isHome = true;
9
+ include /component/_c-header.pug
10
+ .c-page-home__nav-global
11
+ include /component/_c-nav-global.pug
12
+
13
+ .c-page-home__main
14
+ main
15
+ h2 メイン
16
+
17
+ .c-page-home__nav-sitemap
18
+ include /component/_c-nav-sitemap.pug
19
+ .c-page-home__footer
20
+ include /component/_c-footer.pug
@@ -0,0 +1,23 @@
1
+ html(lang="ja")
2
+ head
3
+ include /mixin/meta.pug
4
+ +meta('__ページタイトル__ | __サイトタイトル__')
5
+ body.c-page-sub
6
+ .c-page-sub__base
7
+ .c-page-sub__header
8
+ include /component/_c-header.pug
9
+ .c-page-sub__nav-global
10
+ include /component/_c-nav-global.pug
11
+ .c-page-sub__main
12
+ main
13
+ article.c-page-sub__content
14
+ .c-page-sub__title-page
15
+ include /component/_c-title-page.pug
16
+ .c-page-sub__nav-breadcrumb
17
+ include /component/_c-nav-breadcrumb.pug
18
+ .c-page-sub__content-main
19
+ .c-content-main !{ blocks }
20
+ .c-page-sub__nav-sitemap
21
+ include /component/_c-nav-sitemap.pug
22
+ .c-page-sub__footer
23
+ include /component/_c-footer.pug
@@ -0,0 +1,40 @@
1
+ html(lang="ja")
2
+ head
3
+ include /mixin/meta.pug
4
+ +meta('__ページタイトル__ | __サイトタイトル__')
5
+ body.c-page-sub
6
+ .c-page-sub__base
7
+ .c-page-sub__header
8
+ include /component/_c-header.pug
9
+ .c-page-sub__nav-global
10
+ include /component/_c-nav-global.pug
11
+
12
+ .c-page-sub__main
13
+ main
14
+ article.c-page-sub__content
15
+ .c-page-sub__title-page
16
+ include /component/_c-title-page.pug
17
+ .c-page-sub__nav-breadcrumb
18
+ include /component/_c-nav-breadcrumb.pug
19
+ .c-page-sub__content-index
20
+ .c-content-index
21
+ .c-content-index__categories
22
+ // ⚠️ CMS要件:
23
+ // - ページがカテゴリーインデックスの場合は aria-current="page" を付加する
24
+ // - カテゴリーインデックスではなく、カテゴリーに属するページでは aria-current="page" は付加しない
25
+ ul
26
+ li: a(href="__PATH_TO__"): span ALL
27
+ li: a(href="__PATH_TO__" aria-current="page"): span カテゴリー1
28
+ li: a(href="__PATH_TO__"): span カテゴリー2
29
+ li: a(href="__PATH_TO__"): span カテゴリー3
30
+ .c-content-index__body
31
+ .c-media-list
32
+ each article in data.articles
33
+ include /component/_c-media.pug
34
+ .c-page-sub__pagination
35
+ include /component/_c-pagination.pug
36
+
37
+ .c-page-sub__nav-sitemap
38
+ include /component/_c-nav-sitemap.pug
39
+ .c-page-sub__footer
40
+ include /component/_c-footer.pug
@@ -0,0 +1,40 @@
1
+ html(lang="ja")
2
+ head
3
+ include /mixin/meta.pug
4
+ +meta('__ページタイトル__ | __サイトタイトル__')
5
+ body.c-page-sub
6
+ .c-page-sub__base
7
+ .c-page-sub__header
8
+ include /component/_c-header.pug
9
+ .c-page-sub__nav-global
10
+ include /component/_c-nav-global.pug
11
+
12
+ .c-page-sub__main
13
+ main
14
+ article.c-page-sub__content
15
+ .c-page-sub__title-page
16
+ include /component/_c-title-page.pug
17
+ .c-page-sub__nav-breadcrumb
18
+ include /component/_c-nav-breadcrumb.pug
19
+ .c-page-sub__content-index
20
+ .c-content-index
21
+ .c-content-index__categories
22
+ // ⚠️ CMS要件:
23
+ // - ページがカテゴリーインデックスの場合は aria-current="page" を付加する
24
+ // - カテゴリーインデックスではなく、カテゴリーに属するページでは aria-current="page" は付加しない
25
+ ul
26
+ li: a(href="__PATH_TO__"): span ALL
27
+ li: a(href="__PATH_TO__" aria-current="page"): span カテゴリー1
28
+ li: a(href="__PATH_TO__"): span カテゴリー2
29
+ li: a(href="__PATH_TO__"): span カテゴリー3
30
+ .c-content-index__body
31
+ .c-card-list
32
+ each article in data.articles
33
+ include /component/_c-card.pug
34
+ .c-page-sub__pagination
35
+ include /component/_c-pagination.pug
36
+
37
+ .c-page-sub__nav-sitemap
38
+ include /component/_c-nav-sitemap.pug
39
+ .c-page-sub__footer
40
+ include /component/_c-footer.pug