Expand description
SEO metadata: Open Graph, Twitter Cards and the common <meta> block.
The free functions here build the tags; SeoBuilder is sugar over them, never a second
implementation.
Structs§
- SeoBuilder
- A fluent builder for a page’s whole metadata block.
Constants§
- DEFAULT_
ROBOTS - The default robots directive.
- DEFAULT_
TWITTER_ CARD - The default Twitter card type.
- DEFAULT_
VIEWPORT - The default viewport.
Functions§
- common
- The common
<meta>block: charset, viewport, description, robots, keywords, author — plus the<title>. - json_ld
- A
<script type="application/ld+json">carrying structured data for search engines. - meta_
charset - A
<meta charset="…">. - meta_
http_ equiv - A
<meta http-equiv="…" content="…">. - meta_
name - A
<meta name="…" content="…">. - meta_
property - A
<meta property="…" content="…">, used by Open Graph. - open_
graph - Open Graph tags for a page.
- open_
graph_ article - Open Graph tags for an article, with the
article:*extensions. - script_
json - A
<script type="…">holding a JSON document, made safe to embed. Seejson_ld. - twitter_
card - Twitter Card tags.