Ghostcn
Skip to Content
ComponentsPublishing

Featured Posts

Responsive homepage hero populated from Ghost featured posts.

Install

npx ghostcn@1.4.0 add featured-posts --skip-existing

Usage

Mark posts as featured in Ghost Admin to populate this block. Try it in your homepage template.

{{> "components/featured-posts"}}

Customize this instance

{{> "components/featured-posts" class="my-6" titleClass="text-purple-700 dark:text-purple-300"}}

Styling parameters

ParameterTarget
classComponent root — .ghcn-featured
titleClass.ghcn-featured__title
gridClass.ghcn-featured__grid
cardClass.ghcn-featured__card
contentClass.ghcn-featured__content

Styling parameters affect only elements that render. See Style component instances for specificity, dark mode, and preserving customizations.

Installed files

  • partials/components/featured-posts.hbs
  • assets/css/components/featured-posts.css

View the registry source

Edit this page on GitHub

Was this helpful?

On this page