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

7 years ago
7 years ago
6 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. +++
  2. title = "Configuration"
  3. weight = 40
  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. # Optional translation object. The key if present should be a language code.
  72. # Example:
  73. # default_language = "fr"
  74. #
  75. # [translations]
  76. # [translations.fr]
  77. # title = "Un titre"
  78. #
  79. # [translations.en]
  80. # title = "A title"
  81. # Configuration of the link checker.
  82. [link_checker]
  83. # Skip link checking for external URLs that start with these prefixes
  84. skip_prefixes = [
  85. "http://[2001:db8::]/",
  86. ]
  87. # Skip anchor checking for external URLs that start with these prefixes
  88. skip_anchor_prefixes = [
  89. "https://caniuse.com/",
  90. ]
  91. [extra]
  92. ```
  93. ## Syntax highlighting
  94. Zola currently has the following highlight themes available:
  95. - [1337](https://tmtheme-editor.herokuapp.com/#!/editor/theme/1337)
  96. - [agola-dark](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Agola%20Dark)
  97. - [ascetic-white](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Ascetic%20White)
  98. - [axar](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Axar)
  99. - [base16-ocean-dark](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Base16%20Ocean%20Dark)
  100. - [base16-ocean-light](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Base16%20Ocean%20Light)
  101. - [bbedit](https://tmtheme-editor.herokuapp.com/#!/editor/theme/BBEdit)
  102. - [boron](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Boron)
  103. - [charcoal](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Charcoal)
  104. - [cheerfully-light](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Cheerfully%20Light)
  105. - [classic-modified](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Classic%20Modified)
  106. - [demain](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Demain)
  107. - [dimmed-fluid](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Dimmed%20Fluid)
  108. - [dracula](https://draculatheme.com/)
  109. - [gray-matter-dark](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Gray%20Matter%20Dark)
  110. - [gruvbox-dark](https://github.com/morhetz/gruvbox)
  111. - [gruvbox-light](https://github.com/morhetz/gruvbox)
  112. - [idle](https://tmtheme-editor.herokuapp.com/#!/editor/theme/IDLE)
  113. - [inspired-github](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Inspiredgithub)
  114. - [ir-white](https://tmtheme-editor.herokuapp.com/#!/editor/theme/IR_White)
  115. - [kronuz](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Kronuz)
  116. - [material-dark](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Material%20Dark)
  117. - [material-light](https://github.com/morhetz/gruvbox)
  118. - [monokai](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Monokai)
  119. - [solarized-dark](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Solarized%20(dark))
  120. - [solarized-light](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Solarized%20(light))
  121. - [subway-madrid](https://github.com/idleberg/Subway.tmTheme)
  122. - [subway-moscow](https://github.com/idleberg/Subway.tmTheme)
  123. - [visual-studio-dark](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Visual%20Studio%20Dark)
  124. - [ayu-light](https://github.com/dempfi/ayu)
  125. - [ayu-dark](https://github.com/dempfi/ayu)
  126. - [ayu-mirage](https://github.com/dempfi/ayu)
  127. - [Tomorrow](https://tmtheme-editor.herokuapp.com/#!/editor/theme/Tomorrow)
  128. - [one-dark](https://github.com/andresmichel/one-dark-theme)
  129. - [zenburn](https://github.com/colinta/zenburn)
  130. Zola uses the Sublime Text themes, making it very easy to add more.
  131. 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).