Advertisement
Guest User

Untitled

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