Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

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