Template:UI/latest posts

From Miniscope
Jump to: navigation, search

"Latest news" widget — a compact card grid of the most recent posts. Designed to be placed on a main page or landing that wants a blog-feed lede with hero thumbnails.

Renders, top to bottom:

  • Optional <h2> heading
  • The N most recent pages in Category:Post (Has date desc) as a
 compact card grid via Template:UI/latest_posts/entry — each card
 shows the hero image (Has card image), title, date, and a 2-line
 teaser
  • Optional "See all news →" footer link

Co-designed with Template:UI/posts_library: this is the small landing-page surface (default 3 cards), posts_library is the full directory. Both feed from Category:Post and share the 4:3 hero-thumb idiom but live in separate class spaces so neither couples to the other.

Parameters (all optional)

  • heading — section heading (default: "Latest news").
 Empty string suppresses the <h2>.
  • limit — number of posts to show (default: 3).
  • see_all — page title to link from the "See all →"
 footer (e.g. News). If empty, the footer is suppressed.
  • see_all_label — footer link text (default:
 "See all news →").

Cross-template dependencies