deno.land / x / lume@v2.1.4 / tests / assets / module / multiple.page.js

multiple.page.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
export const tags = ["multiple"];export const layout = "layout.js";
export default function* () { const pages = [1, 2, 3];
for (const page of pages) { const content = { url: `/multiple/${page}.html`, content: `Content page ${page}`, };
// The first page has a custom title if (page === 1) { content.title = "Page 1"; }
yield content; }}
lume

Version Info

Tagged at
7 months ago