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.6KB

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