PhoenixKitWeb.BlogHTML (phoenix_kit v1.6.16)
View SourceHTML rendering functions for BlogController.
Summary
Functions
Builds the public URL for a blog listing page. Default language gets clean URLs without locale prefix.
Builds a post URL based on mode. Default language gets clean URLs without locale prefix.
Extracts and renders an excerpt from post content. Returns content before <!-- more --> tag, or first paragraph if no tag. Renders markdown and strips HTML tags for plain text display.
Resolves a featured image URL for a post, falling back to the original variant.
Formats a date for display.
Formats a date for URL.
Formats time for URL (HH:MM).
Pluralizes a word based on count.
Functions
Builds the public URL for a blog listing page. Default language gets clean URLs without locale prefix.
Builds a post URL based on mode. Default language gets clean URLs without locale prefix.
Extracts and renders an excerpt from post content. Returns content before <!-- more --> tag, or first paragraph if no tag. Renders markdown and strips HTML tags for plain text display.
Resolves a featured image URL for a post, falling back to the original variant.
Formats a date for display.
Formats a date for URL.
Formats time for URL (HH:MM).
Pluralizes a word based on count.