Expand description
SEO metadata: Open Graph, Twitter Cards and the common <meta> block.
Ports Winged-Swift/Sources/WingedSwift/seo/SEOHelpers.swift, and implements the
SeoBuilder from WINGED_RUST_SPEC.md §6 on top of it — the builder is sugar over
these functions, never a second implementation.
Structs§
- SeoBuilder
- A fluent builder for a page’s whole metadata block.
Constants§
- DEFAULT_
ROBOTS - The default robots directive Winged-Swift uses.
- DEFAULT_
TWITTER_ CARD - The default Twitter card type Winged-Swift uses.
- DEFAULT_
VIEWPORT - The default viewport Winged-Swift uses.
Functions§
- common
- The common
<meta>block: charset, viewport, description, robots, keywords, author — plus the<title>. - 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. - twitter_
card - Twitter Card tags.