add support for tags

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2026-05-01 19:32:14 +02:00
parent 16d17f7ed7
commit f653ed944f
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
6 changed files with 47 additions and 1 deletions

View file

@ -17,6 +17,8 @@
description: none,
/// Author of the site for metadata, default to document.author
author: none,
/// Tags describing the content of the page
tags: (),
/// Additional stylesheet for the page: must be a list of url
stylesheets: (),
/// List of related sites for metadata
@ -38,6 +40,11 @@
// Only set the Referer header for out request to the same origin
html.meta(name: "referrer", content: "same-origin")
// Tags
if tags.len() != 0 {
html.meta(name: "keywords", content: tags.join(", "))
}
if icon != none {
html.link(rel: "icon", type: "image/png", href: icon)
}