diff options
author | 2021-08-11 15:04:09 -0700 | |
---|---|---|
committer | 2021-08-11 15:04:09 -0700 | |
commit | 0f0cc2b9d83ffeee125b85c95d2d51080f21074d (patch) | |
tree | 4960e84e8654108e9c88f8392e1b04a2ce5ab667 /examples/blog-multiple-authors/src/components/PostPreview.astro | |
parent | b54c01bf66a75bea7cde909418cc5373e666b7fa (diff) | |
download | astro-0f0cc2b9d83ffeee125b85c95d2d51080f21074d.tar.gz astro-0f0cc2b9d83ffeee125b85c95d2d51080f21074d.tar.zst astro-0f0cc2b9d83ffeee125b85c95d2d51080f21074d.zip |
Add file-based routing /w dynamic paths (#1010)
* wip: add file-based routing
* add pagination tests and nested pagination support
Diffstat (limited to 'examples/blog-multiple-authors/src/components/PostPreview.astro')
-rw-r--r-- | examples/blog-multiple-authors/src/components/PostPreview.astro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/blog-multiple-authors/src/components/PostPreview.astro b/examples/blog-multiple-authors/src/components/PostPreview.astro index b126ca2fb..19e1362e5 100644 --- a/examples/blog-multiple-authors/src/components/PostPreview.astro +++ b/examples/blog-multiple-authors/src/components/PostPreview.astro @@ -56,7 +56,7 @@ time { <div class="data"> <h2>{post.title}</h2> - <a class="author" href={`/author/${post.author}`}>{author.name}</a> + <a class="author" href={`/authors/${post.author}`}>{author.name}</a> <time class="date" datetime={post.date}>{formatDate(post.date)}</time> <p class="description"> {post.description} |