Search documentation of phoenix_kit

# PhoenixKitWeb.BlogController (phoenix_kit v1.6.19)

View Source

Public blog post display controller.

Handles public-facing routes for viewing published blog posts with multi-language support.

URL patterns: /:language/:blog_slug/:post_slug - Slug mode post /:language/:blog_slug/:date/:time - Timestamp mode post /:language/:blog_slug - Blog listing

# Summary

## Functions

show(conn, params)

Displays a blog post, blog listing, or all blogs overview.

# Functions

# show(conn, params)

Displays a blog post, blog listing, or all blogs overview.

Path parsing determines which action to take:

- [] -> Invalid request (no blog specified)
- [blog_slug] -> Blog listing
- [blog_slug, post_slug] -> Slug mode post
- [blog_slug, date] -> Date-only timestamp (resolves to single post or first post)
- [blog_slug, date, time] -> Timestamp mode post