Skip to content

Instantly share code, notes, and snippets.

@scottwater
Last active May 3, 2023 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottwater/176cafeee980bbd47a1b792e2df9d1f2 to your computer and use it in GitHub Desktop.
Save scottwater/176cafeee980bbd47a1b792e2df9d1f2 to your computer and use it in GitHub Desktop.
Serb component example
{%@ Shared::Card::Card as: :article do %}
{%@ Shared::Card::Title as: :h2, href: article.relative_url do %}
{{article.data.title}}
{% end %}
{%@ Shared::Card::Eyebrow as: :time, dateTime: article.data.date, decorate: true do %}
{{article.data.date}}
{% end %}
{%@ Shared::Card::Description do %}
{{article.data.description}}
{% end %}
{%@ Shared::Card::Cta do %}Read article{% end %}
{% end %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment