{post.data.excerpt}
} +{post.data.excerpt}
+{post.data.excerpt}
} +The page you're looking for doesn't exist.
+ Go home + +``` + +### Empty state + +When a collection has no content, show a helpful empty state: + +```astro +{posts.length === 0 ? ( +Create your first post in the admin panel.
+ Create a post +No posts in this category yet.
+ ) : ( +Create your first post in the admin panel.
+ + Create a post + +{featuredPost.data.excerpt}
+ )} + {featuredTags.length > 0 && ( + + )} ++ {post.data.excerpt} +
+ ) + } ++ {posts.length}{" "} + {posts.length === 1 ? "article" : "articles"} +
+No posts yet.
+ ) : ( +{post.data.excerpt}
+ )} + + {tags.length > 0 && ( + + )} ++ {results.length === 0 + ? `No results for "${query}"` + : `${results.length} result${results.length === 1 ? "" : "s"} for "${query}"`} +
+ ) + } + + { + results.length > 0 && ( +Enter a search term to find posts.
} +No posts with this tag yet.
+ ) : ( +