Skip to content

Commit d3b0526

Browse files
authored
[Pages] Fix pages hono examples (#16451)
* fix: pages hono examples * chore: add Hono to accepted vocab
1 parent 00d280b commit d3b0526

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

.github/styles/config/vocabularies/cloudflare/accept.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ Cloudflare
33
cloudflared
44
Internet
55
JavaScript
6-
TypeScript
6+
TypeScript
7+
Hono

src/components/ExternalResources.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
import { getEntry } from "astro:content";
3-
import { getCollection, z } from "astro:content";
3+
import { z } from "astro:content";
44
55
type Props = z.infer<typeof props>;
66
@@ -25,12 +25,13 @@ const filtered = resources.data.entries.filter((entry) => {
2525
);
2626
});
2727
28-
filtered.sort((a, b) => b.updated - a.updated);
28+
filtered.sort((a, b) => Number(b.updated) - Number(a.updated));
2929
---
3030

3131
<ul>
3232
{
3333
filtered.map((entry) => {
34+
// @ts-expect-error TODO: fix resource types
3435
const title = entry.name ?? entry.title;
3536
return (
3637
<li>

src/content/docs/pages/framework-guides/deploy-a-hono-site.mdx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,16 @@ Every time you commit new code to your Hono site, Cloudflare Pages will automati
139139

140140
### Tutorials
141141

142-
For more tutorials involving Hono, refer to the following resources:
142+
For more tutorials involving Hono and Cloudflare Pages, refer to the following resources:
143143

144-
<ResourcesBySelector tags={["Hono"]} types={["tutorial"]} />
144+
<ResourcesBySelector
145+
tags={["Hono"]}
146+
types={["tutorial"]}
147+
products={["Pages"]}
148+
/>
145149

146150
### Demo apps
147151

148-
For demo applications using Hono, refer to the following resources:
152+
For demo applications using Hono and Cloudflare Pages, refer to the following resources:
149153

150-
<ExternalResources tags={["Hono"]} type="apps" />
154+
<ExternalResources tags={["Hono"]} type="apps" products={["Pages"]} />

0 commit comments

Comments
 (0)