diff --git a/src/main.ts b/src/main.ts index 35215ef..752a991 100644 --- a/src/main.ts +++ b/src/main.ts @@ -107,6 +107,17 @@ async function main() { let value = ""; if (propertyName in properties) { value = properties[propertyName] + if (propertyName === "tags" && formatTemplate === undefined) { + const htmlTemplate = '#${pageName}' + const separatorSpanTemplate = ' ' + if (Array.isArray(value)) { + value = `
${value.map((tag) => { + return htmlTemplate.replaceAll("${pageName}", tag) + }).join(separatorSpanTemplate)}
` + } else { + value = htmlTemplate.replaceAll("${pageName}", value) + } + } template = template.replace(`$${propertyName}`, value) } console.info(propertyName, template)