astro-accelerator 7.0.10 → 7.1.12

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.
@@ -0,0 +1,118 @@
1
+ :root,
2
+ body.mode-light {
3
+ --fore: #233;
4
+ --aft: #DFF;
5
+ --aft-image: #DFF;
6
+
7
+ --fore-link: #355;
8
+ --fore-link-alt: #699;
9
+ --aft-link-alt: #e6e6eC;
10
+
11
+ --fore-input: var(--fore);
12
+ --aft-input: var(--aft);
13
+
14
+ --fore-block: #333;
15
+ --aft-block: #BEE;
16
+ --icon-block: #FF0;
17
+ --icon-block-alpha: rgba(from var(--icon-block) r g b / 0.4);
18
+
19
+ --fore-table-head: #DFF;
20
+ --aft-table-head: #233;
21
+ --fore-table-row-odd: #333;
22
+ --aft-table-row-odd: #DFF;
23
+ --fore-table-row-even: #333;
24
+ --aft-table-row-even: #CFF;
25
+ }
26
+
27
+ body.mode-dark {
28
+ --fore: #DFF;
29
+ --aft: #233;
30
+ --aft-image: #DDD;
31
+
32
+ --fore-link: #AFF;
33
+ --fore-link-alt: #FF0;
34
+ --aft-link-alt: #232323;
35
+
36
+ --fore-input: var(--fore);
37
+ --aft-input: var(--aft);
38
+
39
+ --fore-block: #DFF;
40
+ --aft-block: #011;
41
+ --icon-block: #FF0;
42
+ --icon-block-alpha: rgba(from var(--icon-block) r g b / 0.4);
43
+
44
+ --fore-table-head: #DFF;
45
+ --aft-table-head: #244;
46
+ --fore-table-row-odd: #DFF;
47
+ --aft-table-row-odd: #355;
48
+ --fore-table-row-even: #DFF;
49
+ --aft-table-row-even: #466;
50
+ }
51
+
52
+
53
+ @font-face {
54
+ font-family: "hyper-reg";
55
+ font-weight: normal;
56
+ font-style: normal;
57
+ src: url("AtkinsonHyperlegibleNext-Regular.otf");
58
+ font-display: block;
59
+ }
60
+
61
+ @font-face {
62
+ font-family: "hyper-bold";
63
+ font-weight: bold;
64
+ font-style: normal;
65
+ src: url("AtkinsonHyperlegibleNext-Bold.otf");
66
+ font-display: block;
67
+ }
68
+
69
+ @font-face {
70
+ font-family: "hyper-mono";
71
+ font-weight: bold;
72
+ font-style: normal;
73
+ src: url("AtkinsonHyperlegibleMono-Regular.otf");
74
+ font-display: block;
75
+ }
76
+
77
+ :root {
78
+ --heading-font: 'hyper-bold', sans-serif;
79
+ --content-font: 'hyper-reg', Verdana, Geneva, sans-serif;
80
+ --code-font: 'hyper-mono', Consolas, 'Courier New', Courier, monospace;
81
+ --unicode-font: font-family: "Segoe UI Symbol", "Arial Unicode MS", "DejaVu Sans", "Meiryo UI", "MS UI Gothic", "Everson Mono Unicode", Meiryo, "MS Gothic", "MS Mincho", "MS PGothic", "MS PMincho", "Meslo LG L", "Meslo LG L DZ", "Meslo M L", "Meslo M L DZ", "Meslo S L", "Meslo S L DZ", "Symbola", "DejaVu Sans Condensed", "DejaVu Sans Mono", Code2000, "Everson Mono", Quivira, sans-serif;
82
+
83
+ --font-size-meta: 0.9rem;
84
+ --font-size-h1: 3rem;
85
+ --font-size-h2: 2.3rem;
86
+ --font-size-h3: 2rem;
87
+ --font-size-h4: 1.7rem;
88
+ --font-size-h5: 1.7rem;
89
+ --font-size-h6: 1.7rem;
90
+
91
+ --paragraph-margin: 1.2rem;
92
+ --block-gap: 2rem;
93
+ --block-gap-l: 3rem;
94
+ --block-radius: 0.3rem;
95
+ --block-radius-round: 20px;
96
+
97
+ --marker-size: 1.2rem;
98
+
99
+ --box-shadow: 0 12px 24px -12px rgb(0 0 0 / 50%);
100
+ --box-shadow-slight: 0 6px 12px -6px rgb(0 0 0 / 40%);
101
+ --box-glow: 0 0 12px 0 var(--icon-block-alpha);
102
+
103
+ --box-shadow-unselected: rgb(0 0 0 / 6%) 0px 2px 4px, rgb(0 0 0 / 5%) 0px 0.5px 1px;
104
+ --transform-selected: translate3d(0px, -1px, 0px);
105
+
106
+ --content-width: 50rem;
107
+ --navigation-width: 300px;
108
+ --grid-gap: 1rem;
109
+ --grid-gap-s: 0.4rem;
110
+
111
+ /* Calculate the mobile width by removing l/r columns */
112
+ --content-width-mobile: calc(100vw - 1rem);
113
+
114
+ /* Search variables */
115
+ --search-height: 2rem;
116
+ --search-dropdown-height: 65vh;
117
+ --search-dropdown-duration: 0.2s;
118
+ }
@@ -0,0 +1,118 @@
1
+ :root,
2
+ body.mode-light {
3
+ --fore: #233;
4
+ --aft: #DFF;
5
+ --aft-image: #DFF;
6
+
7
+ --fore-link: #355;
8
+ --fore-link-alt: #699;
9
+ --aft-link-alt: #e6e6eC;
10
+
11
+ --fore-input: var(--fore);
12
+ --aft-input: var(--aft);
13
+
14
+ --fore-block: #333;
15
+ --aft-block: #BEE;
16
+ --icon-block: #FF0;
17
+ --icon-block-alpha: rgba(from var(--icon-block) r g b / 0.4);
18
+
19
+ --fore-table-head: #DFF;
20
+ --aft-table-head: #233;
21
+ --fore-table-row-odd: #333;
22
+ --aft-table-row-odd: #DFF;
23
+ --fore-table-row-even: #333;
24
+ --aft-table-row-even: #CFF;
25
+ }
26
+
27
+ body.mode-dark {
28
+ --fore: #DFF;
29
+ --aft: #233;
30
+ --aft-image: #DDD;
31
+
32
+ --fore-link: #AFF;
33
+ --fore-link-alt: #FF0;
34
+ --aft-link-alt: #232323;
35
+
36
+ --fore-input: var(--fore);
37
+ --aft-input: var(--aft);
38
+
39
+ --fore-block: #DFF;
40
+ --aft-block: #011;
41
+ --icon-block: #FF0;
42
+ --icon-block-alpha: rgba(from var(--icon-block) r g b / 0.4);
43
+
44
+ --fore-table-head: #DFF;
45
+ --aft-table-head: #244;
46
+ --fore-table-row-odd: #DFF;
47
+ --aft-table-row-odd: #355;
48
+ --fore-table-row-even: #DFF;
49
+ --aft-table-row-even: #466;
50
+ }
51
+
52
+
53
+ @font-face {
54
+ font-family: "hyper-reg";
55
+ font-weight: normal;
56
+ font-style: normal;
57
+ src: url("AtkinsonHyperlegibleNext-Regular.otf");
58
+ font-display: block;
59
+ }
60
+
61
+ @font-face {
62
+ font-family: "hyper-bold";
63
+ font-weight: bold;
64
+ font-style: normal;
65
+ src: url("AtkinsonHyperlegibleNext-Bold.otf");
66
+ font-display: block;
67
+ }
68
+
69
+ @font-face {
70
+ font-family: "hyper-mono";
71
+ font-weight: bold;
72
+ font-style: normal;
73
+ src: url("AtkinsonHyperlegibleMono-Regular.otf");
74
+ font-display: block;
75
+ }
76
+
77
+ :root {
78
+ --heading-font: 'hyper-bold', sans-serif;
79
+ --content-font: 'hyper-reg', Verdana, Geneva, sans-serif;
80
+ --code-font: 'hyper-mono', Consolas, 'Courier New', Courier, monospace;
81
+ --unicode-font: font-family: "Segoe UI Symbol", "Arial Unicode MS", "DejaVu Sans", "Meiryo UI", "MS UI Gothic", "Everson Mono Unicode", Meiryo, "MS Gothic", "MS Mincho", "MS PGothic", "MS PMincho", "Meslo LG L", "Meslo LG L DZ", "Meslo M L", "Meslo M L DZ", "Meslo S L", "Meslo S L DZ", "Symbola", "DejaVu Sans Condensed", "DejaVu Sans Mono", Code2000, "Everson Mono", Quivira, sans-serif;
82
+
83
+ --font-size-meta: 0.9rem;
84
+ --font-size-h1: 3rem;
85
+ --font-size-h2: 2.3rem;
86
+ --font-size-h3: 2rem;
87
+ --font-size-h4: 1.7rem;
88
+ --font-size-h5: 1.7rem;
89
+ --font-size-h6: 1.7rem;
90
+
91
+ --paragraph-margin: 1.2rem;
92
+ --block-gap: 2rem;
93
+ --block-gap-l: 3rem;
94
+ --block-radius: 0.3rem;
95
+ --block-radius-round: 20px;
96
+
97
+ --marker-size: 1.2rem;
98
+
99
+ --box-shadow: 0 12px 24px -12px rgb(0 0 0 / 50%);
100
+ --box-shadow-slight: 0 6px 12px -6px rgb(0 0 0 / 40%);
101
+ --box-glow: 0 0 12px 0 var(--icon-block-alpha);
102
+
103
+ --box-shadow-unselected: rgb(0 0 0 / 6%) 0px 2px 4px, rgb(0 0 0 / 5%) 0px 0.5px 1px;
104
+ --transform-selected: translate3d(0px, -1px, 0px);
105
+
106
+ --content-width: 50rem;
107
+ --navigation-width: 300px;
108
+ --grid-gap: 1rem;
109
+ --grid-gap-s: 0.4rem;
110
+
111
+ /* Calculate the mobile width by removing l/r columns */
112
+ --content-width-mobile: calc(100vw - 1rem);
113
+
114
+ /* Search variables */
115
+ --search-height: 2rem;
116
+ --search-dropdown-height: 65vh;
117
+ --search-dropdown-duration: 0.2s;
118
+ }
@@ -1,23 +1,35 @@
1
1
  ---
