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.

index.md 1.5KB

6 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. +++
  2. title = "even"
  3. description = "A robust, elegant dark theme"
  4. template = "theme.html"
  5. date = 2018-01-25T18:44:44+01:00
  6. [extra]
  7. created = 2018-02-22T19:13:36+01:00
  8. updated = 2018-01-25T18:44:44+01:00
  9. repository = "https://github.com/Keats/even"
  10. homepage = "https://github.com/Keats/even"
  11. minimum_version = "0.3"
  12. license = "MIT"
  13. [extra.author]
  14. name = "Vincent Prouillet"
  15. homepage = "https://vincent.is"
  16. +++
  17. # Even
  18. Even is a clean, responsive theme based on the Hugo theme with the same name featuring categories, tags and pagination.
  19. ![even screenshot](https://github.com/Keats/even/blob/master/screenshot.png?raw=true)
  20. ## Contents
  21. - [Installation](#installation)
  22. - [Options](#options)
  23. - [Top menu](#top-menu)
  24. - [Title](#title)
  25. ## Installation
  26. First download this theme to your `themes` directory:
  27. ```bash
  28. $ cd themes
  29. $ git clone https://github.com/Keats/even.git
  30. ```
  31. and then enable it in your `config.toml`:
  32. ```toml
  33. theme = "even"
  34. ```
  35. ## Options
  36. ### Top-menu
  37. Set a field in `extra` with a key of `even_menu`:
  38. ```toml
  39. # This is the default menu
  40. even_menu = [
  41. {url = "$BASE_URL", name = "Home"},
  42. {url = "$BASE_URL/categories", name = "Categories"},
  43. {url = "$BASE_URL/tags", name = "Tags"},
  44. {url = "$BASE_URL/about", name = "About"},
  45. ]
  46. ```
  47. If you put `$BASE_URL` in a url, it will automatically be replaced by the actual
  48. site URL.
  49. ### Title
  50. The site title is shown on the header. As it might be different from the `<title>`
  51. element that the `title` field in the config represents, you can set the `even_title`
  52. instead.