28 lines
691 B
Text
28 lines
691 B
Text
extends ./layout.spug
|
|
props
|
|
title: string
|
|
nav: { label: string, href: string }[]
|
|
post: { id: string, title: string, excerpt: string } | null
|
|
block content
|
|
if post
|
|
article@post()
|
|
div.card
|
|
div.card-title
|
|
div.line
|
|
span.title= post.title
|
|
div.line
|
|
component amezing-article
|
|
title: post.title
|
|
date: 'October 22, 2026'
|
|
body: post.excerpt
|
|
component amezing-article-nav
|
|
previousHref: '/'
|
|
previousTitle: 'Back to posts'
|
|
else
|
|
section.primary-section
|
|
h1 Not found
|
|
p The post does not exist.
|
|
$$$
|
|
assertExists("article .card-title")
|
|
assertText("article h1", "Test1")
|
|
notes
|