2
2
  // warning: This file is overwritten by Astro Accelerator
3
3
 
4
- import { PostOrdering, Accelerator } from 'astro-accelerator-utils';
5
- import { SITE } from '@config';
4
+ import { PostOrdering, Accelerator } from "astro-accelerator-utils";
5
+ import { SITE } from "@config";
6
+ import pkg from "package.json" with { type: "json" };
6
7
 
7
8
  // Logic
8
9
  const accelerator = new Accelerator(SITE);
9
10
 
10
11
  const allPages = accelerator.posts.all();
11
- const missingBanner = allPages.filter(p => p.frontmatter.bannerImage == null && p.frontmatter.layout != 'src/layouts/Redirect.astro');
12
+ const missingBanner = allPages.filter(
13
+ (p) =>
14
+ p.frontmatter.bannerImage == null &&
15
+ p.frontmatter.layout != "src/layouts/Redirect.astro",
16
+ );
12
17
  const pageCount = missingBanner.length;
13
- const pages = missingBanner.sort(PostOrdering.sortByPubDateDesc).slice(0, Math.min(50, pageCount));
18
+ const pages = missingBanner
19
+ .sort(PostOrdering.sortByPubDateDesc)
20
+ .slice(0, Math.min(50, pageCount));
14
21
  ---
