add support for tags
This commit is contained in:
parent
16d17f7ed7
commit
f653ed944f
6 changed files with 47 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue