|
1 | 1 | # -*- coding: utf-8 -*-
|
2 |
| - |
3 | 2 | import time
|
4 |
| - |
5 |
| -# !! This is the configuration of Nikola. !!# |
6 |
| -# !! You should edit it to your liking. !!# |
7 |
| - |
8 |
| - |
9 |
| -# ! Some settings can be different in different languages. |
10 |
| -# ! A comment stating (translatable) is used to denote those. |
11 |
| -# ! There are two ways to specify a translatable setting: |
12 |
| -# ! (a) BLOG_TITLE = "My Blog" |
13 |
| -# ! (b) BLOG_TITLE = {"en": "My Blog", "es": "Mi Blog"} |
14 |
| -# ! Option (a) is there for backwards compatibility and when you don't |
15 |
| -# ! want that setting translated. |
16 |
| -# ! Option (b) should be used for settings that are different in |
17 |
| -# ! different languages. |
18 |
| - |
19 |
| - |
20 |
| -# Data about this site |
21 | 3 | BLOG_AUTHOR = "Your Name" # (translatable)
|
22 | 4 | BLOG_TITLE = "Demo Site" # (translatable)
|
23 |
| -# This is the main URL for your site. It will be used |
24 |
| -# in a prominent link |
25 | 5 | SITE_URL = "https://example.com/"
|
26 |
| -# This is the URL where nikola's output will be deployed. |
27 |
| -# If not set, defaults to SITE_URL |
28 |
| -# BASE_URL = "https://example.com/" |
29 | 6 | BLOG_EMAIL = "joe@demo.site"
|
30 | 7 | BLOG_DESCRIPTION = "This is a demo site for Nikola." # (translatable)
|
31 |
| - |
32 |
| -# Nikola is multilingual! |
33 |
| -# |
34 |
| -# Currently supported languages are: |
35 |
| -# bg Bulgarian |
36 |
| -# ca Catalan |
37 |
| -# cs Czech [ALTERNATIVELY cz] |
38 |
| -# de German |
39 |
| -# el Greek [NOT gr!] |
40 |
| -# en English |
41 |
| -# eo Esperanto |
42 |
| -# es Spanish |
43 |
| -# et Estonian |
44 |
| -# eu Basque |
45 |
| -# fa Persian |
46 |
| -# fi Finnish |
47 |
| -# fr French |
48 |
| -# hi Hindi |
49 |
| -# hr Croatian |
50 |
| -# it Italian |
51 |
| -# ja Japanese [NOT jp!] |
52 |
| -# nb Norwegian Bokmål |
53 |
| -# nl Dutch |
54 |
| -# pt_br Portuguese (Brasil) |
55 |
| -# pl Polish |
56 |
| -# ru Russian |
57 |
| -# sl Slovenian [NOT sl_si!] |
58 |
| -# tr Turkish (Turkey) [NOT tr_tr!] |
59 |
| -# ur Urdu |
60 |
| -# zh_cn Chinese (Simplified) |
61 |
| -# |
62 |
| -# If you want to use Nikola with a non-supported language you have to provide |
63 |
| -# a module containing the necessary translations |
64 |
| -# (cf. the modules at nikola/data/themes/base/messages/). |
65 |
| -# If a specific post is not translated to a language, then the version |
66 |
| -# in the default language will be shown instead. |
67 |
| - |
68 |
| -# What is the default language? |
69 | 8 | DEFAULT_LANG = "en"
|
70 |
| - |
71 |
| -# What other languages do you have? |
72 |
| -# The format is {"translationcode" : "path/to/translation" } |
73 |
| -# the path will be used as a prefix for the generated pages location |
74 | 9 | TRANSLATIONS = {
|
75 | 10 | "en": "",
|
76 | 11 | "pl": "./pl",
|
77 | 12 | }
|
78 |
| - |
79 |
| -# What will translated input files be named like? |
80 |
| - |
81 |
| -# If you have a page something.rst, then something.pl.rst will be considered |
82 |
| -# its Polish translation. |
83 |
| -# (in the above example: path == "something", ext == "rst", lang == "pl") |
84 |
| -# this pattern is also used for metadata: |
85 |
| -# something.meta -> something.pl.meta |
86 |
| - |
87 | 13 | TRANSLATIONS_PATTERN = "{path}.{lang}.{ext}"
|
88 |
| - |
89 |
| -# Links for the sidebar / navigation bar. |
90 |
| -# You should provide a key-value pair for each used language. |
91 |
| -# (the same way you would do with a (translatable) setting.) |
92 | 14 | NAVIGATION_LINKS = {
|
93 | 15 | DEFAULT_LANG: (
|
94 | 16 | ('/archive.html', 'Archives'),
|
95 | 17 | ('/categories/index.html', 'Tags'),
|
96 | 18 | ('/rss.xml', 'RSS'),
|
97 | 19 | ),
|
98 | 20 | }
|
99 |
| - |
100 |
| -# Below this point, everything is optional |
101 |
| - |
102 |
| -# While nikola can select a sensible locale for each language, |
103 |
| -# sometimes explicit control can come handy. |
104 |
| -# In this file we express locales in the string form that |
105 |
| -# python's locales will accept in your OS, by example |
106 |
| -# "en_US.utf8" in unix-like OS, "English_United States" in Windows. |
107 |
| -# LOCALES = dict mapping language --> explicit locale for the languages |
108 |
| -# in TRANSLATIONS. You can ommit one or more keys. |
109 |
| -# LOCALE_FALLBACK = locale to use when an explicit locale is unavailable |
110 |
| -# LOCALE_DEFAULT = locale to use for languages not mentioned in LOCALES; if |
111 |
| -# not set the default Nikola mapping is used. |
112 |
| - |
113 |
| -# POSTS and PAGES contains (wildcard, destination, template) tuples. |
114 |
| -# |
115 |
| -# The wildcard is used to generate a list of reSt source files |
116 |
| -# (whatever/thing.txt). |
117 |
| -# |
118 |
| -# That fragment could have an associated metadata file (whatever/thing.meta), |
119 |
| -# and optionally translated files (example for spanish, with code "es"): |
120 |
| -# whatever/thing.es.txt and whatever/thing.es.meta |
121 |
| -# |
122 |
| -# This assumes you use the default TRANSLATIONS_PATTERN. |
123 |
| -# |
124 |
| -# From those files, a set of HTML fragment files will be generated: |
125 |
| -# cache/whatever/thing.html (and maybe cache/whatever/thing.html.es) |
126 |
| -# |
127 |
| -# These files are combinated with the template to produce rendered |
128 |
| -# pages, which will be placed at |
129 |
| -# output / TRANSLATIONS[lang] / destination / pagename.html |
130 |
| -# |
131 |
| -# where "pagename" is the "slug" specified in the metadata file. |
132 |
| -# |
133 |
| -# The difference between POSTS and PAGES is that POSTS are added |
134 |
| -# to feeds and are considered part of a blog, while PAGES are |
135 |
| -# just independent HTML pages. |
136 |
| -# |
137 |
| - |
138 | 21 | POSTS = (
|
139 | 22 | ("posts/*.rst", "posts", "post.tmpl"),
|
140 | 23 | ("posts/*.txt", "posts", "post.tmpl"),
|
|
143 | 26 | ("pages/*.rst", "pages", "page.tmpl"),
|
144 | 27 | ("pages/*.txt", "pages", "page.tmpl"),
|
145 | 28 | )
|
146 |
| - |
147 |
| -# One or more folders containing files to be copied as-is into the output. |
148 |
| -# The format is a dictionary of "source" "relative destination". |
149 |
| -# Default is: |
150 |
| -# FILES_FOLDERS = {'files': '' } |
151 |
| -# Which means copy 'files' into 'output' |
152 |
| - |
153 |
| -# A mapping of languages to file-extensions that represent that language. |
154 |
| -# Feel free to add or delete extensions to any list, but don't add any new |
155 |
| -# compilers unless you write the interface for it yourself. |
156 |
| -# |
157 |
| -# 'rest' is reStructuredText |
158 |
| -# 'markdown' is MarkDown |
159 |
| -# 'html' assumes the file is html and just copies it |
160 | 29 | COMPILERS = {
|
161 | 30 | "rest": ('.rst', '.txt'),
|
162 | 31 | "markdown": ('.md', '.mdown', '.markdown'),
|
|
175 | 44 | # with many of the others.
|
176 | 45 | # "pandoc": ('.rst', '.md', '.txt'),
|
177 | 46 | }
|
178 |
| - |
179 |
| -# Create by default posts in one file format? |
180 |
| -# Set to False for two-file posts, with separate metadata. |
181 |
| -# ONE_FILE_POSTS = True |
182 |
| - |
183 |
| -# If this is set to True, the DEFAULT_LANG version will be displayed for |
184 |
| -# untranslated posts. |
185 |
| -# If this is set to False, then posts that are not translated to a language |
186 |
| -# LANG will not be visible at all in the pages in that language. |
187 |
| -# Formerly known as HIDE_UNTRANSLATED_POSTS (inverse) |
188 |
| -# SHOW_UNTRANSLATED_POSTS = True |
189 |
| - |
190 |
| -# Paths for different autogenerated bits. These are combined with the |
191 |
| -# translation paths. |
192 |
| - |
193 |
| -# Final locations are: |
194 |
| -# output / TRANSLATION[lang] / TAG_PATH / index.html (list of tags) |
195 |
| -# output / TRANSLATION[lang] / TAG_PATH / tag.html (list of posts for a tag) |
196 |
| -# output / TRANSLATION[lang] / TAG_PATH / tag.xml (RSS feed for a tag) |
197 |
| -# TAG_PATH = "categories" |
198 |
| - |
199 |
| -# If TAG_PAGES_ARE_INDEXES is set to True, each tag's page will contain |
200 |
| -# the posts themselves. If set to False, it will be just a list of links. |
201 |
| -# TAG_PAGES_ARE_INDEXES = True |
202 |
| - |
203 |
| -# Final location for the main blog page and sibling paginated pages is |
204 |
| -# output / TRANSLATION[lang] / INDEX_PATH / index-*.html |
205 |
| -# INDEX_PATH = "" |
206 |
| - |
207 |
| -# Create per-month archives instead of per-year |
208 |
| -# CREATE_MONTHLY_ARCHIVE = False |
209 |
| -# Create one large archive instead of per-year |
210 |
| -# CREATE_SINGLE_ARCHIVE = False |
211 |
| -# Final locations for the archives are: |
212 |
| -# output / TRANSLATION[lang] / ARCHIVE_PATH / ARCHIVE_FILENAME |
213 |
| -# output / TRANSLATION[lang] / ARCHIVE_PATH / YEAR / index.html |
214 |
| -# output / TRANSLATION[lang] / ARCHIVE_PATH / YEAR / MONTH / index.html |
215 |
| -# ARCHIVE_PATH = "" |
216 |
| -# ARCHIVE_FILENAME = "archive.html" |
217 |
| - |
218 |
| -# URLs to other posts/pages can take 3 forms: |
219 |
| -# rel_path: a relative URL to the current page/post (default) |
220 |
| -# full_path: a URL with the full path from the root |
221 |
| -# absolute: a complete URL (that includes the SITE_URL) |
222 |
| -# URL_TYPE = 'rel_path' |
223 |
| - |
224 |
| -# Final location for the blog main RSS feed is: |
225 |
| -# output / TRANSLATION[lang] / RSS_PATH / rss.xml |
226 |
| -# RSS_PATH = "" |
227 |
| - |
228 |
| -# Final location for the blog main Atom feed is: |
229 |
| -# output / TRANSLATION[lang] / ATOM_PATH / index.atom |
230 |
| -# ATOM_PATH = "" |
231 |
| - |
232 |
| -# Number of posts in RSS feeds |
233 |
| -# FEED_LENGTH = 10 |
234 |
| - |
235 |
| -# Slug the Tag URL easier for users to type, special characters are |
236 |
| -# often removed or replaced as well. |
237 |
| -# SLUG_TAG_PATH = True |
238 |
| - |
239 |
| -# A list of redirection tuples, [("foo/from.html", "/bar/to.html")]. |
240 |
| -# |
241 |
| -# A HTML file will be created in output/foo/from.html that redirects |
242 |
| -# to the "/bar/to.html" URL. notice that the "from" side MUST be a |
243 |
| -# relative URL. |
244 |
| -# |
245 |
| -# If you don't need any of these, just set to [] |
246 | 47 | REDIRECTIONS = []
|
247 |
| - |
248 |
| -# Commands to execute to deploy. Can be anything, for example, |
249 |
| -# you may use rsync: |
250 |
| -# "rsync -rav --delete output/ joe@my.site:/srv/www/site" |
251 |
| -# And then do a backup, or run `nikola ping` from the `ping` |
252 |
| -# plugin (`nikola install_plugin ping`). |
253 |
| -# To do manual deployment, set it to [] |
254 |
| -# DEPLOY_COMMANDS = [] |
255 |
| - |
256 |
| -# Where the output site should be located |
257 |
| -# If you don't use an absolute path, it will be considered as relative |
258 |
| -# to the location of conf.py |
259 |
| -# OUTPUT_FOLDER = 'output' |
260 |
| - |
261 |
| -# where the "cache" of partial generated content should be located |
262 |
| -# default: 'cache' |
263 |
| -# CACHE_FOLDER = 'cache' |
264 |
| - |
265 |
| -# Filters to apply to the output. |
266 |
| -# A directory where the keys are either: a file extensions, or |
267 |
| -# a tuple of file extensions. |
268 |
| -# |
269 |
| -# And the value is a list of commands to be applied in order. |
270 |
| -# |
271 |
| -# Each command must be either: |
272 |
| -# |
273 |
| -# A string containing a '%s' which will |
274 |
| -# be replaced with a filename. The command *must* produce output |
275 |
| -# in place. |
276 |
| -# |
277 |
| -# Or: |
278 |
| -# |
279 |
| -# A python callable, which will be called with the filename as |
280 |
| -# argument. |
281 |
| -# |
282 |
| -# By default, there are no filters. |
283 |
| -# |
284 |
| -# Many filters are shipped with Nikola. A list is available in the manual: |
285 |
| -# <https://getnikola.com/handbook.html#post-processing-filters> |
286 |
| -# FILTERS = { |
287 |
| -# ".jpg": ["jpegoptim --strip-all -m75 -v %s"], |
288 |
| -# } |
289 |
| - |
290 |
| -# Expert setting! Create a gzipped copy of each generated file. Cheap server- |
291 |
| -# side optimization for very high traffic sites or low memory servers. |
292 |
| -# GZIP_FILES = False |
293 |
| -# File extensions that will be compressed |
294 |
| -# GZIP_EXTENSIONS = ('.txt', '.htm', '.html', '.css', '.js', '.json', '.xml') |
295 |
| -# Use an external gzip command? None means no. |
296 |
| -# Example: GZIP_COMMAND = "pigz -k {filename}" |
297 |
| -# GZIP_COMMAND = None |
298 |
| -# Make sure the server does not return a "Accept-Ranges: bytes" header for |
299 |
| -# files compressed by this option! OR make sure that a ranged request does not |
300 |
| -# return partial content of another representation for these resources. Do not |
301 |
| -# use this feature if you do not understand what this means. |
302 |
| - |
303 |
| -# Compiler to process LESS files. |
304 |
| -# LESS_COMPILER = 'lessc' |
305 |
| - |
306 |
| -# A list of options to pass to the LESS compiler. |
307 |
| -# Final command is: LESS_COMPILER LESS_OPTIONS file.less |
308 |
| -# LESS_OPTIONS = [] |
309 |
| - |
310 |
| -# Compiler to process Sass files. |
311 |
| -# SASS_COMPILER = 'sass' |
312 |
| - |
313 |
| -# A list of options to pass to the Sass compiler. |
314 |
| -# Final command is: SASS_COMPILER SASS_OPTIONS file.s(a|c)ss |
315 |
| -# SASS_OPTIONS = [] |
316 |
| - |
317 |
| -# ############################################################################# |
318 |
| -# Image Gallery Options |
319 |
| -# ############################################################################# |
320 |
| - |
321 |
| -# Galleries are folders in galleries/ |
322 |
| -# Final location of galleries will be output / GALLERY_PATH / gallery_name |
323 |
| -# GALLERY_PATH = "galleries" |
324 |
| -# THUMBNAIL_SIZE = 180 |
325 |
| -# MAX_IMAGE_SIZE = 1280 |
326 |
| -# USE_FILENAME_AS_TITLE = True |
327 |
| -# EXTRA_IMAGE_EXTENSIONS = [] |
328 |
| -# |
329 |
| -# If set to False, it will sort by filename instead. Defaults to True |
330 |
| -# GALLERY_SORT_BY_DATE = True |
331 |
| - |
332 |
| -# ############################################################################# |
333 |
| -# HTML fragments and diverse things that are used by the templates |
334 |
| -# ############################################################################# |
335 |
| - |
336 |
| -# Data about post-per-page indexes. |
337 |
| -# INDEXES_PAGES defaults to 'old posts, page %d' or 'page %d' (translated), |
338 |
| -# depending on the value of INDEXES_PAGES_MAIN. |
339 |
| -# INDEXES_TITLE = "" # If this is empty, defaults to BLOG_TITLE |
340 |
| -# INDEXES_PAGES = "" # If this is empty, defaults to '[old posts,] page %d' (see above) |
341 |
| -# INDEXES_PAGES_MAIN = False # If True, INDEXES_PAGES is also displayed on |
342 |
| -# # the main (the newest) index page (index.html) |
343 |
| - |
344 |
| -# Name of the theme to use. |
345 | 48 | THEME = "bootblog4"
|
346 |
| - |
347 |
| -# Color scheme to be used for code blocks. If your theme provides |
348 |
| -# "assets/css/code.css" this is ignored. |
349 |
| -# Can be any of autumn borland bw colorful default emacs friendly fruity manni |
350 |
| -# monokai murphy native pastie perldoc rrt tango trac vim vs |
351 |
| -# CODE_COLOR_SCHEME = 'default' |
352 |
| - |
353 |
| -# If you use 'site-reveal' theme you can select several subthemes |
354 |
| -# THEME_REVEAL_CONFIG_SUBTHEME = 'sky' |
355 |
| -# You can also use: beige/serif/simple/night/default |
356 |
| - |
357 |
| -# Again, if you use 'site-reveal' theme you can select several transitions |
358 |
| -# between the slides |
359 |
| -# THEME_REVEAL_CONFIG_TRANSITION = 'cube' |
360 |
| -# You can also use: page/concave/linear/none/default |
361 |
| - |
362 |
| -# date format used to display post dates. |
363 |
| -# (str used by datetime.datetime.strftime) |
364 |
| -# DATE_FORMAT = '%Y-%m-%d %H:%M' |
365 |
| - |
366 |
| -# FAVICONS contains (name, file, size) tuples. |
367 |
| -# Used for create favicon link like this: |
368 |
| -# <link rel="name" href="file" sizes="size"/> |
369 |
| -# For creating favicons, take a look at: |
370 |
| -# http://www.netmagazine.com/features/create-perfect-favicon |
371 |
| -# FAVICONS = { |
372 |
| -# ("icon", "/favicon.ico", "16x16"), |
373 |
| -# ("icon", "/icon_128x128.png", "128x128"), |
374 |
| -# } |
375 |
| - |
376 |
| -# Show only teasers in the index pages? Defaults to False. |
377 |
| -# INDEX_TEASERS = False |
378 |
| - |
379 |
| -# A HTML fragment with the Read more... link. |
380 |
| -# The following tags exist and are replaced for you: |
381 |
| -# {link} A link to the full post page. |
382 |
| -# {read_more} The string “Read more” in the current language. |
383 |
| -# {{ A literal { (U+007B LEFT CURLY BRACKET) |
384 |
| -# }} A literal } (U+007D RIGHT CURLY BRACKET) |
385 |
| -# READ_MORE_LINK = '<p class="more"><a href="{link}">{read_more}…</a></p>' |
386 |
| - |
387 |
| -# A HTML fragment describing the license, for the sidebar. |
388 |
| -# (translatable) |
389 | 49 | LICENSE = ""
|
390 |
| -# I recommend using the Creative Commons' wizard: |
391 |
| -# http://creativecommons.org/choose/ |
392 |
| -# LICENSE = """ |
393 |
| -# <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/ar/"> |
394 |
| -# <img alt="Creative Commons License BY-NC-SA" |
395 |
| -# style="border-width:0; margin-bottom:12px;" |
396 |
| -# src="http://i.creativecommons.org/l/by-nc-sa/2.5/ar/88x31.png"></a>""" |
397 |
| - |
398 |
| -# A small copyright notice for the page footer (in HTML). |
399 |
| -# (translatable) |
400 | 50 | CONTENT_FOOTER = 'Contents © {date} <a href="mailto:{email}">{author}</a> - Powered by <a href="https://getnikola.com/" rel="nofollow">Nikola</a> {license}'
|
401 |
| - |
402 |
| -# Things that will be passed to CONTENT_FOOTER.format(). This is done |
403 |
| -# for translatability, as dicts are not formattable. Nikola will |
404 |
| -# intelligently format the setting properly. |
405 |
| -# The setting takes a dict. The keys are languages. The values are |
406 |
| -# tuples of tuples of positional arguments and dicts of keyword arguments |
407 |
| -# to format(). For example, {'en': (('Hello'), {'target': 'World'})} |
408 |
| -# results in CONTENT_FOOTER['en'].format('Hello', target='World'). |
409 |
| -# WARNING: If you do not use multiple languages with CONTENT_FOOTER, this |
410 |
| -# still needs to be a dict of this format. (it can be empty if you |
411 |
| -# do not need formatting) |
412 |
| -# (translatable) |
413 | 51 | CONTENT_FOOTER_FORMATS = {
|
414 | 52 | DEFAULT_LANG: (
|
415 | 53 | (),
|
|
421 | 59 | }
|
422 | 60 | )
|
423 | 61 | }
|
424 |
| - |
425 |
| -# To use comments, you can choose between different third party comment |
426 |
| -# systems, one of "disqus", "livefyre", "intensedebate", "moot", |
427 |
| -# "facebook" or "isso" |
428 | 62 | COMMENT_SYSTEM = "disqus"
|
429 |
| -# And you also need to add your COMMENT_SYSTEM_ID which |
430 |
| -# depends on what comment system you use. The default is |
431 |
| -# "nikolademo" which is a test account for Disqus. More information |
432 |
| -# is in the manual. |
433 | 63 | COMMENT_SYSTEM_ID = "nikolademo"
|
434 |
| - |
435 |
| -# Create index.html for page folders? |
436 |
| -# PAGE_INDEX = False |
437 |
| -# Enable comments on page pages? |
438 |
| -# COMMENTS_IN_PAGES = False |
439 |
| -# Enable comments on picture gallery pages? |
440 |
| -# COMMENTS_IN_GALLERIES = False |
441 |
| - |
442 |
| -# What file should be used for directory indexes? |
443 |
| -# Defaults to index.html |
444 |
| -# Common other alternatives: default.html for IIS, index.php |
445 |
| -# INDEX_FILE = "index.html" |
446 |
| - |
447 |
| -# If a link ends in /index.html, drop the index.html part. |
448 |
| -# http://mysite/foo/bar/index.html => http://mysite/foo/bar/ |
449 |
| -# (Uses the INDEX_FILE setting, so if that is, say, default.html, |
450 |
| -# it will instead /foo/default.html => /foo) |
451 |
| -# (Note: This was briefly STRIP_INDEX_HTML in v 5.4.3 and 5.4.4) |
452 |
| -# Default = False |
453 |
| -# STRIP_INDEXES = False |
454 |
| - |
455 |
| -# Should the sitemap list directories which only include other directories |
456 |
| -# and no files. |
457 |
| -# Default to True |
458 |
| -# If this is False |
459 |
| -# e.g. /2012 includes only /01, /02, /03, /04, ...: don't add it to the sitemap |
460 |
| -# if /2012 includes any files (including index.html)... add it to the sitemap |
461 |
| -# SITEMAP_INCLUDE_FILELESS_DIRS = True |
462 |
| - |
463 |
| -# Instead of putting files in <slug>.html, put them in |
464 |
| -# <slug>/index.html. Also enables STRIP_INDEXES |
465 |
| -# This can be disabled on a per-page/post basis by adding |
466 |
| -# .. pretty_url: False |
467 |
| -# to the metadata |
468 |
| -# PRETTY_URLS = False |
469 |
| - |
470 |
| -# If True, publish future dated posts right away instead of scheduling them. |
471 |
| -# Defaults to False. |
472 |
| -# FUTURE_IS_NOW = False |
473 |
| - |
474 |
| -# If True, future dated posts are allowed in deployed output |
475 |
| -# Only the individual posts are published/deployed; not in indexes/sitemap |
476 |
| -# Generally, you want FUTURE_IS_NOW and DEPLOY_FUTURE to be the same value. |
477 |
| -# DEPLOY_FUTURE = False |
478 |
| -# If False, draft posts will not be deployed |
479 |
| -# DEPLOY_DRAFTS = True |
480 |
| - |
481 |
| -# Allows scheduling of posts using the rule specified here (new_post -s) |
482 |
| -# Specify an iCal Recurrence Rule: http://www.kanzaki.com/docs/ical/rrule.html |
483 |
| -# SCHEDULE_RULE = '' |
484 |
| -# If True, use the scheduling rule to all posts by default |
485 |
| -# SCHEDULE_ALL = False |
486 |
| -# If True, schedules post to today if possible, even if scheduled hour is over |
487 |
| -# SCHEDULE_FORCE_TODAY = False |
488 |
| - |
489 |
| -# Do you want a add a Mathjax config file? |
490 |
| -# MATHJAX_CONFIG = "" |
491 |
| - |
492 |
| -# If you are using the compile-ipynb plugin, just add this one: |
493 |
| -# MATHJAX_CONFIG = """ |
494 |
| -# <script type="text/x-mathjax-config"> |
495 |
| -# MathJax.Hub.Config({ |
496 |
| -# tex2jax: { |
497 |
| -# inlineMath: [ ['$','$'], ["\\\(","\\\)"] ], |
498 |
| -# displayMath: [ ['$$','$$'], ["\\\[","\\\]"] ] |
499 |
| -# }, |
500 |
| -# displayAlign: 'left', // Change this to 'center' to center equations. |
501 |
| -# "HTML-CSS": { |
502 |
| -# styles: {'.MathJax_Display': {"margin": 0}} |
503 |
| -# } |
504 |
| -# }); |
505 |
| -# </script> |
506 |
| -# """ |
507 |
| - |
508 |
| -# Do you want to customize the nbconversion of your IPython notebook? |
509 |
| -# IPYNB_CONFIG = {} |
510 |
| -# With the following example configuracion you can use a custom jinja template |
511 |
| -# called `toggle.tpl` which has to be located in your site/blog main folder: |
512 |
| -# IPYNB_CONFIG = {'Exporter':{'template_file': 'toggle'}} |
513 |
| - |
514 |
| -# What MarkDown extensions to enable? |
515 |
| -# You will also get gist, nikola and podcast because those are |
516 |
| -# done in the code, hope you don't mind ;-) |
517 |
| -# MARKDOWN_EXTENSIONS = ['fenced_code', 'codehilite'] |
518 |
| - |
519 |
| -# Social buttons. This is sample code for AddThis (which was the default for a |
520 |
| -# long time). Insert anything you want here, or even make it empty. |
521 |
| -# (translatable) |
522 |
| -# SOCIAL_BUTTONS_CODE = """ |
523 |
| -# <!-- Social buttons --> |
524 |
| -# <div id="addthisbox" class="addthis_toolbox addthis_peekaboo_style addthis_default_style addthis_label_style addthis_32x32_style"> |
525 |
| -# <a class="addthis_button_more">Share</a> |
526 |
| -# <ul><li><a class="addthis_button_facebook"></a> |
527 |
| -# <li><a class="addthis_button_google_plusone_share"></a> |
528 |
| -# <li><a class="addthis_button_linkedin"></a> |
529 |
| -# <li><a class="addthis_button_twitter"></a> |
530 |
| -# </ul> |
531 |
| -# </div> |
532 |
| -# <script src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4f7088a56bb93798"></script> |
533 |
| -# <!-- End of social buttons --> |
534 |
| -# """ |
535 |
| - |
536 |
| -# Show link to source for the posts? |
537 |
| -# Formerly known as HIDE_SOURCELINK (inverse) |
538 |
| -# SHOW_SOURCELINK = True |
539 |
| -# Copy the source files for your pages? |
540 |
| -# Setting it to False implies SHOW_SOURCELINK = False |
541 |
| -# COPY_SOURCES = True |
542 |
| - |
543 |
| -# Modify the number of Post per Index Page |
544 |
| -# Defaults to 10 |
545 |
| -# INDEX_DISPLAY_POST_COUNT = 10 |
546 |
| - |
547 |
| -# RSS_LINK is a HTML fragment to link the RSS or Atom feeds. If set to None, |
548 |
| -# the base.tmpl will use the feed Nikola generates. However, you may want to |
549 |
| -# change it for a feedburner feed or something else. |
550 |
| -# RSS_LINK = None |
551 |
| - |
552 |
| -# Show only teasers in the RSS feed? Default to True |
553 |
| -# RSS_TEASERS = True |
554 |
| - |
555 |
| -# Strip HTML in the RSS feed? Default to False |
556 |
| -# RSS_PLAIN = False |
557 |
| - |
558 |
| -# A search form to search this site, for the sidebar. You can use a google |
559 |
| -# custom search (http://www.google.com/cse/) |
560 |
| -# Or a duckduckgo search: https://duckduckgo.com/search_box.html |
561 |
| -# Default is no search form. |
562 |
| -# (translatable) |
563 |
| -# SEARCH_FORM = "" |
564 |
| -# |
565 |
| -# This search form works for any site and looks good in the "site" theme where |
566 |
| -# it appears on the navigation bar: |
567 |
| -# |
568 |
| -# SEARCH_FORM = """ |
569 |
| -# <!-- Custom search --> |
570 |
| -# <form method="get" id="search" action="//duckduckgo.com/" |
571 |
| -# class="navbar-form pull-left"> |
572 |
| -# <input type="hidden" name="sites" value="%s"/> |
573 |
| -# <input type="hidden" name="k8" value="#444444"/> |
574 |
| -# <input type="hidden" name="k9" value="#D51920"/> |
575 |
| -# <input type="hidden" name="kt" value="h"/> |
576 |
| -# <input type="text" name="q" maxlength="255" |
577 |
| -# placeholder="Search…" class="span2" style="margin-top: 4px;"/> |
578 |
| -# <input type="submit" value="DuckDuckGo Search" style="visibility: hidden;" /> |
579 |
| -# </form> |
580 |
| -# <!-- End of custom search --> |
581 |
| -# """ % SITE_URL |
582 |
| -# |
583 |
| -# If you prefer a google search form, here's an example that should just work: |
584 |
| -# SEARCH_FORM = """ |
585 |
| -# <!-- Custom search with google--> |
586 |
| -# <form id="search" action="//www.google.com/search" method="get" class="navbar-form pull-left"> |
587 |
| -# <input type="hidden" name="q" value="site:%s" /> |
588 |
| -# <input type="text" name="q" maxlength="255" results="0" placeholder="Search"/> |
589 |
| -# </form> |
590 |
| -# <!-- End of custom search --> |
591 |
| -# """ % SITE_URL |
592 |
| - |
593 |
| -# Also, there is a local search plugin you can use, based on Tipue, but it requires setting several |
594 |
| -# options: |
595 |
| - |
596 |
| -# SEARCH_FORM = """ |
597 |
| -# <span class="navbar-form pull-left"> |
598 |
| -# <input type="text" id="tipue_search_input"> |
599 |
| -# </span>""" |
600 |
| -# |
601 |
| -# BODY_END = """ |
602 |
| -# <script src="/assets/js/tipuesearch_set.js"></script> |
603 |
| -# <script src="/assets/js/tipuesearch.js"></script> |
604 |
| -# <script> |
605 |
| -# $(document).ready(function() { |
606 |
| -# $('#tipue_search_input').tipuesearch({ |
607 |
| -# 'mode': 'json', |
608 |
| -# 'contentLocation': '/assets/js/tipuesearch_content.json', |
609 |
| -# 'showUrl': false |
610 |
| -# }); |
611 |
| -# }); |
612 |
| -# </script> |
613 |
| -# """ |
614 |
| - |
615 |
| -# EXTRA_HEAD_DATA = """ |
616 |
| -# <link rel="stylesheet" type="text/css" href="/assets/css/tipuesearch.css"> |
617 |
| -# <div id="tipue_search_content" style="margin-left: auto; margin-right: auto; padding: 20px;"></div> |
618 |
| -# """ |
619 |
| -# ENABLED_EXTRAS = ['local_search'] |
620 |
| -# |
621 |
| - |
622 |
| - |
623 |
| -# Use content distribution networks for jquery and twitter-bootstrap css and js |
624 |
| -# If this is True, jquery and html5shiv are served from the Google CDN and |
625 |
| -# Bootstrap is served from BootstrapCDN (provided by MaxCDN) |
626 |
| -# Set this to False if you want to host your site without requiring access to |
627 |
| -# external resources. |
628 |
| -# USE_CDN = False |
629 |
| - |
630 |
| -# Extra things you want in the pages HEAD tag. This will be added right |
631 |
| -# before </head> |
632 |
| -# (translatable) |
633 |
| -# EXTRA_HEAD_DATA = "" |
634 |
| -# Google Analytics or whatever else you use. Added to the bottom of <body> |
635 |
| -# in the default template (base.tmpl). |
636 |
| -# (translatable) |
637 |
| -# BODY_END = "" |
638 |
| - |
639 |
| -# The possibility to extract metadata from the filename by using a |
640 |
| -# regular expression. |
641 |
| -# To make it work you need to name parts of your regular expression. |
642 |
| -# The following names will be used to extract metadata: |
643 |
| -# - title |
644 |
| -# - slug |
645 |
| -# - date |
646 |
| -# - tags |
647 |
| -# - link |
648 |
| -# - description |
649 |
| -# |
650 |
| -# An example re is the following: |
651 |
| -# '(?P<date>\d{4}-\d{2}-\d{2})-(?P<slug>.*)-(?P<title>.*)\.md' |
652 |
| -# FILE_METADATA_REGEXP = None |
653 |
| - |
654 |
| -# Additional metadata that is added to a post when creating a new_post |
655 |
| -# ADDITIONAL_METADATA = {} |
656 |
| - |
657 |
| -# Nikola supports Twitter Card summaries / Open Graph. |
658 |
| -# Twitter cards make it possible for you to attach media to Tweets |
659 |
| -# that link to your content. |
660 |
| -# |
661 |
| -# IMPORTANT: |
662 |
| -# Please note, that you need to opt-in for using Twitter Cards! |
663 |
| -# To do this please visit |
664 |
| -# https://dev.twitter.com/form/participate-twitter-cards |
665 |
| -# |
666 |
| -# Uncomment and modify to following lines to match your accounts. |
667 |
| -# Specifying the id for either 'site' or 'creator' will be preferred |
668 |
| -# over the cleartext username. Specifying an ID is not necessary. |
669 |
| -# Displaying images is currently not supported. |
670 |
| -# TWITTER_CARD = { |
671 |
| -# # 'use_twitter_cards': True, # enable Twitter Cards / Open Graph |
672 |
| -# # 'site': '@website', # twitter nick for the website |
673 |
| -# # 'site:id': 123456, # Same as site, but the website's Twitter user ID |
674 |
| -# # instead. |
675 |
| -# # 'creator': '@username', # Username for the content creator / author. |
676 |
| -# # 'creator:id': 654321, # Same as creator, but the Twitter user's ID. |
677 |
| -# } |
678 |
| - |
679 |
| - |
680 |
| -# Post's dates are considered in UTC by default, if you want to use |
681 |
| -# another time zone, please set TIMEZONE to match. Check the available |
682 |
| -# list from Wikipedia: |
683 |
| -# http://en.wikipedia.org/wiki/List_of_tz_database_time_zones |
684 |
| -# (eg. 'Europe/Zurich') |
685 |
| -# Also, if you want to use a different time zone in some of your posts, |
686 |
| -# you can use W3C-DTF Format (ex. 2012-03-30T23:00:00+02:00) |
687 |
| -# |
688 |
| -# TIMEZONE = 'UTC' |
689 |
| - |
690 |
| -# If webassets is installed, bundle JS and CSS to make site loading faster |
691 |
| -# USE_BUNDLES = True |
692 |
| - |
693 |
| -# Plugins you don't want to use. Be careful :-) |
694 |
| -# DISABLED_PLUGINS = ["render_galleries"] |
695 |
| - |
696 |
| -# Add the absolute paths to directories containing plugins to use them. |
697 |
| -# For example, the `plugins` directory of your clone of the Nikola plugins |
698 |
| -# repository. |
699 |
| -# EXTRA_PLUGINS_DIRS = [] |
700 |
| - |
701 |
| -# Experimental plugins - use at your own risk. |
702 |
| -# They probably need some manual adjustments - please see their respective |
703 |
| -# readme. |
704 |
| -# ENABLED_EXTRAS = [ |
705 |
| -# 'planetoid', |
706 |
| -# 'ipynb', |
707 |
| -# 'local_search', |
708 |
| -# 'render_mustache', |
709 |
| -# ] |
710 |
| - |
711 |
| -# List of regular expressions, links matching them will always be considered |
712 |
| -# valid by "nikola check -l" |
713 |
| -# LINK_CHECK_WHITELIST = [] |
714 |
| - |
715 |
| -# If set to True, enable optional hyphenation in your posts (requires pyphen) |
716 |
| -# HYPHENATE = False |
717 |
| - |
718 |
| -# The <hN> tags in HTML generated by certain compilers (reST/Markdown) |
719 |
| -# will be demoted by that much (1 → h1 will become h2 and so on) |
720 |
| -# This was a hidden feature of the Markdown and reST compilers in the |
721 |
| -# past. Useful especially if your post titles are in <h1> tags too, for |
722 |
| -# example. |
723 |
| -# (defaults to 1.) |
724 |
| -# DEMOTE_HEADERS = 1 |
725 |
| - |
726 |
| -# Templates will use those filters, along with the defaults. |
727 |
| -# Consult your engine's documentation on filters if you need help defining |
728 |
| -# those. |
729 |
| -# TEMPLATE_FILTERS = {} |
730 |
| - |
731 |
| -# Put in global_context things you want available on all your templates. |
732 |
| -# It can be anything, data, functions, modules, etc. |
733 | 64 | GLOBAL_CONTEXT = {}
|
0 commit comments