2020-05-20 17:52:58 +00:00
|
|
|
## Loconotion Site Configuration File ##
|
2020-05-24 18:34:45 +00:00
|
|
|
# full .toml configuration example file to showcase all of Loconotion's available settings
|
2020-05-20 17:52:58 +00:00
|
|
|
# check out https://github.com/toml-lang/toml for more info on the toml format
|
|
|
|
|
|
|
|
# name of the folder that the site will be generated in
|
|
|
|
name = "Notion Test Site"
|
2020-05-24 19:06:55 +00:00
|
|
|
|
2020-05-20 17:52:58 +00:00
|
|
|
# the notion.so page to being parsing from. This page will become the index.html
|
2020-05-24 19:06:55 +00:00
|
|
|
# of the generated site, and loconotation will parse all sub-pages present on the page
|
2020-05-20 17:52:58 +00:00
|
|
|
page = "https://www.notion.so/Loconotion-Example-Page-03c403f4fdc94cc1b315b9469a8950ef"
|
|
|
|
|
|
|
|
## Global Site Settings ##
|
|
|
|
# this [site] table defines override settings for the whole site
|
|
|
|
# later on we will see how to define settings for a single page
|
|
|
|
[site]
|
|
|
|
## Custom Meta Tags ##
|
|
|
|
# defined as an array of tables (double square brackets)
|
|
|
|
# each key in the table maps to an atttribute in the tag
|
|
|
|
# the following adds the tag <meta name="title" content="Loconotion Test Site"/>
|
|
|
|
[[site.meta]]
|
|
|
|
name = "title"
|
|
|
|
content = "Loconotion Test Site"
|
|
|
|
[[site.meta]]
|
|
|
|
name = "description"
|
|
|
|
content = "A static site generated from a Notion.so page using Loconotion"
|
|
|
|
|
|
|
|
## Custom Fonts ##
|
|
|
|
# you can specify the name of a google font to use on the site - use the font embed name
|
2020-05-24 19:06:55 +00:00
|
|
|
# if in doubt select a style on fonts.google.com and navigate to the "embed" tag to
|
|
|
|
# check the name under CSS rules
|
|
|
|
# the following table keys controls the font of specific elements:
|
|
|
|
# site: changes the font for the whole page (apart from code blocks)
|
|
|
|
# but the settings below override it
|
|
|
|
# navbar: site breadcrumbs on the top-left of the page
|
|
|
|
# title: page title (under the icon)
|
|
|
|
# h1: heading blocks, and inline databases' titles
|
|
|
|
# h2: sub-heading blocks
|
|
|
|
# h3: sub-sub-heading blocks
|
|
|
|
# body: non-heading text on the page
|
|
|
|
# code: text inside code blocks
|
2020-05-20 17:52:58 +00:00
|
|
|
[site.fonts]
|
2020-05-25 18:32:34 +00:00
|
|
|
site = 'Nunito'
|
2020-05-20 17:52:58 +00:00
|
|
|
navbar = ''
|
|
|
|
title = 'Montserrat'
|
|
|
|
h1 = 'Montserrat'
|
|
|
|
h2 = 'Montserrat'
|
|
|
|
h3 = 'Montserrat'
|
|
|
|
body = ''
|
|
|
|
code = ''
|
|
|
|
|
|
|
|
## Custom Element Injection ##
|
2020-05-24 19:06:55 +00:00
|
|
|
# defined as an array of tables [[site.inject]], followed by 'head' or 'body' to set
|
|
|
|
# the injection point, followed by name of the tag to inject
|
|
|
|
# each key in the table maps to an atttribute in the tag
|
|
|
|
# e.g. the following injects this tag in the <head>:
|
|
|
|
# <link href="favicon-16x16.png" rel="icon" sizes="16x16" type="image/png"/>
|
2020-05-20 17:52:58 +00:00
|
|
|
[[site.inject.head.link]]
|
|
|
|
rel="icon"
|
|
|
|
sizes="16x16"
|
|
|
|
type="image/png"
|
|
|
|
href="/example/favicon-16x16.png"
|
|
|
|
|
2020-05-24 19:06:55 +00:00
|
|
|
# the following injects this tag in the in the <body>:
|
|
|
|
# <script src="custom-script.js" type="text/javascript"></script>
|
|
|
|
# note that all href / src files are copied to the root of the site folder
|
|
|
|
# regardless of their original path
|
2020-05-20 17:52:58 +00:00
|
|
|
[[site.inject.body.script]]
|
|
|
|
type="text/javascript"
|
|
|
|
src="/example/custom-script.js"
|
|
|
|
|
|
|
|
## Individual Page Settings ##
|
2020-05-24 19:06:55 +00:00
|
|
|
# the [pages] table defines override settings for individual pages, by defining
|
|
|
|
# a sub-table named after the page url (or part of the url, but careful about
|
|
|
|
# not using a string that appears in multiple page urls)
|
2020-05-20 17:52:58 +00:00
|
|
|
[pages]
|
2020-05-24 19:06:55 +00:00
|
|
|
# the following settings will only apply to this page:
|
|
|
|
# https://www.notion.so/d2fa06f244e64f66880bb0491f58223d
|
2020-05-20 17:52:58 +00:00
|
|
|
[pages.d2fa06f244e64f66880bb0491f58223d]
|
|
|
|
## custom slugs ##
|
2020-05-24 19:06:55 +00:00
|
|
|
# inside page settings, you can change the url for that page with the 'slug' key
|
2020-05-20 17:52:58 +00:00
|
|
|
# e.g. page "/d2fa06f244e64f66880bb0491f58223d" will now map to "/games-list"
|
|
|
|
slug = "games-list"
|
|
|
|
|
|
|
|
# change the description meta tag for this page only
|
|
|
|
[[pages.d2fa06f244e64f66880bb0491f58223d.meta]]
|
|
|
|
name = "description"
|
|
|
|
content = "A fullscreen list database page, now with a pretty slug"
|
|
|
|
|
2020-05-25 18:32:34 +00:00
|
|
|
# change the body font for the list page only
|
2020-05-20 17:52:58 +00:00
|
|
|
[pages.d2fa06f244e64f66880bb0491f58223d.fonts]
|
2020-05-25 18:32:34 +00:00
|
|
|
body = 'DM Mono'
|
2020-05-20 17:52:58 +00:00
|
|
|
|
2021-02-07 12:56:51 +00:00
|
|
|
# set up pretty slugs and options for the other database pages
|
2020-05-20 17:52:58 +00:00
|
|
|
[pages.54dab6011e604430a21dc477cb8e4e3a]
|
|
|
|
slug = "film-gallery"
|
2021-02-07 12:56:51 +00:00
|
|
|
|
2020-05-20 17:52:58 +00:00
|
|
|
[pages.2604ce45890645c79f67d92833083fee]
|
|
|
|
slug = "books-table"
|
2021-02-07 12:56:51 +00:00
|
|
|
|
|
|
|
# don't follow any link on the page, skipping parsing sub-pages linked from this one
|
|
|
|
# useful for large tables where we don't want individual pages for each item
|
|
|
|
no-links = true
|
|
|
|
|
|
|
|
[pages.a28dba2e7a67448da52f2cd2c641407b]
|
|
|
|
slug = "random-board"
|
|
|
|
no-links = true
|