generated from rothsandro/eleventy-notes
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.mjs
58 lines (56 loc) · 1.2 KB
/
app.mjs
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// @ts-check
import { defineConfig, createNotesQuery } from './.app/app-config.js';
import { defineTranslations } from './.app/app-translations.js';
export default defineConfig({
title: 'Learn Eleventy',
description: 'The best way to learn Eleventy is to build something with it.',
editThisNote: {
url: 'https://github.com/uncenter/learn-eleventy/edit/{{branch}}/{{file}}',
},
notes: {
pathPrefix: '/lesson',
},
sidebar: {
links: [
{
url: 'https://github.com/uncenter/learn-eleventy',
label: 'Learn Eleventy GitHub',
icon: 'github',
},
{
url: 'https://discord.gg/GBkBy9u',
label: 'Eleventy Discord',
icon: 'message-circle-question',
},
{
url: 'https://11ty.dev/docs',
label: 'Eleventy Documentation',
icon: 'book-text',
},
],
sections: [
{
label: 'Lessons',
groups: [
{
query: createNotesQuery({
pattern: '^/[^/]+$',
}),
},
],
},
],
},
panel: {
incomingLinks: false,
outgoingLinks: false,
externalLinks: false,
},
});
export const translations = defineTranslations({
lang: 'en',
partial: true,
translations: {
'search.popover.placeholder': 'Search for lessons by title and content.',
},
});