The DevOps Blog
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1375 lines
53KB

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