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

configuration.md 6.4KB

6 years ago
6 years ago
6 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. +++
  2. title = "Configuration"
  3. weight = 4
  4. +++
  5. The default configuration is sufficient to get Zola running locally but not more than that.
  6. It follows the philosophy of paying for only what you need; almost everything is turned off by default.
  7. To change the configuration, edit the `config.toml` file.
  8. If you are not familiar with TOML, have a look at [the TOML spec](https://github.com/toml-lang/toml).
  9. Only the `base_url` variable is mandatory; everything else is optional. All configuration variables
  10. used by Zola as well as their default values are listed below:
  11. ```toml
  12. # The base URL of the site; the only required configuration variable.
  13. base_url = "mywebsite.com"
  14. # The site title and description; used in RSS by default.
  15. title = ""
  16. description = ""
  17. # The default language; used in RSS.
  18. default_language = "en"
  19. # The site theme to use.
  20. theme = ""
  21. # Slugify paths for compatibility with ASCII-only URLs produced by Zola < 0.9
  22. # Enabling this setting removes non-English (UTF8) characters in URLs
  23. slugify_paths = false
  24. # When set to "true", all code blocks are highlighted.
  25. highlight_code = false
  26. # The theme to use for code highlighting.
  27. # See below for list of allowed values.
  28. highlight_theme = "base16-ocean-dark"
  29. # When set to "true", an RSS feed is automatically generated.
  30. generate_rss = false
  31. # The number of articles to include in the RSS feed. All items are included if
  32. # this limit is not set (the default).
  33. # rss_limit = 20
  34. # When set to "true", files in the `static` directory are hard-linked. Useful for large
  35. # static files. Note that for this to work, both `static` and the
  36. # output directory need to be on the same filesystem. Note that the theme's `static`
  37. # files are always copied, regardles of this setting.
  38. # hard_link_static = false
  39. # The taxonomies to be rendered for the site and their configuration.
  40. # Example:
  41. # taxonomies = [
  42. # {name = "tags", rss = true}, # each tag will have its own RSS feed
  43. # {name = "tags", lang = "fr"}, # you can have taxonomies with the same name in multiple languages
  44. # {name = "categories", paginate_by = 5}, # 5 items per page for a term
  45. # {name = "authors"}, # Basic definition: no RSS or pagination
  46. # ]
  47. #
  48. taxonomies = []
  49. # The additional languages for the site.
  50. # Example:
  51. # languages = [
  52. # {code = "fr", rss = true}, # there will be a RSS feed for French content
  53. # {code = "fr", search = true}, # there will be a Search Index for French content
  54. # {code = "it"}, # there won't be a RSS feed for Italian content
  55. # ]
  56. #
  57. languages = []
  58. # When set to "true", the Sass files in the `sass` directory are compiled.
  59. compile_sass = false
  60. # When set to "true", a search index is built from the pages and section
  61. # content for `default_language`.
  62. build_search_index = false
  63. # A list of glob patterns specifying asset files to ignore when the content
  64. # directory is processed. Defaults to none, which means that all asset files are
  65. # copied over to the `public` directory.
  66. # Example:
  67. # ignored_content = ["*.{graphml,xlsx}", "temp.*"]
  68. ignored_content = []
  69. # A list of directories used to search for additional `.sublime-syntax` files.
  70. extra_syntaxes = []
  71. <<<<<<< HEAD
  72. # Optional translation object. The key if present should be a language code.
  73. # Example:
  74. # default_language = "fr"
  75. #
  76. # [translations]
  77. # [translations.fr]
  78. # title = "Un titre"
  79. #
  80. # [translations.en]
  81. # title = "A title"
  82. # Configuration of the link checker.
  83. [link_checker]
  84. # Skip link checking for external URLs that start with these prefixes
  85. skip_prefixes = [
  86. "http://[2001:db8::]/",
  87. ]
  88. # Skip anchor checking for external URLs that start with these prefixes
  89. skip_anchor_prefixes = [
  90. "https://caniuse.com/",
  91. ]
  92. [extra]
  93. ```
  94. ## Syntax highlighting
  95. Zola currently has the following highlight themes available:
  96. - [1337](https://tmtheme-editor.herokuapp.com/#!/editor/theme/1337)
  97. - [agola-dark](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Agola%20Dark)
  98. - [ascetic-white](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Ascetic%20White)
  99. - [axar](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Axar)
  100. - [base16-ocean-dark](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Base16%20Ocean%20Dark)
  101. - [base16-ocean-light](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Base16%20Ocean%20Light)
  102. - [bbedit](https://tmtheme-editor.herokuapp.com/#!/editor/theme/BBEdit)
  103. - [boron](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Boron)
  104. - [charcoal](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Charcoal)
  105. - [cheerfully-light](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Cheerfully%20Light)
  106. - [classic-modified](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Classic%20Modified)
  107. - [demain](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Demain)
  108. - [dimmed-fluid](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Dimmed%20Fluid)
  109. - [dracula](https://draculatheme.com/)
  110. - [gray-matter-dark](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Gray%20Matter%20Dark)
  111. - [gruvbox-dark](https://github.com/morhetz/gruvbox)
  112. - [gruvbox-light](https://github.com/morhetz/gruvbox)
  113. - [idle](https://tmtheme-editor.herokuapp.com/#!/editor/theme/IDLE)
  114. - [inspired-github](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Inspiredgithub)
  115. - [ir-white](https://tmtheme-editor.herokuapp.com/#!/editor/theme/IR_White)
  116. - [kronuz](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Kronuz)
  117. - [material-dark](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Material%20Dark)
  118. - [material-light](https://github.com/morhetz/gruvbox)
  119. - [monokai](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Monokai)
  120. - [solarized-dark](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Solarized%20(dark))
  121. - [solarized-light](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Solarized%20(light))
  122. - [subway-madrid](https://github.com/idleberg/Subway.tmTheme)
  123. - [subway-moscow](https://github.com/idleberg/Subway.tmTheme)
  124. - [visual-studio-dark](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Visual%20Studio%20Dark)
  125. - [ayu-light](https://github.com/dempfi/ayu)
  126. - [ayu-dark](https://github.com/dempfi/ayu)
  127. - [ayu-mirage](https://github.com/dempfi/ayu)
  128. - [Tomorrow](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Tomorrow)
  129. - [one-dark](https://github.com/andresmichel/one-dark-theme)
  130. - [zenburn](https://github.com/colinta/zenburn)
  131. Zola uses the Sublime Text themes, making it very easy to add more.
  132. If you want a theme not listed above, please open an issue or a pull request on the [Zola repo](https://github.com/getzola/zola).