Configure your site
Once you have your spacebook running, your first step is to do some basic configuration to make it your own. All site configuration is stored in a single file located at _data/site.json.
If you have a local copy of your site installed you can edit this file directly, or you can edit and commit the file using the Github UI. The default site.json file looks like so:
{
"name": "Spacebook",
"subtitle": "Create a modern notebook to document or explain almost anything.",
"description": "Create a modern notebook to document or explain almost anything with spacebook.app",
"footer": "<a href='https://spacebook.app'>Made with β€ in Minneapolis</a>",
"url": "https://spacebook.app",
"githubUrl": "https://github.com/broeker/spacebook",
"githubBranch": "main",
"navigationStyle": "horizontal",
"emoji": "π₯",
"enableSearch": true,
"enableDarkMode": true,
"enableEditButton": true,
"enableDatestamp": true,
"enableGithubLink": true,
"enableContact": false,
"enableNetlifyCMS": false,
"enableComments": false,
"enableEncryption": false,
"enablePageNavigation": true
}
Basic settings
When you make changes to this file and deploy them, your site will automically update to reflect your new settings:
- name β this is the name or title of your site as it appears in the header
- subtitle (optional) β this is the short subtitle that appears directly below your site name
- description β this is used as your default metadata page description, and can be overridden on a page-by-page basis as needed
- footer (optional) β this is the plain text that appears in the bottom footer
- githubUrl β this is the address to your Github repository, used to generate edit links
- githubBranch β this is the main of your primary Github branch (set to βmainβ by default)
- navigationStyle β you can set your navigation to horizontal (default), or vertical if you prefer a top navigation bar
- emoji (optional) β this is the emoji used for your favicon
- url β this is the main URL to your site on Netlify (this is not currently used but seems wise to track in config)
Enable or disable features
- enableSearch β this will enable or disable the Elasticlunr search engine
- enableContact β enable or disable the Netlify contact form
- enableDarkMode β enable or disable darkmode functionality
- enableEditButton β enable or disable the βedit on Github buttonβ
- enableDatestamp β enable or disable the date stamp that appears on the top of each page
- enableGithubLink β enable or disable the Github link and icon that appears in the footer
- enableNetlifyCMS β enable or disable Netlify CMS (false by default)
- enableEncryption β enable the logout button if you are using encryption (false by default)
- enablePageNavigation β enable or disable the built-in navigation that appears on the bottom of each page
Did you know? If you enable the optional Netlify CMS integration, all of these settings can also be changed via the CMS.
Basic Netlify configuration
There are probably also a few settings you may wish to change on Netlify:
- You can change your site name and URL to something more personal under General > Site settings > Site details > Site name
- If you leave your contact form enabled, you may wish to set up notifications under Forms > Form notifications
- You may wish to change your deploy settings under Build & deploy > deploy contexts
- You may wish to explore other Netlify settings!
Now that youβve got your site configured to your wishes you can move on the next step and start working with your content π