Advertisement
Guest User

Untitled

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