Advertisement
msx

Untitled

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