Hugo Dark Theme Website Generator https://after-dark.habd.as
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.

config.toml 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. #
  2. # Copyright (C) 2019 Josh Habdas <jhabdas@protonmail.com>
  3. #
  4. # This file is part of After Dark.
  5. #
  6. # After Dark is free software: you can redistribute it and/or modify
  7. # it under the terms of the GNU Affero General Public License as published
  8. # by the Free Software Foundation, either version 3 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # After Dark is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU Affero General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU Affero General Public License
  17. # along with this program. If not, see <https://www.gnu.org/licenses/>.
  18. #
  19. baseurl = "https://after-dark.habd.as/" # Controls base URL sitewide
  20. title = "After Dark" # Homepage title and page title suffix
  21. paginate = 37 # Number of items to show before paginating
  22. copyright = "Copyright &copy; Josh Habdas. Licensed under <a target=\"_blank\" rel=\"external noopener license\" href=\"https://www.gnu.org/licenses/agpl.html\">AGPL-3.0-or-later</a>."
  23. # Controls default theme and theme components
  24. theme = [
  25. "after-dark" # AGPL-3.0-or-later
  26. ]
  27. disableLiveReload = false # Optional, set true to disable live reload
  28. enableRobotsTXT = true # Suggested, enable robots.txt file
  29. pygmentsCodefences = true # Suggested, highlight fenced code blocks
  30. pygmentsUseClasses = true # Required for custom syntax highlighting
  31. sectionPagesMenu = "main" # Enable menu system for lazy bloggers
  32. footnoteReturnLinkContents = "↩" # Provides a nicer footnote return link
  33. [languages.en]
  34. languageCode = "en-US" # Controls site language
  35. languageName = "English"
  36. [languages.id]
  37. languageCode = "id-ID" # Controls site language
  38. languageName = "Indonesia"
  39. [outputs]
  40. home = ["HTML", "RSS", "JSON"]
  41. [params]
  42. description = "After Dark is free and open-source software you can use to create a website, blog or app." # Suggested, controls default description meta
  43. author = "Josh Habdas" # Optional, controls author name display on posts
  44. hide_author = true # Optional, set true to suppress author name on posts
  45. has_cookies = false # Optional, set true to disable cookie disclaimer
  46. disable_csp = true # Optional, set true to disable content security policy
  47. images = [
  48. "https://after-dark.habd.as/images/screenshots/after-dark-v6.15.0-homepage-fs8.png"
  49. ] # Suggested, controls default Open Graph images
  50. [params.layout.menu.main]
  51. hidden = false # Optional, set false or remove to show section menu
  52. [params.security.csp.directives]
  53. workerSrc = [
  54. "'self'",
  55. "blob:"
  56. ]
  57. connectSrc = [
  58. "'self'",
  59. "wss:",
  60. "data:"
  61. ]
  62. mediaSrc = [
  63. "https://jhabdas.keybase.pub"
  64. ]
  65. imgSrc = [
  66. "'self'",
  67. "data:",
  68. "https://*.unsplash.com"
  69. ]
  70. scriptSrc = [
  71. "'self'",
  72. "'unsafe-inline'",
  73. "'unsafe-eval'",
  74. "https:",
  75. "'sha512-2t0yyNrUdtn9WGIoBVxq5vtoJQYfoDQDbqRPpOb75f1hiL39DGLdJKDrGP60fBhXfrFeKyVhzWJvHvLgln/ElA=='",
  76. "'sha512-hno7WeTIciCJSjg/myjyK30HYkrcGCVwo4g4SpUalvrs3r2lS7bPNIQwbCNypKbg7BZ1sA4AsGnk6Gq4NOKpGA=='",
  77. "'sha512-ISTAV0GadOIz/NXXHOS&#43;eCM0ysXVVHhQTlvA6LJxz/DeA5yIxm0Vqf5IE&#43;WH0yuuXkayAKtoZkQ326nch5f/fg=='",
  78. "'sha512-/uSbYvALRP8DT0ll9zazZRCrY2NZuNudmKGLZF0AjiwYn7xJxM8dGpnaszOca4opMlgpVBgRh5tdAqxQCQ0qrA=='",
  79. "'strict-dynamic'"
  80. ]
  81. [params.seo.webmaster_verifications]
  82. yandex = "4006a8813cbb9fdb" # https://webmaster.yandex.com/
  83. [[menu.main]]
  84. name = "Overview"
  85. weight = 1
  86. identifier = "home"
  87. url = "/"
  88. [[menu.main]]
  89. name = "Features"
  90. weight = 2
  91. identifier = "feature"
  92. url = "/feature/"
  93. [[menu.main]]
  94. name = "Modules"
  95. weight = 3
  96. identifier = "module"
  97. url = "/module/"
  98. [[menu.main]]
  99. name = "Shortcodes"
  100. weight = 4
  101. identifier = "shortcode"
  102. url = "/shortcode/"
  103. [[menu.main]]
  104. name = "Extras"
  105. weight = 5
  106. identifier = "extra"
  107. url = "/extra/"
  108. [[menu.main]]
  109. name = "Search"
  110. weight = 6
  111. identifier = "search"
  112. url = "/search/"