Skip to main content

Module seo

Module seo 

Source
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.