1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
import type { element } from "./vdom.js";
import t, { Attribute } from "./xml.js";
export function urlset(attr: Attribute, ...content: element<'url'>[]) {
return t("urlset", attr, ...content);
}
export function url(
attr: Attribute,
...content: element<"loc" | "lastmod" | "changefreq" | "priority">[]
) {
return t("url", attr, ...content);
}
export function loc(attr: Attribute, ...content: string[]) {
return t("loc", attr, ...content);
}
export function lastmod(attr: Attribute, content: string) {
return t("lastmod", attr, content);
}
export function changefreq(attr: Attribute,
content: "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | "never"
) {
return t("changefreq", attr, content);
}
export function priority(attr: Attribute, content: string) {
return t("priority", attr, content);
}
|