22
+
15
23
  <!doctype html>
16
24
  <html>
17
25
  <head>
18
26
  <meta charset="utf-8" />
19
27
  <title>Missing banners</title>
20
- <link rel="stylesheet" href="/css/report.css" />
28
+ <link
29
+ rel="stylesheet"
30
+ href={SITE.subfolder +
31
+ `/css/report.css?v=${pkg.version ?? Date.now()}`}
32
+ />
21
33
  </head>
22
34
  <body>
23
35
  <h2>Report: Missing banners</h2>
@@ -29,13 +41,22 @@ const pages = missingBanner.sort(PostOrdering.sortByPubDateDesc).slice(0, Math.m
29
41
  <th>Modified</th>
30
42
  </tr>
31
43
  </thead>
32
- {pages.map(p =>
33
- <tr>
34
- <td><a href={ accelerator.urlFormatter.formatAddress(p.url) }>{ p.frontmatter.title }</a></td>
35
- <td>{ p.frontmatter.pubDate }</td>
36
- <td>{ p.frontmatter.modDate }</td>
37
- </tr>
38
- )}
44
+ {
45
+ pages.map((p) => (
46
+ <tr>
47
+ <td>
48
+ <a
49
+ href={accelerator.urlFormatter.formatAddress(
50
+ p.url,
51
+ )}>
52
+ {p.frontmatter.title}
53
+ </a>
54
+ </td>
55
+ <td>{p.frontmatter.pubDate}</td>
56
+ <td>{p.frontmatter.modDate}</td>
57
+ </tr>
58
+ ))
59
+ }
39
60
  </table>
40
61
  </body>
41
- </html>
62
+ </html>
@@ -1,23 +1,35 @@
1
1
  ---
2
2
  // warning: This file is overwritten by Astro Accelerator
3
3
 
4
- import { PostOrdering, Accelerator } from 'astro-accelerator-utils';
5
- import { SITE } from '@config';
4
+ import { PostOrdering, Accelerator } from "astro-accelerator-utils";
5
+ import { SITE } from "@config";
6
+ import pkg from "package.json" with { type: "json" };
6
7
 
7
8
  // Logic
8
9
  const accelerator = new Accelerator(SITE);
9
10
 
10
11
  const allPages = accelerator.posts.all();
11
- const missingMeta = allPages.filter(p => (p.frontmatter.keywords == null || p.frontmatter.description == null) && p.frontmatter.layout != 'src/layouts/Redirect.astro');
12
+ const missingMeta = allPages.filter(
13
+ (p) =>
14
+ (p.frontmatter.keywords == null || p.frontmatter.description == null) &&
15
+ p.frontmatter.layout != "src/layouts/Redirect.astro",
16
+ );
12
17
  const pageCount = missingMeta.length;
13
- const pages = missingMeta.sort(PostOrdering.sortByPubDateDesc).slice(0, Math.min(50, pageCount));
18
+ const pages = missingMeta
19
+ .sort(PostOrdering.sortByPubDateDesc)
20
+ .slice(0, Math.min(50, pageCount));
14
21
  ---
22
+
15
23
  <!doctype html>
16
24
  <html>
17
25
  <head>
18
26
  <meta charset="utf-8" />
19
27
  <title>Missing meta</title>
20
- <link rel="stylesheet" href="/css/report.css" />
28
+ <link
29
+ rel="stylesheet"
30
+ href={SITE.subfolder +
31
+ `/css/report.css?v=${pkg.version ?? Date.now()}`}
32
+ />
21
33
  </head>
22
34
  <body>
23
35
  <h2>Report: Missing meta</h2>
@@ -29,13 +41,22 @@ const pages = missingMeta.sort(PostOrdering.sortByPubDateDesc).slice(0, Math.min
29
41
  <th>Modified</th>
30
42
  </tr>
31
43
  </thead>
32
- {pages.map(p =>
33
- <tr>
34
- <td><a href={ accelerator.urlFormatter.formatAddress(p.url) }>{ p.frontmatter.title }</a></td>
35
- <td>{ p.frontmatter.pubDate }</td>
36
- <td>{ p.frontmatter.modDate }</td>
37
- </tr>
38
- )}
44
+ {
45
+ pages.map((p) => (
46
+ <tr>
47
+ <td>
48
+ <a
49
+ href={accelerator.urlFormatter.formatAddress(
50
+ p.url,
51
+ )}>
52
+ {p.frontmatter.title}
53
+ </a>
54
+ </td>
55
+ <td>{p.frontmatter.pubDate}</td>
56
+ <td>{p.frontmatter.modDate}</td>
57
+ </tr>
58
+ ))
59
+ }
39
60
  </table>
40
61
  </body>
41
- </html>
62
+ </html>
@@ -1,23 +1,33 @@
1
1
  ---
2
2
  // warning: This file is overwritten by Astro Accelerator
3
3
 
4
- import { Accelerator } from 'astro-accelerator-utils';
5
- import { SITE } from '@config';
4
+ import { Accelerator } from "astro-accelerator-utils";
5
+ import { SITE } from "@config";
6
+ import pkg from "package.json" with { type: "json" };
6
7
 
7
8
  // Logic
8
9
  const accelerator = new Accelerator(SITE);
9
10
 
10
11
  const allPages = accelerator.posts.all();
11
- const missingMeta = allPages.filter(p => (p.frontmatter.pubDate == null && p.frontmatter.layout != 'src/layouts/Redirect.astro'));
12
+ const missingMeta = allPages.filter(
13
+ (p) =>
14
+ p.frontmatter.pubDate == null &&
15
+ p.frontmatter.layout != "src/layouts/Redirect.astro",
16
+ );
12
17
  const pageCount = missingMeta.length;
13
18
  const pages = missingMeta.slice(0, Math.min(50, pageCount));
14
19
  ---
20
+
15
21
  <!doctype html>
16
22
  <html>
17
23
  <head>
18
24
  <meta charset="utf-8" />
19
25
  <title>Missing pubDate</title>
20
- <link rel="stylesheet" href="/css/report.css" />
26
+ <link
27
+ rel="stylesheet"
28
+ href={SITE.subfolder +
29
+ `/css/report.css?v=${pkg.version ?? Date.now()}`}
30
+ />
21
31
  </head>
22
32
  <body>
23
33
  <h2>Report: Missing pubDate</h2>
@@ -29,13 +39,22 @@ const pages = missingMeta.slice(0, Math.min(50, pageCount));
29
39
  <th>Modified</th>
30
40
  </tr>
31
41
  </thead>
32
- {pages.map(p =>
33
- <tr>
34
- <td><a href={ accelerator.urlFormatter.formatAddress(p.url) }>{ p.frontmatter.title }</a></td>
35
- <td>{ p.frontmatter.pubDate }</td>
36
- <td>{ p.frontmatter.modDate }</td>
37
- </tr>
38
- )}
42
+ {
43
+ pages.map((p) => (
44
+ <tr>
45
+ <td>
46
+ <a
47
+ href={accelerator.urlFormatter.formatAddress(
48
+ p.url,
49
+ )}>
50
+ {p.frontmatter.title}
51
+ </a>
52
+ </td>
53
+ <td>{p.frontmatter.pubDate}</td>
54
+ <td>{p.frontmatter.modDate}</td>
55
+ </tr>
56
+ ))
57
+ }
39
58
  </table>
40
59
  </body>
41
- </html>
60
+ </html>
@@ -3,11 +3,12 @@ import {
3
3
  PostOrdering,
4
4
  PostFiltering,
5
5
  Accelerator,
6
- } from 'astro-accelerator-utils';
7
- import type { MarkdownInstance } from 'astro-accelerator-utils/types/Astro';
8
- import type { Page } from 'astro';
9
- import { SITE } from '@config';
10
- import PagingLinks from '@components/PagingLinks.astro';
6
+ } from "astro-accelerator-utils";
7
+ import type { MarkdownInstance } from "astro-accelerator-utils/types/Astro";
8
+ import type { Page } from "astro";
9
+ import { SITE } from "@config";
10
+ import PagingLinks from "@components/PagingLinks.astro";
11
+ import pkg from "package.json" with { type: "json" };
11
12
 
12
13
  // Props
13
14
  type Props = {
@@ -21,9 +22,7 @@ const lang = SITE.default.lang;
21
22
 
22
23
  // Logic
23
24
  const accelerator = new Accelerator(SITE);
24
- const stats = new accelerator.statistics(
25
- 'report/oldest-content/[page].astro'
26
- );
25
+ const stats = new accelerator.statistics("report/oldest-content/[page].astro");
27
26
  stats.start();
28
27
 
29
28
  export async function getData() {
@@ -50,7 +49,7 @@ const pageLinks = accelerator.paging.links(
50
49
  SITE.pageLinks,
51
50
  page.lastPage,
52
51
  page.currentPage,
53
- page.url.current
52
+ page.url.current,
54
53
  );
55
54
 
56
55
  stats.stop();
@@ -61,10 +60,16 @@ stats.stop();
61
60
  <head>
62
61
  <meta charset="utf-8" />
63
62
  <title>Oldest content</title>
64
- <link rel="stylesheet" href="/css/report.css" />
63
+ <link
64
+ rel="stylesheet"
65
+ href={SITE.subfolder + `/css/report.css?v=${pkg.version ?? Date.now()}`}
66
+ />
65
67
  </head>
66
68
  <body>
67
- <h2>Report: Oldest content (Page <Fragment content={page.currentPage} />)</h2>
69
+ <h2>
70
+ Report: Oldest content (Page <Fragment content={page.currentPage}
71
+ ></Fragment>)
72
+ </h2>
68
73
  <table>
69
74
  <thead>
70
75
  <tr>
@@ -1,6 +1,7 @@
1
1
  ---
2
- import { Accelerator, PostOrdering } from 'astro-accelerator-utils';
3
- import { SITE } from '@config';
2
+ import { Accelerator, PostOrdering } from "astro-accelerator-utils";
3
+ import { SITE } from "@config";
4
+ import pkg from "package.json" with { type: "json" };
4
5
 
5
6
  // Logic
6
7
  const accelerator = new Accelerator(SITE);
@@ -9,7 +10,7 @@ const allPages = accelerator.posts.all();
9
10
  let futurePosts = allPages.filter(
10
11
  (p) =>
11
12
  p.frontmatter.pubDate != null &&
12
- Date.parse(p.frontmatter.pubDate) > Date.now()
13
+ Date.parse(p.frontmatter.pubDate) > Date.now(),
13
14
  );
14
15
  futurePosts = futurePosts.sort(PostOrdering.sortByPubDate);
15
16
 
@@ -22,7 +23,10 @@ const pages = futurePosts.slice(0, Math.min(50, pageCount));
22
23
  <head>
23
24
  <meta charset="utf-8" />
24
25
  <title>Publishing calendar</title>
25
- <link rel="stylesheet" href="/css/report.css" />
26
+ <link
27
+ rel="stylesheet"
28
+ href={SITE.subfolder + `/css/report.css?v=${pkg.version ?? Date.now()}`}
29
+ />
26
30
  </head>
27
31
  <body>
28
32
  <h2>Report: Publishing calendar</h2>
@@ -1,13 +1,14 @@
1
1
  ---
2
2
  // warning: This file is overwritten by Astro Accelerator
3
3
 
4
- import { Accelerator } from 'astro-accelerator-utils';
5
- import { Lang } from '@util/Languages';
6
- import { Translations } from '@util/Languages';
7
- import { SITE } from '@config';
4
+ import { Accelerator } from "astro-accelerator-utils";
5
+ import { Lang } from "@util/Languages";
6
+ import { Translations } from "@util/Languages";
7
+ import { SITE } from "@config";
8
+ import pkg from "package.json" with { type: "json" };
8
9
 
9
10
  // Lang
10
- const _ = Lang('en');
11
+ const _ = Lang("en");
11
12
 
12
13
  // Logic
13
14
  const accelerator = new Accelerator(SITE);
@@ -15,12 +16,17 @@ const accelerator = new Accelerator(SITE);
15
16
  const links = accelerator.taxonomy.links(Translations, _, SITE.subfolder);
16
17
  const entries = accelerator.taxonomy.all();
17
18
  ---
19
+
18
20
  <!doctype html>
19
21
  <html>
20
22
  <head>
21
23
  <meta charset="utf-8" />
22
24
  <title>Taxonomy</title>
23
- <link rel="stylesheet" href="/css/report.css" />
25
+ <link
26
+ rel="stylesheet"
27
+ href={SITE.subfolder +
28
+ `/css/report.css?v=${pkg.version ?? Date.now()}`}
29
+ />
24
30
  </head>
25
31
  <body>
26
32
  <h2>Report: Taxonomy</h2>
@@ -32,20 +38,30 @@ const entries = accelerator.taxonomy.all();
32
38
  <th>Count</th>
33
39
  </tr>
34
40
  </thead>
35
- {entries.categories.map(t =>
36
- <tr>
37
- <td>{ links.category }</td>
38
- <td><a href={ links.getCategoryLink(t.title) }>{ t.title }</a></td>
39
- <td>{ t.count }</td>
40
- </tr>
41
- )}
42
- {entries.tags.map(t =>
43
- <tr>
44
- <td>{ links.tag }</td>
45
- <td><a href={ links.getTagLink(t.title) }>{ t.title }</a></td>
46
- <td>{ t.count }</td>
47
- </tr>
48
- )}
41
+ {
42
+ entries.categories.map((t) => (
43
+ <tr>
44
+ <td>{links.category}</td>
45
+ <td>
46
+ <a href={links.getCategoryLink(t.title)}>
47
+ {t.title}
48
+ </a>
49
+ </td>
50
+ <td>{t.count}</td>
51
+ </tr>
52
+ ))
53
+ }
54
+ {
55
+ entries.tags.map((t) => (
56
+ <tr>
57
+ <td>{links.tag}</td>
58
+ <td>
59
+ <a href={links.getTagLink(t.title)}>{t.title}</a>
60
+ </td>
61
+ <td>{t.count}</td>
62
+ </tr>
63
+ ))
64
+ }
49
65
  </table>
50
66
  </body>
51
- </html>
67
+ </html>