-
Notifications
You must be signed in to change notification settings - Fork 23
5.6 Settings override
Override of the global settings
The global settings of MarkNotes are defined in the /settings.json.dist file. That file is everytime read and processed.
Then, if you want, you can override these settings by just creating a /settings.json file in your web root folder. You don't need to copy/paste the file but just copy/paste the settings you want to override; for instance the language.
Just put this content and not the full content; it's not needed.
{
"language": "en"
}
Then, if you want, you can also override the settings in a specific folder like, for instance, in /docs/private (where you'll put private notes).
So, just put a settings.json in the folder /docs/private with, f.i.,
{
"templates": {
"html": "private"
}
}
and for every html pages displayed for that folder (only the folder and not the children), the template will be private.html.
And, finally, you can also do this for a note. For instance, if you've a note called /doc/customer/VIP/aesecure.md, then just create the file /doc/customer/VIP/aesecure.json with this content :
{
"templates": {
"html": "aesecure"
}
}
or, if you don't want that this specific note can be indexed by a search engine, just add :
{
"page": {
"robots": "noindex, nofollow"
},
}
That's it. You can override the settings at three different places : on the application level, on a folder folder or on a note level.
Christophe Avonture