spacepaste

  1.  
  2. $ cat conf.py
  3. # -*- coding: utf-8 -*-
  4. from __future__ import unicode_literals
  5. import time
  6. # ! Some settings can be different in different languages.
  7. # ! A comment stating (translatable) is used to denote those.
  8. # ! There are two ways to specify a translatable setting:
  9. # ! (a) BLOG_TITLE = "My Blog"
  10. # ! (b) BLOG_TITLE = {"en": "My Blog", "es": "Mi Blog"}
  11. # ! Option (a) is used when you don't want that setting translated.
  12. # ! Option (b) is used for settings that are different in different languages.
  13. # Data about this site
  14. BLOG_AUTHOR = "Jonas Stein" # (translatable)
  15. #BLOG_TITLE = "Jonas Stein" # (translatable)
  16. BLOG_TITLE = {"en": "Jonas Stein's Blog", "de": "Blog von Jonas Stein"}
  17. # This is the main URL for your site. It will be used
  18. # in a prominent link. Don't forget the protocol (http/https)!
  19. SITE_URL = "http://jonasstein.de/"
  20. # This is the URL where Nikola's output will be deployed.
  21. # If not set, defaults to SITE_URL
  22. # BASE_URL = "http://jonasstein.de/"
  23. BLOG_EMAIL = "news@jonasstein.de"
  24. BLOG_DESCRIPTION = "Jonas Stein" # (translatable)
  25. # If you want to use Nikola with a non-supported language you have to provide
  26. # a module containing the necessary translations
  27. # (cf. the modules at nikola/data/themes/base/messages/).
  28. # If a specific post is not translated to a language, then the version
  29. # in the default language will be shown instead.
  30. # What is the default language?
  31. DEFAULT_LANG = "de"
  32. # What other languages do you have?
  33. # The format is {"translationcode" : "path/to/translation" }
  34. # the path will be used as a prefix for the generated pages location
  35. TRANSLATIONS = {
  36. DEFAULT_LANG: "",
  37. # Example for another language:
  38. # "es": "./es",
  39. }
  40. # What will translated input files be named like?
  41. # If you have a page something.rst, then something.pl.rst will be considered
  42. # its Polish translation.
  43. # (in the above example: path == "something", ext == "rst", lang == "pl")
  44. # this pattern is also used for metadata:
  45. # something.meta -> something.pl.meta
  46. TRANSLATIONS_PATTERN = "{path}.{lang}.{ext}"
  47. # Links for the sidebar / navigation bar. (translatable)
  48. # This is a dict. The keys are languages, and values are tuples.
  49. #
  50. # For regular links:
  51. # ('https://getnikola.com/', 'Nikola Homepage')
  52. #
  53. # For submenus:
  54. # (
  55. # (
  56. # ('https://apple.com/', 'Apple'),
  57. # ('https://orange.com/', 'Orange'),
  58. # ),
  59. # 'Fruits'
  60. # )
  61. #
  62. # WARNING: Support for submenus is theme-dependent.
  63. # Only one level of submenus is supported.
  64. # WARNING: Some themes, including the default Bootstrap 3 theme,
  65. # may present issues if the menu is too large.
  66. # (in bootstrap3, the navbar can grow too large and cover contents.)
  67. # WARNING: If you link to directories, make sure to follow
  68. # ``STRIP_INDEXES``. If it’s set to ``True``, end your links
  69. # with a ``/``, otherwise end them with ``/index.html`` — or
  70. # else they won’t be highlighted when active.
  71. NAVIGATION_LINKS = {
  72. DEFAULT_LANG: (
  73. ("/archive.html", "Archive"),
  74. ("/categories/index.html", "Home"),
  75. ("/pages/kontakt.de.html", "Kontakt"),
  76. ("/pages/datenschutz.de.html", "Datenschutz"),
  77. ("/rss.xml", "RSS feed"),
  78. ),
  79. }
  80. # Name of the theme to use.
  81. THEME = "bootstrap3"
  82. # Primary color of your theme. This will be used to customize your theme and
  83. # auto-generate related colors in POSTS_SECTION_COLORS. Must be a HEX value.
  84. THEME_COLOR = '#5670d4'
  85. # POSTS and PAGES contains (wildcard, destination, template) tuples.
  86. # (translatable)
  87. #
  88. # The wildcard is used to generate a list of source files
  89. # (whatever/thing.rst, for example).
  90. #
  91. # That fragment could have an associated metadata file (whatever/thing.meta),
  92. # and optionally translated files (example for Spanish, with code "es"):
  93. # whatever/thing.es.rst and whatever/thing.es.meta
  94. #
  95. # This assumes you use the default TRANSLATIONS_PATTERN.
  96. #
  97. # From those files, a set of HTML fragment files will be generated:
  98. # cache/whatever/thing.html (and maybe cache/whatever/thing.html.es)
  99. #
  100. # These files are combined with the template to produce rendered
  101. # pages, which will be placed at
  102. # output/TRANSLATIONS[lang]/destination/pagename.html
  103. #
  104. # where "pagename" is the "slug" specified in the metadata file.
  105. # The page might also be placed in /destination/pagename/index.html
  106. # if PRETTY_URLS are enabled.
  107. #
  108. # The difference between POSTS and PAGES is that POSTS are added
  109. # to feeds, indexes, tag lists and archives and are considered part
  110. # of a blog, while PAGES are just independent HTML pages.
  111. #
  112. # Finally, note that destination can be translated, i.e. you can
  113. # specify a different translation folder per language. Example:
  114. # PAGES = (
  115. # ("pages/*.rst", {"en": "pages", "de": "seiten"}, "page.tmpl"),
  116. # ("pages/*.md", {"en": "pages", "de": "seiten"}, "page.tmpl"),
  117. # )
  118. POSTS = (
  119. ("posts/*.rst", "posts", "post.tmpl"),
  120. ("posts/*.md", "posts", "post.tmpl"),
  121. ("posts/*.txt", "posts", "post.tmpl"),
  122. ("posts/*.html", "posts", "post.tmpl"),
  123. )
  124. PAGES = (
  125. ("pages/*.rst", "pages", "page.tmpl"),
  126. ("pages/*.md", "pages", "page.tmpl"),
  127. ("pages/*.txt", "pages", "page.tmpl"),
  128. ("pages/*.html", "pages", "page.tmpl"),
  129. )
  130. # Below this point, everything is optional
  131. # Post's dates are considered in UTC by default, if you want to use
  132. # another time zone, please set TIMEZONE to match. Check the available
  133. # list from Wikipedia:
  134. # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  135. # (e.g. 'Europe/Zurich')
  136. # Also, if you want to use a different time zone in some of your posts,
  137. # you can use the ISO 8601/RFC 3339 format (ex. 2012-03-30T23:00:00+02:00)
  138. TIMEZONE = "Europe/Berlin"
  139. # If you want to use ISO 8601 (also valid RFC 3339) throughout Nikola
  140. # (especially in new_post), set this to True.
  141. # Note that this does not affect DATE_FORMAT.
  142. # FORCE_ISO8601 = False
  143. # Date format used to display post dates. (translatable)
  144. # (str used by datetime.datetime.strftime)
  145. # DATE_FORMAT = '%Y-%m-%d %H:%M'
  146. # Date format used to display post dates, if local dates are used. (translatable)
  147. # (str used by moment.js)
  148. JS_DATE_FORMAT = 'YYYY-MM-DD HH:mm'
  149. # Date fanciness.
  150. #
  151. # 0 = using DATE_FORMAT and TIMEZONE
  152. # 1 = using JS_DATE_FORMAT and local user time (via moment.js)
  153. # 2 = using a string like “2 days ago”
  154. #
  155. # Your theme must support it, bootstrap and bootstrap3 already do.
  156. # DATE_FANCINESS = 0
  157. # While Nikola can select a sensible locale for each language,
  158. # sometimes explicit control can come handy.
  159. # In this file we express locales in the string form that
  160. # python's locales will accept in your OS, by example
  161. # "en_US.utf8" in Unix-like OS, "English_United States" in Windows.
  162. # LOCALES = dict mapping language --> explicit locale for the languages
  163. # in TRANSLATIONS. You can omit one or more keys.
  164. # LOCALE_FALLBACK = locale to use when an explicit locale is unavailable
  165. # LOCALE_DEFAULT = locale to use for languages not mentioned in LOCALES; if
  166. # not set the default Nikola mapping is used.
  167. # LOCALES = {}
  168. # LOCALE_FALLBACK = None
  169. # LOCALE_DEFAULT = None
  170. # One or more folders containing files to be copied as-is into the output.
  171. # The format is a dictionary of {source: relative destination}.
  172. # Default is:
  173. # FILES_FOLDERS = {'files': ''}
  174. # Which means copy 'files' into 'output'
  175. # One or more folders containing code listings to be processed and published on
  176. # the site. The format is a dictionary of {source: relative destination}.
  177. # Default is:
  178. # LISTINGS_FOLDERS = {'listings': 'listings'}
  179. # Which means process listings from 'listings' into 'output/listings'
  180. # A mapping of languages to file-extensions that represent that language.
  181. # Feel free to add or delete extensions to any list, but don't add any new
  182. # compilers unless you write the interface for it yourself.
  183. #
  184. # 'rest' is reStructuredText
  185. # 'markdown' is Markdown
  186. # 'html' assumes the file is HTML and just copies it
  187. COMPILERS = {
  188. "rest": ('.rst', '.txt'),
  189. "markdown": ('.md', '.mdown', '.markdown'),
  190. "textile": ('.textile',),
  191. "txt2tags": ('.t2t',),
  192. "bbcode": ('.bb',),
  193. "wiki": ('.wiki',),
  194. "ipynb": ('.ipynb',),
  195. "html": ('.html', '.htm'),
  196. # PHP files are rendered the usual way (i.e. with the full templates).
  197. # The resulting files have .php extensions, making it possible to run
  198. # them without reconfiguring your server to recognize them.
  199. "php": ('.php',),
  200. # Pandoc detects the input from the source filename
  201. # but is disabled by default as it would conflict
  202. # with many of the others.
  203. # "pandoc": ('.rst', '.md', '.txt'),
  204. }
  205. # Create by default posts in one file format?
  206. # Set to False for two-file posts, with separate metadata.
  207. # ONE_FILE_POSTS = True
  208. # Preferred metadata format for new posts
  209. # "Nikola": reST comments wrapped in a comment if needed (default)
  210. # "YAML": YAML wrapped in "---"
  211. # "TOML": TOML wrapped in "+++"
  212. # "Pelican": Native markdown metadata or reST docinfo fields. Nikola style for other formats.
  213. # METADATA_FORMAT = "Nikola"
  214. # Use date-based path when creating posts?
  215. # Can be enabled on a per-post basis with `nikola new_post -d`.
  216. # The setting is ignored when creating pages (`-d` still works).
  217. # NEW_POST_DATE_PATH = False
  218. # What format to use when creating posts with date paths?
  219. # Default is '%Y/%m/%d', other possibilities include '%Y' or '%Y/%m'.
  220. # NEW_POST_DATE_PATH_FORMAT = '%Y/%m/%d'
  221. # If this is set to True, the DEFAULT_LANG version will be displayed for
  222. # untranslated posts.
  223. # If this is set to False, then posts that are not translated to a language
  224. # LANG will not be visible at all in the pages in that language.
  225. # Formerly known as HIDE_UNTRANSLATED_POSTS (inverse)
  226. # SHOW_UNTRANSLATED_POSTS = True
  227. # Nikola supports logo display. If you have one, you can put the URL here.
  228. # Final output is <img src="LOGO_URL" id="logo" alt="BLOG_TITLE">.
  229. # The URL may be relative to the site root.
  230. # LOGO_URL = ''
  231. # If you want to hide the title of your website (for example, if your logo
  232. # already contains the text), set this to False.
  233. # SHOW_BLOG_TITLE = True
  234. # Writes tag cloud data in form of tag_cloud_data.json.
  235. # Warning: this option will change its default value to False in v8!
  236. WRITE_TAG_CLOUD = True
  237. # Generate pages for each section. The site must have at least two sections
  238. # for this option to take effect. It wouldn't build for just one section.
  239. POSTS_SECTIONS = True
  240. # Setting this to False generates a list page instead of an index. Indexes
  241. # are the default and will apply GENERATE_ATOM if set.
  242. # POSTS_SECTIONS_ARE_INDEXES = True
  243. # Final locations are:
  244. # output / TRANSLATION[lang] / SECTION_PATH / SECTION_NAME / index.html (list of posts for a section)
  245. # output / TRANSLATION[lang] / SECTION_PATH / SECTION_NAME / rss.xml (RSS feed for a section)
  246. # (translatable)
  247. # SECTION_PATH = ""
  248. # Each post and section page will have an associated color that can be used
  249. # to style them with a recognizable color detail across your site. A color
  250. # is assigned to each section based on shifting the hue of your THEME_COLOR
  251. # at least 7.5 % while leaving the lightness and saturation untouched in the
  252. # HUSL colorspace. You can overwrite colors by assigning them colors in HEX.
  253. # POSTS_SECTION_COLORS = {
  254. # DEFAULT_LANG: {
  255. # 'posts': '#49b11bf',
  256. # 'reviews': '#ffe200',
  257. # },
  258. # }
  259. # Associate a description with a section. For use in meta description on
  260. # section index pages or elsewhere in themes.
  261. # POSTS_SECTION_DESCRIPTIONS = {
  262. # DEFAULT_LANG: {
  263. # 'how-to': 'Learn how-to things properly with these amazing tutorials.',
  264. # },
  265. # }
  266. # Sections are determined by their output directory as set in POSTS by default,
  267. # but can alternatively be determined from file metadata instead.
  268. # POSTS_SECTION_FROM_META = False
  269. # Names are determined from the output directory name automatically or the
  270. # metadata label. Unless overwritten below, names will use title cased and
  271. # hyphens replaced by spaces.
  272. # POSTS_SECTION_NAME = {
  273. # DEFAULT_LANG: {
  274. # 'posts': 'Blog Posts',
  275. # 'uncategorized': 'Odds and Ends',
  276. # },
  277. # }
  278. # Titles for per-section index pages. Can be either one string where "{name}"
  279. # is substituted or the POSTS_SECTION_NAME, or a dict of sections. Note
  280. # that the INDEX_PAGES option is also applied to section page titles.
  281. # POSTS_SECTION_TITLE = {
  282. # DEFAULT_LANG: {
  283. # 'how-to': 'How-to and Tutorials',
  284. # },
  285. # }
  286. # A list of dictionaries specifying sections which translate to each other.
  287. # For example:
  288. # [
  289. # {'en': 'private', 'de': 'Privat'},
  290. # {'en': 'work', 'fr': 'travail', 'de': 'Arbeit'},
  291. # ]
  292. # POSTS_SECTION_TRANSLATIONS = []
  293. # If set to True, a section in a language will be treated as a translation
  294. # of the literally same section in all other languages. Enable this if you
  295. # do not translate sections, for example.
  296. # POSTS_SECTION_TRANSLATIONS_ADD_DEFAULTS = True
  297. # Paths for different autogenerated bits. These are combined with the
  298. # translation paths.
  299. # Final locations are:
  300. # output / TRANSLATION[lang] / TAG_PATH / index.html (list of tags)
  301. # output / TRANSLATION[lang] / TAG_PATH / tag.html (list of posts for a tag)
  302. # output / TRANSLATION[lang] / TAG_PATH / tag.xml (RSS feed for a tag)
  303. # (translatable)
  304. # TAG_PATH = "categories"
  305. # By default, the list of tags is stored in
  306. # output / TRANSLATION[lang] / TAG_PATH / index.html
  307. # (see explanation for TAG_PATH). This location can be changed to
  308. # output / TRANSLATION[lang] / TAGS_INDEX_PATH
  309. # with an arbitrary relative path TAGS_INDEX_PATH.
  310. # (translatable)
  311. # TAGS_INDEX_PATH = "tags.html"
  312. # If TAG_PAGES_ARE_INDEXES is set to True, each tag's page will contain
  313. # the posts themselves. If set to False, it will be just a list of links.
  314. # TAG_PAGES_ARE_INDEXES = False
  315. # Set descriptions for tag pages to make them more interesting. The
  316. # default is no description. The value is used in the meta description
  317. # and displayed underneath the tag list or index page’s title.
  318. # TAG_PAGES_DESCRIPTIONS = {
  319. # DEFAULT_LANG: {
  320. # "blogging": "Meta-blog posts about blogging about blogging.",
  321. # "open source": "My contributions to my many, varied, ever-changing, and eternal libre software projects."
  322. # },
  323. # }
  324. # Set special titles for tag pages. The default is "Posts about TAG".
  325. # TAG_PAGES_TITLES = {
  326. # DEFAULT_LANG: {
  327. # "blogging": "Meta-posts about blogging",
  328. # "open source": "Posts about open source software"
  329. # },
  330. # }
  331. # If you do not want to display a tag publicly, you can mark it as hidden.
  332. # The tag will not be displayed on the tag list page, the tag cloud and posts.
  333. # Tag pages will still be generated.
  334. HIDDEN_TAGS = ['mathjax']
  335. # Only include tags on the tag list/overview page if there are at least
  336. # TAGLIST_MINIMUM_POSTS number of posts or more with every tag. Every tag
  337. # page is still generated, linked from posts, and included in the sitemap.
  338. # However, more obscure tags can be hidden from the tag index page.
  339. # TAGLIST_MINIMUM_POSTS = 1
  340. # A list of dictionaries specifying tags which translate to each other.
  341. # Format: a list of dicts {language: translation, language2: translation2, …}
  342. # See POSTS_SECTION_TRANSLATIONS example above.
  343. # TAG_TRANSLATIONS = []
  344. # If set to True, a tag in a language will be treated as a translation
  345. # of the literally same tag in all other languages. Enable this if you
  346. # do not translate tags, for example.
  347. # TAG_TRANSLATIONS_ADD_DEFAULTS = True
  348. # Final locations are:
  349. # output / TRANSLATION[lang] / CATEGORY_PATH / index.html (list of categories)
  350. # output / TRANSLATION[lang] / CATEGORY_PATH / CATEGORY_PREFIX category.html (list of posts for a category)
  351. # output / TRANSLATION[lang] / CATEGORY_PATH / CATEGORY_PREFIX category.xml (RSS feed for a category)
  352. # (translatable)
  353. # CATEGORY_PATH = "categories"
  354. # CATEGORY_PREFIX = "cat_"
  355. # By default, the list of categories is stored in
  356. # output / TRANSLATION[lang] / CATEGORY_PATH / index.html
  357. # (see explanation for CATEGORY_PATH). This location can be changed to
  358. # output / TRANSLATION[lang] / CATEGORIES_INDEX_PATH
  359. # with an arbitrary relative path CATEGORIES_INDEX_PATH.
  360. # (translatable)
  361. # CATEGORIES_INDEX_PATH = "categories.html"
  362. # If CATEGORY_ALLOW_HIERARCHIES is set to True, categories can be organized in
  363. # hierarchies. For a post, the whole path in the hierarchy must be specified,
  364. # using a forward slash ('/') to separate paths. Use a backslash ('\') to escape
  365. # a forward slash or a backslash (i.e. '\//\\' is a path specifying the
  366. # subcategory called '\' of the top-level category called '/').
  367. CATEGORY_ALLOW_HIERARCHIES = False
  368. # If CATEGORY_OUTPUT_FLAT_HIERARCHY is set to True, the output written to output
  369. # contains only the name of the leaf category and not the whole path.
  370. CATEGORY_OUTPUT_FLAT_HIERARCHY = False
  371. # If CATEGORY_PAGES_ARE_INDEXES is set to True, each category's page will contain
  372. # the posts themselves. If set to False, it will be just a list of links.
  373. # CATEGORY_PAGES_ARE_INDEXES = False
  374. # Set descriptions for category pages to make them more interesting. The
  375. # default is no description. The value is used in the meta description
  376. # and displayed underneath the category list or index page’s title.
  377. # CATEGORY_PAGES_DESCRIPTIONS = {
  378. # DEFAULT_LANG: {
  379. # "blogging": "Meta-blog posts about blogging about blogging.",
  380. # "open source": "My contributions to my many, varied, ever-changing, and eternal libre software projects."
  381. # },
  382. # }
  383. # Set special titles for category pages. The default is "Posts about CATEGORY".
  384. # CATEGORY_PAGES_TITLES = {
  385. # DEFAULT_LANG: {
  386. # "blogging": "Meta-posts about blogging",
  387. # "open source": "Posts about open source software"
  388. # },
  389. # }
  390. # If you do not want to display a category publicly, you can mark it as hidden.
  391. # The category will not be displayed on the category list page.
  392. # Category pages will still be generated.
  393. HIDDEN_CATEGORIES = []
  394. # A list of dictionaries specifying categories which translate to each other.
  395. # Format: a list of dicts {language: translation, language2: translation2, …}
  396. # See POSTS_SECTION_TRANSLATIONS example above.
  397. # CATEGORY_TRANSLATIONS = []
  398. # If set to True, a category in a language will be treated as a translation
  399. # of the literally same category in all other languages. Enable this if you
  400. # do not translate categories, for example.
  401. # CATEGORY_TRANSLATIONS_ADD_DEFAULTS = True
  402. # If ENABLE_AUTHOR_PAGES is set to True and there is more than one
  403. # author, author pages are generated.
  404. # ENABLE_AUTHOR_PAGES = True
  405. # Path to author pages. Final locations are:
  406. # output / TRANSLATION[lang] / AUTHOR_PATH / index.html (list of authors)
  407. # output / TRANSLATION[lang] / AUTHOR_PATH / author.html (list of posts by an author)
  408. # output / TRANSLATION[lang] / AUTHOR_PATH / author.xml (RSS feed for an author)
  409. # (translatable)
  410. # AUTHOR_PATH = "authors"
  411. # If AUTHOR_PAGES_ARE_INDEXES is set to True, each author's page will contain
  412. # the posts themselves. If set to False, it will be just a list of links.
  413. # AUTHOR_PAGES_ARE_INDEXES = False
  414. # Set descriptions for author pages to make them more interesting. The
  415. # default is no description. The value is used in the meta description
  416. # and displayed underneath the author list or index page’s title.
  417. # AUTHOR_PAGES_DESCRIPTIONS = {
  418. # DEFAULT_LANG: {
  419. # "Juanjo Conti": "Python coder and writer.",
  420. # "Roberto Alsina": "Nikola father."
  421. # },
  422. # }
  423. # If you do not want to display an author publicly, you can mark it as hidden.
  424. # The author will not be displayed on the author list page and posts.
  425. # Tag pages will still be generated.
  426. HIDDEN_AUTHORS = ['Guest']
  427. # Final location for the main blog page and sibling paginated pages is
  428. # output / TRANSLATION[lang] / INDEX_PATH / index-*.html
  429. # (translatable)
  430. INDEX_PATH = "blog"
  431. # Optional HTML that displayed on “main” blog index.html files.
  432. # May be used for a greeting. (translatable)
  433. FRONT_INDEX_HEADER = {
  434. DEFAULT_LANG: ''
  435. }
  436. # Create per-month archives instead of per-year
  437. # CREATE_MONTHLY_ARCHIVE = False
  438. # Create one large archive instead of per-year
  439. # CREATE_SINGLE_ARCHIVE = False
  440. # Create year, month, and day archives each with a (long) list of posts
  441. # (overrides both CREATE_MONTHLY_ARCHIVE and CREATE_SINGLE_ARCHIVE)
  442. # CREATE_FULL_ARCHIVES = False
  443. # If monthly archives or full archives are created, adds also one archive per day
  444. # CREATE_DAILY_ARCHIVE = False
  445. # Create previous, up, next navigation links for archives
  446. # CREATE_ARCHIVE_NAVIGATION = False
  447. # Final locations for the archives are:
  448. # output / TRANSLATION[lang] / ARCHIVE_PATH / ARCHIVE_FILENAME
  449. # output / TRANSLATION[lang] / ARCHIVE_PATH / YEAR / index.html
  450. # output / TRANSLATION[lang] / ARCHIVE_PATH / YEAR / MONTH / index.html
  451. # output / TRANSLATION[lang] / ARCHIVE_PATH / YEAR / MONTH / DAY / index.html
  452. # ARCHIVE_PATH = ""
  453. # ARCHIVE_FILENAME = "archive.html"
  454. # If ARCHIVES_ARE_INDEXES is set to True, each archive page which contains a list
  455. # of posts will contain the posts themselves. If set to False, it will be just a
  456. # list of links.
  457. # ARCHIVES_ARE_INDEXES = False
  458. # URLs to other posts/pages can take 3 forms:
  459. # rel_path: a relative URL to the current page/post (default)
  460. # full_path: a URL with the full path from the root
  461. # absolute: a complete URL (that includes the SITE_URL)
  462. # URL_TYPE = 'rel_path'
  463. # If USE_BASE_TAG is True, then all HTML files will include
  464. # something like <base href=http://foo.var.com/baz/bat> to help
  465. # the browser resolve relative links.
  466. # Most people don’t need this tag; major websites don’t use it. Use
  467. # only if you know what you’re doing. If this is True, your website
  468. # will not be fully usable by manually opening .html files in your web
  469. # browser (`nikola serve` or `nikola auto` is mandatory). Also, if you
  470. # have mirrors of your site, they will point to SITE_URL everywhere.
  471. USE_BASE_TAG = False
  472. # Final location for the blog main RSS feed is:
  473. # output / TRANSLATION[lang] / RSS_PATH / rss.xml
  474. # (translatable)
  475. # RSS_PATH = ""
  476. # Slug the Tag URL. Easier for users to type, special characters are
  477. # often removed or replaced as well.
  478. # SLUG_TAG_PATH = True
  479. # Slug the Author URL. Easier for users to type, special characters are
  480. # often removed or replaced as well.
  481. # SLUG_AUTHOR_PATH = True
  482. # A list of redirection tuples, [("foo/from.html", "/bar/to.html")].
  483. #
  484. # A HTML file will be created in output/foo/from.html that redirects
  485. # to the "/bar/to.html" URL. notice that the "from" side MUST be a
  486. # relative URL.
  487. #
  488. # If you don't need any of these, just set to []
  489. REDIRECTIONS = []
  490. # Presets of commands to execute to deploy. Can be anything, for
  491. # example, you may use rsync:
  492. # "rsync -rav --delete output/ joe@my.site:/srv/www/site"
  493. # And then do a backup, or run `nikola ping` from the `ping`
  494. # plugin (`nikola plugin -i ping`). Or run `nikola check -l`.
  495. # You may also want to use github_deploy (see below).
  496. # You can define multiple presets and specify them as arguments
  497. # to `nikola deploy`. If no arguments are specified, a preset
  498. # named `default` will be executed. You can use as many presets
  499. # in a `nikola deploy` command as you like.
  500. # DEPLOY_COMMANDS = {
  501. # 'default': [
  502. # "rsync -rav --delete output/ joe@my.site:/srv/www/site",
  503. # ]
  504. # }
  505. # github_deploy configuration
  506. # For more details, read the manual:
  507. # https://getnikola.com/handbook.html#deploying-to-github
  508. # You will need to configure the deployment branch on GitHub.
  509. GITHUB_SOURCE_BRANCH = 'src'
  510. GITHUB_DEPLOY_BRANCH = 'master'
  511. # The name of the remote where you wish to push to, using github_deploy.
  512. GITHUB_REMOTE_NAME = 'origin'
  513. # Whether or not github_deploy should commit to the source branch automatically
  514. # before deploying.
  515. GITHUB_COMMIT_SOURCE = True
  516. # Where the output site should be located
  517. # If you don't use an absolute path, it will be considered as relative
  518. # to the location of conf.py
  519. # OUTPUT_FOLDER = 'output'
  520. # where the "cache" of partial generated content should be located
  521. # default: 'cache'
  522. # CACHE_FOLDER = 'cache'
  523. # Filters to apply to the output.
  524. # A directory where the keys are either: a file extensions, or
  525. # a tuple of file extensions.
  526. #
  527. # And the value is a list of commands to be applied in order.
  528. #
  529. # Each command must be either:
  530. #
  531. # A string containing a '%s' which will
  532. # be replaced with a filename. The command *must* produce output
  533. # in place.
  534. #
  535. # Or:
  536. #
  537. # A python callable, which will be called with the filename as
  538. # argument.
  539. #
  540. # By default, only .php files uses filters to inject PHP into
  541. # Nikola’s templates. All other filters must be enabled through FILTERS.
  542. #
  543. # Many filters are shipped with Nikola. A list is available in the manual:
  544. # <https://getnikola.com/handbook.html#post-processing-filters>
  545. #
  546. # from nikola import filters
  547. # FILTERS = {
  548. # ".html": [filters.typogrify],
  549. # ".js": [filters.closure_compiler],
  550. # ".jpg": ["jpegoptim --strip-all -m75 -v %s"],
  551. # }
  552. # Executable for the "yui_compressor" filter (defaults to 'yui-compressor').
  553. # YUI_COMPRESSOR_EXECUTABLE = 'yui-compressor'
  554. # Executable for the "closure_compiler" filter (defaults to 'closure-compiler').
  555. # CLOSURE_COMPILER_EXECUTABLE = 'closure-compiler'
  556. # Executable for the "optipng" filter (defaults to 'optipng').
  557. # OPTIPNG_EXECUTABLE = 'optipng'
  558. # Executable for the "jpegoptim" filter (defaults to 'jpegoptim').
  559. # JPEGOPTIM_EXECUTABLE = 'jpegoptim'
  560. # Executable for the "html_tidy_withconfig", "html_tidy_nowrap",
  561. # "html_tidy_wrap", "html_tidy_wrap_attr" and "html_tidy_mini" filters
  562. # (defaults to 'tidy5').
  563. # HTML_TIDY_EXECUTABLE = 'tidy5'
  564. # List of XPath expressions which should be used for finding headers
  565. # ({hx} is replaced by headers h1 through h6).
  566. # You must change this if you use a custom theme that does not use
  567. # "e-content entry-content" as a class for post and page contents.
  568. # HEADER_PERMALINKS_XPATH_LIST = ['*//div[@class="e-content entry-content"]//{hx}']
  569. # Include *every* header (not recommended):
  570. # HEADER_PERMALINKS_XPATH_LIST = ['*//{hx}']
  571. # File blacklist for header permalinks. Contains output path
  572. # (eg. 'output/index.html')
  573. # HEADER_PERMALINKS_FILE_BLACKLIST = []
  574. # Expert setting! Create a gzipped copy of each generated file. Cheap server-
  575. # side optimization for very high traffic sites or low memory servers.
  576. # GZIP_FILES = False
  577. # File extensions that will be compressed
  578. # GZIP_EXTENSIONS = ('.txt', '.htm', '.html', '.css', '.js', '.json', '.atom', '.xml')
  579. # Use an external gzip command? None means no.
  580. # Example: GZIP_COMMAND = "pigz -k {filename}"
  581. # GZIP_COMMAND = None
  582. # Make sure the server does not return a "Accept-Ranges: bytes" header for
  583. # files compressed by this option! OR make sure that a ranged request does not
  584. # return partial content of another representation for these resources. Do not
  585. # use this feature if you do not understand what this means.
  586. # Compiler to process LESS files.
  587. # LESS_COMPILER = 'lessc'
  588. # A list of options to pass to the LESS compiler.
  589. # Final command is: LESS_COMPILER LESS_OPTIONS file.less
  590. # LESS_OPTIONS = []
  591. # Compiler to process Sass files.
  592. # SASS_COMPILER = 'sass'
  593. # A list of options to pass to the Sass compiler.
  594. # Final command is: SASS_COMPILER SASS_OPTIONS file.s(a|c)ss
  595. # SASS_OPTIONS = []
  596. # #############################################################################
  597. # Image Gallery Options
  598. # #############################################################################
  599. # One or more folders containing galleries. The format is a dictionary of
  600. # {"source": "relative_destination"}, where galleries are looked for in
  601. # "source/" and the results will be located in
  602. # "OUTPUT_PATH/relative_destination/gallery_name"
  603. # Default is:
  604. # GALLERY_FOLDERS = {"galleries": "galleries"}
  605. # More gallery options:
  606. # THUMBNAIL_SIZE = 180
  607. # MAX_IMAGE_SIZE = 1280
  608. # USE_FILENAME_AS_TITLE = True
  609. # EXTRA_IMAGE_EXTENSIONS = []
  610. #
  611. # If set to False, it will sort by filename instead. Defaults to True
  612. # GALLERY_SORT_BY_DATE = True
  613. # If set to True, EXIF data will be copied when an image is thumbnailed or
  614. # resized. (See also EXIF_WHITELIST)
  615. # PRESERVE_EXIF_DATA = False
  616. # If you have enabled PRESERVE_EXIF_DATA, this option lets you choose EXIF
  617. # fields you want to keep in images. (See also PRESERVE_EXIF_DATA)
  618. #
  619. # For a full list of field names, please see here:
  620. # http://www.cipa.jp/std/documents/e/DC-008-2012_E.pdf
  621. #
  622. # This is a dictionary of lists. Each key in the dictionary is the
  623. # name of a IDF, and each list item is a field you want to preserve.
  624. # If you have a IDF with only a '*' item, *EVERY* item in it will be
  625. # preserved. If you don't want to preserve anything in a IDF, remove it
  626. # from the setting. By default, no EXIF information is kept.
  627. # Setting the whitelist to anything other than {} implies
  628. # PRESERVE_EXIF_DATA is set to True
  629. # To preserve ALL EXIF data, set EXIF_WHITELIST to {"*": "*"}
  630. # EXIF_WHITELIST = {}
  631. # Some examples of EXIF_WHITELIST settings:
  632. # Basic image information:
  633. # EXIF_WHITELIST['0th'] = [
  634. # "Orientation",
  635. # "XResolution",
  636. # "YResolution",
  637. # ]
  638. # If you want to keep GPS data in the images:
  639. # EXIF_WHITELIST['GPS'] = ["*"]
  640. # Embedded thumbnail information:
  641. # EXIF_WHITELIST['1st'] = ["*"]
  642. # Folders containing images to be used in normal posts or pages.
  643. # IMAGE_FOLDERS is a dictionary of the form {"source": "destination"},
  644. # where "source" is the folder containing the images to be published, and
  645. # "destination" is the folder under OUTPUT_PATH containing the images copied
  646. # to the site. Thumbnail images will be created there as well.
  647. # To reference the images in your posts, include a leading slash in the path.
  648. # For example, if IMAGE_FOLDERS = {'images': 'images'}, write
  649. #
  650. # .. image:: /images/tesla.jpg
  651. #
  652. # See the Nikola Handbook for details (in the “Embedding Images” and
  653. # “Thumbnails” sections)
  654. # Images will be scaled down according to IMAGE_THUMBNAIL_SIZE and MAX_IMAGE_SIZE
  655. # options, but will have to be referenced manually to be visible on the site
  656. # (the thumbnail has ``.thumbnail`` added before the file extension by default,
  657. # but a different naming template can be configured with IMAGE_THUMBNAIL_FORMAT).
  658. IMAGE_FOLDERS = {'images': 'images'}
  659. # IMAGE_THUMBNAIL_SIZE = 400
  660. # IMAGE_THUMBNAIL_FORMAT = '{name}.thumbnail{ext}'
  661. # #############################################################################
  662. # HTML fragments and diverse things that are used by the templates
  663. # #############################################################################
  664. # Data about post-per-page indexes.
  665. # INDEXES_PAGES defaults to ' old posts, page %d' or ' page %d' (translated),
  666. # depending on the value of INDEXES_PAGES_MAIN.
  667. #
  668. # (translatable) If the following is empty, defaults to BLOG_TITLE:
  669. # INDEXES_TITLE = ""
  670. #
  671. # (translatable) If the following is empty, defaults to ' [old posts,] page %d' (see above):
  672. # INDEXES_PAGES = ""
  673. #
  674. # If the following is True, INDEXES_PAGES is also displayed on the main (the
  675. # newest) index page (index.html):
  676. # INDEXES_PAGES_MAIN = False
  677. #
  678. # If the following is True, index-1.html has the oldest posts, index-2.html the
  679. # second-oldest posts, etc., and index.html has the newest posts. This ensures
  680. # that all posts on index-x.html will forever stay on that page, now matter how
  681. # many new posts are added.
  682. # If False, index-1.html has the second-newest posts, index-2.html the third-newest,
  683. # and index-n.html the oldest posts. When this is active, old posts can be moved
  684. # to other index pages when new posts are added.
  685. # INDEXES_STATIC = True
  686. #
  687. # (translatable) If PRETTY_URLS is set to True, this setting will be used to create
  688. # prettier URLs for index pages, such as page/2/index.html instead of index-2.html.
  689. # Valid values for this settings are:
  690. # * False,
  691. # * a list or tuple, specifying the path to be generated,
  692. # * a dictionary mapping languages to lists or tuples.
  693. # Every list or tuple must consist of strings which are used to combine the path;
  694. # for example:
  695. # ['page', '{number}', '{index_file}']
  696. # The replacements
  697. # {number} --> (logical) page number;
  698. # {old_number} --> the page number inserted into index-n.html before (zero for
  699. # the main page);
  700. # {index_file} --> value of option INDEX_FILE
  701. # are made.
  702. # Note that in case INDEXES_PAGES_MAIN is set to True, a redirection will be created
  703. # for the full URL with the page number of the main page to the normal (shorter) main
  704. # page URL.
  705. # INDEXES_PRETTY_PAGE_URL = False
  706. #
  707. # If the following is true, a page range navigation will be inserted to indices.
  708. # Please note that this will undo the effect of INDEXES_STATIC, as all index pages
  709. # must be recreated whenever the number of pages changes.
  710. # SHOW_INDEX_PAGE_NAVIGATION = False
  711. # If the following is True, a meta name="generator" tag is added to pages. The
  712. # generator tag is used to specify the software used to generate the page
  713. # (it promotes Nikola).
  714. # META_GENERATOR_TAG = True
  715. # Color scheme to be used for code blocks. If your theme provides
  716. # "assets/css/code.css" this is ignored. Leave empty to disable.
  717. # Can be any of:
  718. # algol, algol_nu, autumn, borland, bw, colorful, default, emacs, friendly,
  719. # fruity, igor, lovelace, manni, monokai, murphy, native, paraiso-dark,
  720. # paraiso-light, pastie, perldoc, rrt, tango, trac, vim, vs, xcode
  721. # This list MAY be incomplete since pygments adds styles every now and then.
  722. # Check with list(pygments.styles.get_all_styles()) in an interpreter.
  723. # CODE_COLOR_SCHEME = 'default'
  724. # FAVICONS contains (name, file, size) tuples.
  725. # Used to create favicon link like this:
  726. # <link rel="name" href="file" sizes="size"/>
  727. # FAVICONS = (
  728. # ("icon", "/favicon.ico", "16x16"),
  729. # ("icon", "/icon_128x128.png", "128x128"),
  730. # )
  731. # Show teasers (instead of full posts) in indexes? Defaults to False.
  732. # INDEX_TEASERS = False
  733. # HTML fragments with the Read more... links.
  734. # The following tags exist and are replaced for you:
  735. # {link} A link to the full post page.
  736. # {read_more} The string “Read more” in the current language.
  737. # {reading_time} An estimate of how long it will take to read the post.
  738. # {remaining_reading_time} An estimate of how long it will take to read the post, sans the teaser.
  739. # {min_remaining_read} The string “{remaining_reading_time} min remaining to read” in the current language.
  740. # {paragraph_count} The amount of paragraphs in the post.
  741. # {remaining_paragraph_count} The amount of paragraphs in the post, sans the teaser.
  742. # {post_title} The title of the post.
  743. # {{ A literal { (U+007B LEFT CURLY BRACKET)
  744. # }} A literal } (U+007D RIGHT CURLY BRACKET)
  745. # 'Read more...' for the index page, if INDEX_TEASERS is True (translatable)
  746. INDEX_READ_MORE_LINK = '<p class="more"><a href="{link}">{read_more}…</a></p>'
  747. # 'Read more...' for the feeds, if FEED_TEASERS is True (translatable)
  748. FEED_READ_MORE_LINK = '<p><a href="{link}">{read_more}…</a> ({min_remaining_read})</p>'
  749. # Append a URL query to the FEED_READ_MORE_LINK in Atom and RSS feeds. Advanced
  750. # option used for traffic source tracking.
  751. # Minimum example for use with Piwik: "pk_campaign=feed"
  752. # The following tags exist and are replaced for you:
  753. # {feedRelUri} A relative link to the feed.
  754. # {feedFormat} The name of the syndication format.
  755. # Example using replacement for use with Google Analytics:
  756. # "utm_source={feedRelUri}&utm_medium=nikola_feed&utm_campaign={feedFormat}_feed"
  757. FEED_LINKS_APPEND_QUERY = False
  758. # A HTML fragment describing the license, for the sidebar.
  759. # (translatable)
  760. LICENSE = ""
  761. # I recommend using the Creative Commons' wizard:
  762. # https://creativecommons.org/choose/
  763. # LICENSE = """
  764. # <a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
  765. # <img alt="Creative Commons License BY-NC-SA"
  766. # style="border-width:0; margin-bottom:12px;"
  767. # src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png"></a>"""
  768. # A small copyright notice for the page footer (in HTML).
  769. # (translatable)
  770. CONTENT_FOOTER = 'Contents &copy; {date} <a href="mailto:{email}">{author}</a> - Powered by <a href="https://getnikola.com" rel="nofollow">Nikola</a> {license}'
  771. # Things that will be passed to CONTENT_FOOTER.format(). This is done
  772. # for translatability, as dicts are not formattable. Nikola will
  773. # intelligently format the setting properly.
  774. # The setting takes a dict. The keys are languages. The values are
  775. # tuples of tuples of positional arguments and dicts of keyword arguments
  776. # to format(). For example, {'en': (('Hello'), {'target': 'World'})}
  777. # results in CONTENT_FOOTER['en'].format('Hello', target='World').
  778. # If you need to use the literal braces '{' and '}' in your footer text, use
  779. # '{{' and '}}' to escape them (str.format is used)
  780. # WARNING: If you do not use multiple languages with CONTENT_FOOTER, this
  781. # still needs to be a dict of this format. (it can be empty if you
  782. # do not need formatting)
  783. # (translatable)
  784. CONTENT_FOOTER_FORMATS = {
  785. DEFAULT_LANG: (
  786. (),
  787. {
  788. "email": BLOG_EMAIL,
  789. "author": BLOG_AUTHOR,
  790. "date": time.gmtime().tm_year,
  791. "license": LICENSE
  792. }
  793. )
  794. }
  795. # A simple copyright tag for inclusion in RSS feeds that works just
  796. # like CONTENT_FOOTER and CONTENT_FOOTER_FORMATS
  797. RSS_COPYRIGHT = 'Contents © {date} <a href="mailto:{email}">{author}</a> {license}'
  798. RSS_COPYRIGHT_PLAIN = 'Contents © {date} {author} {license}'
  799. RSS_COPYRIGHT_FORMATS = CONTENT_FOOTER_FORMATS
  800. # To use comments, you can choose between different third party comment
  801. # systems. The following comment systems are supported by Nikola:
  802. # disqus, facebook, googleplus, intensedebate, isso, livefyre, muut
  803. # You can leave this option blank to disable comments.
  804. COMMENT_SYSTEM = ""
  805. # And you also need to add your COMMENT_SYSTEM_ID which
  806. # depends on what comment system you use. The default is
  807. # "nikolademo" which is a test account for Disqus. More information
  808. # is in the manual.
  809. COMMENT_SYSTEM_ID = ""
  810. # Create index.html for page folders?
  811. # WARNING: if a page would conflict with the index file (usually
  812. # caused by setting slug to `index`), the PAGE_INDEX
  813. # will not be generated for that directory.
  814. # PAGE_INDEX = False
  815. # Enable comments on pages (i.e. not posts)?
  816. # COMMENTS_IN_PAGES = False
  817. # Enable comments on picture gallery pages?
  818. # COMMENTS_IN_GALLERIES = False
  819. # What file should be used for directory indexes?
  820. # Defaults to index.html
  821. # Common other alternatives: default.html for IIS, index.php
  822. # INDEX_FILE = "index.html"
  823. # If a link ends in /index.html, drop the index.html part.
  824. # http://mysite/foo/bar/index.html => http://mysite/foo/bar/
  825. # (Uses the INDEX_FILE setting, so if that is, say, default.html,
  826. # it will instead /foo/default.html => /foo)
  827. # (Note: This was briefly STRIP_INDEX_HTML in v 5.4.3 and 5.4.4)
  828. STRIP_INDEXES = False
  829. # Should the sitemap list directories which only include other directories
  830. # and no files.
  831. # Default to True
  832. # If this is False
  833. # e.g. /2012 includes only /01, /02, /03, /04, ...: don't add it to the sitemap
  834. # if /2012 includes any files (including index.html)... add it to the sitemap
  835. # SITEMAP_INCLUDE_FILELESS_DIRS = True
  836. # List of files relative to the server root (!) that will be asked to be excluded
  837. # from indexing and other robotic spidering. * is supported. Will only be effective
  838. # if SITE_URL points to server root. The list is used to exclude resources from
  839. # /robots.txt and /sitemap.xml, and to inform search engines about /sitemapindex.xml.
  840. # ROBOTS_EXCLUSIONS = ["/archive.html", "/category/*.html"]
  841. # Instead of putting files in <slug>.html, put them in <slug>/index.html.
  842. # No web server configuration is required. Also enables STRIP_INDEXES.
  843. # This can be disabled on a per-page/post basis by adding
  844. # .. pretty_url: False
  845. # to the metadata.
  846. PRETTY_URLS = False
  847. # If True, publish future dated posts right away instead of scheduling them.
  848. # Defaults to False.
  849. # FUTURE_IS_NOW = False
  850. # If True, future dated posts are allowed in deployed output
  851. # Only the individual posts are published/deployed; not in indexes/sitemap
  852. # Generally, you want FUTURE_IS_NOW and DEPLOY_FUTURE to be the same value.
  853. # DEPLOY_FUTURE = False
  854. # If False, draft posts will not be deployed
  855. # DEPLOY_DRAFTS = True
  856. # Allows scheduling of posts using the rule specified here (new_post -s)
  857. # Specify an iCal Recurrence Rule: http://www.kanzaki.com/docs/ical/rrule.html
  858. # SCHEDULE_RULE = ''
  859. # If True, use the scheduling rule to all posts by default
  860. # SCHEDULE_ALL = False
  861. # Do you want a add a Mathjax config file?
  862. # MATHJAX_CONFIG = ""
  863. # If you want support for the $.$ syntax (which may conflict with running
  864. # text!), just use this config:
  865. # MATHJAX_CONFIG = """
  866. # <script type="text/x-mathjax-config">
  867. # MathJax.Hub.Config({
  868. # tex2jax: {
  869. # inlineMath: [ ['$','$'], ["\\\(","\\\)"] ],
  870. # displayMath: [ ['$$','$$'], ["\\\[","\\\]"] ],
  871. # processEscapes: true
  872. # },
  873. # displayAlign: 'center', // Change this to 'left' if you want left-aligned equations.
  874. # "HTML-CSS": {
  875. # styles: {'.MathJax_Display': {"margin": 0}}
  876. # }
  877. # });
  878. # </script>
  879. # """
  880. # Want to use KaTeX instead of MathJax? While KaTeX may not support every
  881. # feature yet, it's faster and the output looks better.
  882. # USE_KATEX = False
  883. # KaTeX auto-render settings. If you want support for the $.$ syntax (wihch may
  884. # conflict with running text!), just use this config:
  885. # KATEX_AUTO_RENDER = """
  886. # delimiters: [
  887. # {left: "$$", right: "$$", display: true},
  888. # {left: "\\\[", right: "\\\]", display: true},
  889. # {left: "$", right: "$", display: false},
  890. # {left: "\\\(", right: "\\\)", display: false}
  891. # ]
  892. # """
  893. # Do you want to customize the nbconversion of your IPython notebook?
  894. # IPYNB_CONFIG = {}
  895. # With the following example configuration you can use a custom jinja template
  896. # called `toggle.tpl` which has to be located in your site/blog main folder:
  897. # IPYNB_CONFIG = {'Exporter':{'template_file': 'toggle'}}
  898. # What Markdown extensions to enable?
  899. # You will also get gist, nikola and podcast because those are
  900. # done in the code, hope you don't mind ;-)
  901. # Note: most Nikola-specific extensions are done via the Nikola plugin system,
  902. # with the MarkdownExtension class and should not be added here.
  903. # The default is ['fenced_code', 'codehilite']
  904. MARKDOWN_EXTENSIONS = ['markdown.extensions.fenced_code', 'markdown.extensions.codehilite', 'markdown.extensions.extra']
  905. # Extra options to pass to the pandoc command.
  906. # by default, it's empty, is a list of strings, for example
  907. # ['-F', 'pandoc-citeproc', '--bibliography=/Users/foo/references.bib']
  908. # Pandoc does not demote headers by default. To enable this, you can use, for example
  909. # ['--base-header-level=2']
  910. # PANDOC_OPTIONS = []
  911. # Social buttons. This is sample code for AddThis (which was the default for a
  912. # long time). Insert anything you want here, or even make it empty (which is
  913. # the default right now)
  914. # (translatable)
  915. # SOCIAL_BUTTONS_CODE = """
  916. # <!-- Social buttons -->
  917. # <div id="addthisbox" class="addthis_toolbox addthis_peekaboo_style addthis_default_style addthis_label_style addthis_32x32_style">
  918. # <a class="addthis_button_more">Share</a>
  919. # <ul><li><a class="addthis_button_facebook"></a>
  920. # <li><a class="addthis_button_google_plusone_share"></a>
  921. # <li><a class="addthis_button_linkedin"></a>
  922. # <li><a class="addthis_button_twitter"></a>
  923. # </ul>
  924. # </div>
  925. # <script src="https://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4f7088a56bb93798"></script>
  926. # <!-- End of social buttons -->
  927. # """
  928. # Show link to source for the posts?
  929. # Formerly known as HIDE_SOURCELINK (inverse)
  930. # SHOW_SOURCELINK = True
  931. # Copy the source files for your pages?
  932. # Setting it to False implies SHOW_SOURCELINK = False
  933. # COPY_SOURCES = True
  934. # Modify the number of Post per Index Page
  935. # Defaults to 10
  936. # INDEX_DISPLAY_POST_COUNT = 10
  937. # By default, Nikola generates RSS files for the website and for tags, and
  938. # links to it. Set this to False to disable everything RSS-related.
  939. # GENERATE_RSS = True
  940. # By default, Nikola does not generates Atom files for indexes and links to
  941. # them. Generate Atom for tags by setting TAG_PAGES_ARE_INDEXES to True.
  942. # Atom feeds are built based on INDEX_DISPLAY_POST_COUNT and not FEED_LENGTH
  943. # Switch between plain-text summaries and full HTML content using the
  944. # FEED_TEASER option. FEED_LINKS_APPEND_QUERY is also respected. Atom feeds
  945. # are generated even for old indexes and have pagination link relations
  946. # between each other. Old Atom feeds with no changes are marked as archived.
  947. # GENERATE_ATOM = False
  948. # Only include teasers in Atom and RSS feeds. Disabling include the full
  949. # content. Defaults to True.
  950. # FEED_TEASERS = True
  951. # Strip HTML from Atom and RSS feed summaries and content. Defaults to False.
  952. # FEED_PLAIN = False
  953. # Number of posts in Atom and RSS feeds.
  954. # FEED_LENGTH = 10
  955. # Include preview image as a <figure><img></figure> at the top of the entry.
  956. # Requires FEED_PLAIN = False. If the preview image is found in the content,
  957. # it will not be included again. Image will be included as-is, aim to optmize
  958. # the image source for Feedly, Apple News, Flipboard, and other popular clients.
  959. # FEED_PREVIEWIMAGE = True
  960. # RSS_LINK is a HTML fragment to link the RSS or Atom feeds. If set to None,
  961. # the base.tmpl will use the feed Nikola generates. However, you may want to
  962. # change it for a FeedBurner feed or something else.
  963. # RSS_LINK = None
  964. # A search form to search this site, for the sidebar. You can use a Google
  965. # custom search (https://www.google.com/cse/)
  966. # Or a DuckDuckGo search: https://duckduckgo.com/search_box.html
  967. # Default is no search form.
  968. # (translatable)
  969. # SEARCH_FORM = ""
  970. #
  971. # This search form works for any site and looks good in the "site" theme where
  972. # it appears on the navigation bar:
  973. #
  974. # SEARCH_FORM = """
  975. # <!-- DuckDuckGo custom search -->
  976. # <form method="get" id="search" action="https://duckduckgo.com/"
  977. # class="navbar-form pull-left">
  978. # <input type="hidden" name="sites" value="%s">
  979. # <input type="hidden" name="k8" value="#444444">
  980. # <input type="hidden" name="k9" value="#D51920">
  981. # <input type="hidden" name="kt" value="h">
  982. # <input type="text" name="q" maxlength="255"
  983. # placeholder="Search&hellip;" class="span2" style="margin-top: 4px;">
  984. # <input type="submit" value="DuckDuckGo Search" style="visibility: hidden;">
  985. # </form>
  986. # <!-- End of custom search -->
  987. # """ % SITE_URL
  988. #
  989. # If you prefer a Google search form, here's an example that should just work:
  990. # SEARCH_FORM = """
  991. # <!-- Google custom search -->
  992. # <form method="get" action="https://www.google.com/search" class="navbar-form navbar-right" role="search">
  993. # <div class="form-group">
  994. # <input type="text" name="q" class="form-control" placeholder="Search">
  995. # </div>
  996. # <button type="submit" class="btn btn-primary">
  997. # <span class="glyphicon glyphicon-search"></span>
  998. # </button>
  999. # <input type="hidden" name="sitesearch" value="%s">
  1000. # </form>
  1001. # <!-- End of custom search -->
  1002. # """ % SITE_URL
  1003. # Use content distribution networks for jQuery, twitter-bootstrap css and js,
  1004. # and html5shiv (for older versions of Internet Explorer)
  1005. # If this is True, jQuery and html5shiv are served from the Google CDN and
  1006. # Bootstrap is served from BootstrapCDN (provided by MaxCDN)
  1007. # Set this to False if you want to host your site without requiring access to
  1008. # external resources.
  1009. # USE_CDN = False
  1010. # Check for USE_CDN compatibility.
  1011. # If you are using custom themes, have configured the CSS properly and are
  1012. # receiving warnings about incompatibility but believe they are incorrect, you
  1013. # can set this to False.
  1014. # USE_CDN_WARNING = True
  1015. # Extra things you want in the pages HEAD tag. This will be added right
  1016. # before </head>
  1017. # (translatable)
  1018. # EXTRA_HEAD_DATA = ""
  1019. # Google Analytics or whatever else you use. Added to the bottom of <body>
  1020. # in the default template (base.tmpl).
  1021. # (translatable)
  1022. # BODY_END = ""
  1023. # The possibility to extract metadata from the filename by using a
  1024. # regular expression.
  1025. # To make it work you need to name parts of your regular expression.
  1026. # The following names will be used to extract metadata:
  1027. # - title
  1028. # - slug
  1029. # - date
  1030. # - tags
  1031. # - link
  1032. # - description
  1033. #
  1034. # An example re is the following:
  1035. # '.*\/(?P<date>\d{4}-\d{2}-\d{2})-(?P<slug>.*)-(?P<title>.*)\.rst'
  1036. # (Note the '.*\/' in the beginning -- matches source paths relative to conf.py)
  1037. # FILE_METADATA_REGEXP = None
  1038. # If enabled, extract metadata from docinfo fields in reST documents
  1039. # USE_REST_DOCINFO_METADATA = False
  1040. # If enabled, hide docinfo fields in reST document output
  1041. # HIDE_REST_DOCINFO = False
  1042. # Map metadata from other formats to Nikola names.
  1043. # Supported formats: yaml, toml, rest_docinfo, markdown_metadata
  1044. # METADATA_MAPPING = {}
  1045. #
  1046. # Example for Pelican compatibility:
  1047. # METADATA_MAPPING = {
  1048. # "rest_docinfo": {"summary": "description", "modified": "updated"},
  1049. # "markdown_metadata": {"summary": "description", "modified": "updated"}
  1050. # }
  1051. # Other examples: https://getnikola.com/handbook.html#mapping-metadata-from-other-formats
  1052. # If you hate "Filenames with Capital Letters and Spaces.md", you should
  1053. # set this to true.
  1054. UNSLUGIFY_TITLES = True
  1055. # Additional metadata that is added to a post when creating a new_post
  1056. # ADDITIONAL_METADATA = {}
  1057. # Nikola supports Open Graph Protocol data for enhancing link sharing and
  1058. # discoverability of your site on Facebook, Google+, and other services.
  1059. # Open Graph is enabled by default.
  1060. # USE_OPEN_GRAPH = True
  1061. # Nikola supports Twitter Card summaries, but they are disabled by default.
  1062. # They make it possible for you to attach media to Tweets that link
  1063. # to your content.
  1064. #
  1065. # IMPORTANT:
  1066. # Please note, that you need to opt-in for using Twitter Cards!
  1067. # To do this please visit https://cards-dev.twitter.com/validator
  1068. #
  1069. # Uncomment and modify to following lines to match your accounts.
  1070. # Images displayed come from the `previewimage` meta tag.
  1071. # You can specify the card type by using the `card` parameter in TWITTER_CARD.
  1072. # TWITTER_CARD = {
  1073. # # 'use_twitter_cards': True, # enable Twitter Cards
  1074. # # 'card': 'summary', # Card type, you can also use 'summary_large_image',
  1075. # # see https://dev.twitter.com/cards/types
  1076. # # 'site': '@website', # twitter nick for the website
  1077. # # 'creator': '@username', # Username for the content creator / author.
  1078. # }
  1079. # If webassets is installed, bundle JS and CSS into single files to make
  1080. # site loading faster in a HTTP/1.1 environment but is not recommended for
  1081. # HTTP/2.0 when caching is used. Defaults to True.
  1082. # USE_BUNDLES = True
  1083. # Plugins you don't want to use. Be careful :-)
  1084. # DISABLED_PLUGINS = ["render_galleries"]
  1085. # Special settings to disable only parts of the indexes plugin (to allow RSS
  1086. # but no blog indexes, or to allow blog indexes and Atom but no site-wide RSS).
  1087. # Use with care.
  1088. # DISABLE_INDEXES_PLUGIN_INDEX_AND_ATOM_FEED = False
  1089. # DISABLE_INDEXES_PLUGIN_RSS_FEED = False
  1090. # Add the absolute paths to directories containing plugins to use them.
  1091. # For example, the `plugins` directory of your clone of the Nikola plugins
  1092. # repository.
  1093. # EXTRA_PLUGINS_DIRS = []
  1094. # Add the absolute paths to directories containing themes to use them.
  1095. # For example, the `v7` directory of your clone of the Nikola themes
  1096. # repository.
  1097. # EXTRA_THEMES_DIRS = []
  1098. # List of regular expressions, links matching them will always be considered
  1099. # valid by "nikola check -l"
  1100. # LINK_CHECK_WHITELIST = []
  1101. # If set to True, enable optional hyphenation in your posts (requires pyphen)
  1102. # Enabling hyphenation has been shown to break math support in some cases,
  1103. # use with caution.
  1104. # HYPHENATE = False
  1105. # The <hN> tags in HTML generated by certain compilers (reST/Markdown)
  1106. # will be demoted by that much (1 → h1 will become h2 and so on)
  1107. # This was a hidden feature of the Markdown and reST compilers in the
  1108. # past. Useful especially if your post titles are in <h1> tags too, for
  1109. # example.
  1110. # (defaults to 1.)
  1111. # DEMOTE_HEADERS = 1
  1112. # Docutils, by default, will perform a transform in your documents
  1113. # extracting unique titles at the top of your document and turning
  1114. # them into metadata. This surprises a lot of people, and setting
  1115. # this option to True will prevent it.
  1116. # NO_DOCUTILS_TITLE_TRANSFORM = False
  1117. # If you don’t like slugified file names ([a-z0-9] and a literal dash),
  1118. # and would prefer to use all the characters your file system allows.
  1119. # USE WITH CARE! This is also not guaranteed to be perfect, and may
  1120. # sometimes crash Nikola, your web server, or eat your cat.
  1121. # USE_SLUGIFY = True
  1122. # Templates will use those filters, along with the defaults.
  1123. # Consult your engine's documentation on filters if you need help defining
  1124. # those.
  1125. # TEMPLATE_FILTERS = {}
  1126. # Put in global_context things you want available on all your templates.
  1127. # It can be anything, data, functions, modules, etc.
  1128. GLOBAL_CONTEXT = {}
  1129. # Add functions here and they will be called with template
  1130. # GLOBAL_CONTEXT as parameter when the template is about to be
  1131. # rendered
  1132. GLOBAL_CONTEXT_FILLER = []
  1133.