Configuration File
Eleventy Notes provides several configuration options to customize the app. All of them are optional, but a basic configuration is recommended.
You may need to restart the app after changing the configuration.
Basic configuration
Open the app.mjs file in the root of the project, next to your notes. Add a custom title (shown in the header), a description (used by search engines) and define the language of your content:
import { defineConfig } from "./.app/app-config.js";
export default defineConfig({
title: "John's Notes",
description: "The personal notes of John Doe",
lang: "en",
});
TypeScript support
If you use an editor like VS Code, you can add type-checking to your configuration file by adding the following comment at the top of the file:
// @ts-check
This will warn you about invalid configuration options.
Available options
- Sidebar - Customize the sidebar sections and notes
- Panel - Configure the panel sections and edit link
- Themes and Styling - Choose color schemes and add custom CSS
- Page Navigation - Configure previous/next navigation
- Tags - Create tag mappings and labels
- Custom Properties - Add metadata to your notes
- Static Assets - Serve non-processed files
- Language - Set content and UI language
- Wikilinks - Customize automatic wikilink labels
- Add
ignoresto exclude files
Full configuration example
import { defineConfig } from "./.app/app-config.js";
export default defineConfig({
title: "John's Notes",
description: "The personal notes of John Doe",
lang: "en",
staticAssets: {
paths: {},
},
ignores: [],
customProperties: {
properties: [],
},
editThisNote: {
url: "https://example.com/edit/{{file}}",
},
sidebar: {
links: [],
sections: [],
},
panel: {
tableOfContents: true,
tags: true,
customProperties: true,
incomingLinks: true,
outgoingLinks: true,
externalLinks: true,
},
pageNav: {
mode: "on",
},
wikilinks: {
autoLabel: "ref",
anchorLabel: "none",
},
tags: {
map: {},
},
});