deno.land / x / lume_theme_simple_blog@v0.4.0 / src / archive_result.tmpl.js

archive_result.tmpl.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
export const layout = "layouts/archive_result.njk";
export default function* ({ search }) { // Generate a page for each tag for (const tag of search.values("tags")) { yield { url: `/archive/${tag}/`, title: `Tagged “${tag}`, type: "tag", search_query: `type=post '${tag}'`, tag, }; }
// Generate a page for each author for (const author of search.values("author")) { yield { url: `/author/${author}/`, title: `Posts by ${author}`, type: "author", search_query: `type=post author='${author}'`, author, }; }}
lume_theme_simple_blog

Version Info

Tagged at
2 years ago