-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.toml
252 lines (225 loc) · 17.2 KB
/
config.toml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
base_url = "https://eugenesvk.github.io/kbdHelix"
title = "modifew" # used in feeds
description = "modifew is a text editor keymap that maps the most frequent commands to the best keys and replaces (hold) modifiers with (tap) key chords (Helix)" # used in feeds
highlight_theme = true # enable syntax highlighting in a theme
default_language = "en" # used in feeds
compile_sass = true # auto compile all Sass files in the sass directory
build_search_index = false # build a search index to be used later on by a JavaScript library
theme = "abridge" #
output_dir = "www" # default output directory `public`
preserve_dotfiles_in_output = true # dotfiles @ output dir. Prevents the dir deletion on rebuilds
minify_html = false #
ignored_content = ['*.tmpl'] # glob pattern list to ignore assets
generate_feed = false # When set to "true", a feed is automatically generated.
feed_filename = "atom.xml" # |atom¦rss¦ used as the template filename, too
# feed_limit = 20 # № articles to include in the feedб ∞ if not set
hard_link_static = false # `static` dir files are hard-linked (helps with large files)
taxonomies = [] # feed taxonomies and their defaults
#[{name="tags" , #each tag will have its own feed
# feed=true}
# {name="tags"} , # you can have taxonomies with the same name in multiple languages
# {name="categories" , # 5 items per page for a term
# paginate_by= 5} ,
# {name="authors"} , # Basic definition: no feed or pagination ]#
[markdown]
highlight_code = true # enable code blocks' syntax highlighting
extra_syntaxes_and_themes = ["themes/code_highlight"] # dir to search for extra `.sublime-syntax` `.tmTheme`
highlight_theme = "css" # code highlighting theme
render_emoji = false # :smile: => 😄
external_links_target_blank = true # open external links in a new tab
external_links_no_follow = false # set rel="nofollow" for all external links
external_links_no_referrer = false # set rel="noreferrer" for all external links
smart_punctuation = false # ...→… ""→“” etc.
[link_checker]
skip_prefixes = [ # Skip link checking for external URLs that start with these prefixes
"http://[2001:db8::]/" , #
] #
skip_anchor_prefixes = [ # Skip anchor checking for external URLs that start with these prefixes
"https://caniuse.com/" , #
] #
internal_level = "error" # |error¦warn¦ Treat internal link problems
external_level = "error" # |error¦warn¦ Treat external link problems
[slugify] # Defaults to everything being a slug
paths = "safe"
taxonomies = "on"
anchors = "off"
paths_keep_dates = false # remove date prefixes for page path slugs
#true content/posts/2016-10-08_a-post-with-dates.md => posts/a-post-with-dates
#false content/posts/2016-10-08_a-post-with-dates.md => posts/2016-10-08-a-post-with-dates
[search]
include_title = true # include in the index: page/section title
include_description = true # ... description
include_path = false # ... path
include_content = true # ... rendered
# truncate_content_length = 100 # char№ to truncate the content to (if a lot of pages and the index would become too big to load on the site)
index_format = "elasticlunr_javascript" # |_javascript¦_json¦ search index format
[translations] # Optional translation object for the default language
# title = "Un titre" # if default_language="fr"
[languages] # Additional languages definition and language specific configs
# title, description, generate_feed, feed_filename, taxonomies, build_search_index as well as its own search configuration and translations
# [languages.fr]
# title = "Mon blog"
# generate_feed = true
# taxonomies = [
# {name = "auteurs"},
# {name = "tags"}, ]
# build_search_index = false
[extra] # custom variables {{config.extra.VAR}} in templates
highlight_theme = true # enable syntax highlighting in a theme
# uglyurls = true # [email protected] → local build
language_code = "en-US" #
title_separator = "|" # between title and title_addition | - _, "" to disable
title_addition = "Ergonomic editor keymap" # comment out to always set the page title exactly (bad SEO)
recent = true # TOC / index
recent_items = 9 #
author = "es" # Put Your Name here
title_size_index = "s85" #
meta_index = {position="bottom",size="s90",author=false,readtime=false,readstring="min" ,date=true,categories_tags=true,divider=""}
meta_post = {position="top" ,size="s95",author=true ,readtime=false,readstring="minread",date=true,categories_tags=true,divider=""}
footer_size = "s90" #
footer_credit = true #
#footer_credit_override = '<p class="s90">Powered by <a href="https://www.getzola.org/" target="_blank">Zola</a> & <a href="https://github.com/Jieiku/abridge/" target="_blank">Abridge</a></p>'
# size : 70–95(Δ5)¦false(full size)
# position : top¦bottom¦both¦false(hidden)
# divider : "·" "•" " "
# logo = { file="logo.svg", width="32", height="32", alt="Abridge", text="bridge" }
# textlogo = '<font color="#f90">A</font>bridge'
# textlogo = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="#f90" viewBox="0 0 96 96" width="32" height="32"><path stroke-width="14" d="M14 99 46 7h4l32 92"/><path stroke-width="9" d="M-3 82c43-26 59-26 102 0"/><path stroke-linecap="round" stroke-width="1.5" d="M94 72v7m-5-9.8v7m-5-9.8v7.1M79 64v7M63 57.7v7m-5-8.2v7m-5-7.8v7m-5-7.2v7m-5-6.7v7m-5-6.3v7m-5-5.8v7M17 64v7m-5-4.6v7m-5-4.2v7M2 72v7"/></svg>bridge'
sitedesc = false # enables or disables the display of the site description below the logo
#copyright_start_year = 2023 # optional
#copyright_end_year = 2023 # optional, recommend leaving unset, zola build will set this to current year by default
headhr = false # show or hide horizontal rule below header
foothr = false # show or hide horizontal rule above footer
menu = [ #blank=open@same tab
{url="/modifew/" ,name="⌂" ,slash=true ,blank=false} ,
# {url="/posts/" ,name="Posts" ,slash=true ,blank=false} ,
# {url="/categories/" ,name="Categories" ,slash=true ,blank=false} ,
# {url="/tags/" ,name="Tags" ,slash=true ,blank=false} ,
] #
menu_footer = [ #
{url="/modifew/" ,name="Design" ,slash=true ,blank=false} ,
{url="/modifew/cheat-sheets/all/" ,name="All" ,slash=true ,blank=false} ,
{url="/modifew/cheat-sheets/m1NOR/" ,name="Normal" ,slash=true ,blank=false} ,
{url="/modifew/cheat-sheets/m2INS/" ,name="Insert" ,slash=true ,blank=false} ,
{url="/modifew/cheat-sheets/m3SEL/" ,name="Select" ,slash=true ,blank=false} ,
{url="/modifew/cheat-sheets/nGoTo/" ,name="GoTo" ,slash=true ,blank=false} ,
{url="/modifew/cheat-sheets/nSpace/" ,name="Space" ,slash=true ,blank=false} ,
{url="/modifew/cheat-sheets/nView/" ,name="Match" ,slash=true ,blank=false} ,
{url="/modifew/cheat-sheets/nMatch/" ,name="View" ,slash=true ,blank=false} ,
{url="/modifew/cheat-sheets/nWindow/" ,name="Window" ,slash=true ,blank=false} ,
{url="/modifew/cheat-sheets/nUnimpaired/" ,name="nUnimpaired" ,slash=true ,blank=false} ,
{url="/sitemap.xml" ,name="Sitemap" ,slash=false ,blank=true } ,
]
# Security Headers: most can only be set by your webserver (Nginx, Apache), but can load a few ↓ as meta tags
# observatory.mozilla.org csp-evaluator.withgoogle.com
security_header_referrer = "strict-origin-when-cross-origin"
security_header_csp = "default-src 'none'; object-src 'none'; base-uri 'self'; manifest-src 'self'; connect-src 'self' ws:; form-action 'self'; script-src 'self'; img-src 'self' data: cdn.cloudflare.com; frame-src 'self' www.youtube-nocookie.com player.vimeo.com; media-src 'self' data: cdn.cloudflare.com www.youtube-nocookie.com player.vimeo.com; font-src 'self' data: cdn.cloudflare.com cdn.jsdelivr.net fonts.gstatic.com; style-src 'self' 'unsafe-inline' cdn.cloudflare.com cdn.jsdelivr.net fonts.googleapis.com;"
# Resource Files
#———————————————
integrity = true # false for dev
js_bundle = false # multiple javascript files combined into a single file
js_switcher = true #
search_library = false # |false|elasticlunr¦tinysearch¦stork¦
js_search_facade = true # Do not load search until user interaction with search
# js_search_index = "search_index.en.json" # Separate Always, generated each build
# js_prestyle = "js/prestyle.js" # Bundleable - used to preload: FontAwesome, Katex, external Google Fonts
js_codecopy = [] # |"js/codecopy.js"| Bundleable — copy code block to clipboard button
js_email = "js/email.js" # Bundleable
js_theme = "js/theme.min.js" # Separate Always, comment out if using -auto/-light/-dark stylesheet (required for switcher)
js_themeButton = "js/theme_button.js" # Bundleable
# Switcher comment this block out if NOT using switcher
stylesheets = [ ] # Use manual import
# stylesheets = [ "abridge-switcher.css" ] # Orange Automatic Dark /Light Theme based on browser/system preference with switcher
# stylesheets = [ "abridge-blue-switcher.css" ] # Blue Automatic Night/Light Theme based on browser/system preference with switcher
# stylesheets = [ "abridge.css" ] # BlueShade Automatic Night/Light Theme based on browser/system preference with switcher
#stylesheets = [ "abridge-switcher.css", "font.css" ] # include your own font!
#stylesheets = [ "abridge-switcher.css", "iconfont.css" ] # include your own font icons!
#stylesheets = [ "abridge-switcher.css", "font.css", "iconfont.css" ] # include your own font, and font icons!
# No Switcher #
#stylesheets = [ "abridge.css" ] # Orange Automatic Dark/Light Theme based on browser/system preference
#stylesheets = [ "abridge-blue.css" ] # Blue Automatic Night/Light Theme based on browser/system preference
#stylesheets = [ "abridge-blueshade.css" ] # BlueShade Automatic Night/Light Theme based on browser/system preference
#stylesheets = [ "abridge-dark.css" ] # Orange Dark Theme
#stylesheets = [ "abridge-light.css" ] # Orange Light Theme
#stylesheets = [ "abridge-blue-dark.css" ] # Blue Dark Theme
#stylesheets = [ "abridge-blue-light.css" ] # Blue Light Theme
#stylesheets = [ "abridge-blueshade-dark.css" ] # BlueShade Dark Theme
#stylesheets = [ "abridge-blueshade-light.css" ] # BlueShade Light Theme
#stylesheets = [ "abridge.css", "extra.css" ] # example loading extra css
#stylesheets = [ "abridge.css", "syntax/syntax-abridge.css" ]
banner = "banner.png" # Used as default image for OpenGraph/Twitter if page specific image is undefined
# favicons # comment out a line to disable loading some or all of these
# favicon_theme_color = "#333333" #
# favicon_ms_color = "#333333" #
# favicon_webmanifest = "site.webmanifest" # Used for android-chrome-512x512.png and android-chrome-192x192.png
# favicon_mask = "safari-pinned-tab.svg" # safari-pinned-tab.svg
# favicon_mask_color = "#ff9900" #
# favicon180 = "apple-touch-icon.png" # apple-touch-icon.png
# favicon32 = "favicon-32x32.png" # favicon-32x32.png
# favicon16 = "favicon-16x16.png" # favicon-16x16.png
icon_search = "svgs search" # Search button in search box
icon_adjust = "svgs adjust" # Theme Switcher button in top menu (add class svgh to change colors on hover)
icon_first = "svgs svgh angll" # Pagination First Page
icon_prev = "svgs svgh angl" # Pagination Previous Page
icon_next = "svgs svgh angr" # Pagination Next Page
icon_last = "svgs svgh angrr" # Pagination Last Page
icon_top = "svgs svgh angu" # Back to Top Button
#fontawesome = "https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css"
# Icons, by default fontawesome classes, but you can specify any icon you want here
#icon_read = "svgs fa-solid fa-glasses" # displayed in metadata on index and below title on page
#icon_date = "svgs fa-solid fa-calendar" # displayed in metadata on index and below title on page
#icon_info = "svgs fa-solid fa-circle-info" # displayed in metadata on index and below title on page for categories/tag
#icon_author = "svgs fa-solid fa-pen-fancy" # displayed in metadata on index and below title on page
# For externally loaded Fonts, make sure to include the FULL url including the http/https prefix
#fonts = [ {url = "https://fonts.googleapis.com/css?family=Montserrat:400,700,italic|Fira+Code:400,italic"} ]
# Local fonts are defined in the css, defining them here only adds the preload tag to the head. Preload will eliminate Content Layout Shift, but will hurt with page load time (not recommended)
#fonts = [
# {url = "font/FiraCode.woff2" },
# {url = "font/Roboto.woff2" },
# {url = "font/Roboto-Italic.woff2" },
# {url = "font/Roboto-Bold.woff2" },
#]
math = false # katex math js library, used to to render mathematical notations, requires javascript
math_auto_render = false #
#katex_css = "https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" # Fonts - use remote fonts
#katex_js = "https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js"
#katex_autorender_js = "https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js"
#mathtex_js = "https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/mathtex-script-type.min.js"
katex_css = "katex.min.css" # Fonts - to load the css locally, you also need to have all the fonts.
katex_js = "katex.min.js" # use local js, so that we dont have to whitelist cdn.jsdelivr.net for script src in CSP
mathtex_js = "mathtex-script-type.min.js" # use local js, so that we dont have to whitelist cdn.jsdelivr.net for script src in CSP
katex_autorender_js = "auto-render.min.js" #
katex_options = "katexoptions.js" #
katex_bundle = "katexbundle.min.js" #
# meta/seo/analytic tags
#———————————————————————
keywords = "keymap, keyboard, helix, layout, ergonomic, text, editor" # used for the primary site index
# twitter = "your-user-name" # used for twitter related
google = "L5kiDl-13W2rjaTemS2IV_etfpiQ_u4za0rufj5iFcg"
# bing = ""
seo = true # seo-related meta tags: opengraph, facebook, twitter
[extra.social] # Footer social links; full options listed in macros/social.html
feed = true
mail_encode = true # Ofuscate email, js used to decode it at page load
# mail = "[email protected]" #
# mastodon = "@your-user-name" #
# element = "matrix.example.com" #
# #matrix = "matrix.example.com" #
# buymeacoffee = "your-user-name" #
# discord = "your-discord" # Everything after https://discord.com/ eg: invite/my-server *or* servers/my-server-id
# twitter = "your-user-name" #
# facebook = "your-user-name" #
# linkedin = "your-user-name" #
# gitlab = "your-user-name" #
# github = "your-user-name" #
# codeberg = "your-user-name" # Everything after https://codeberg.org/ eg: username *or* username/repository
# github_sponsor = "your-user-name" #
# bitbucket = "your-user-name" #
# python = "your-user-name" #
# docker = "your-user-name" #
# stack = "your-user-name" #
# instagram = "your-user-name" #
# pinterest = "your-user-name" #
# twitch = "your-user-name" #
# youtube = "channel/your-channel-id" #
# researchgate = "your-profile-id" #