Tags redo (#624)

Introduction of `tag` and `itags`
This commit is contained in:
Zef Hemel
2024-01-11 13:20:50 +01:00
committed by GitHub
parent 9a07c4c90a
commit 848211120c
31 changed files with 286 additions and 170 deletions
+2 -4
View File
@@ -53,11 +53,9 @@ export function PageNavigator({
if (aliases.length > 0) {
description = "(a.k.a. " + aliases.join(", ") + ") ";
}
if (pageMeta.tags.length > 1) {
// Every page has the "page" tag, so it only gets interesting beyond that
const interestingTags = pageMeta.tags.filter((tag) => tag !== "page");
if (pageMeta.tags) {
description = (description || "") +
interestingTags.map((tag) => `#${tag}`).join(" ");
pageMeta.tags.map((tag) => `#${tag}`).join(" ");
}
options.push({
...pageMeta,