Hugo Dark Theme Site 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 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 = 40 # 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. [deployment]
  34. order = [".mp4", ".gif$", ".png$", ".jpg$", ".bpg$", ".svg$"]
  35. [[deployment.targets]]
  36. name = "s3-aws"
  37. URL = "s3://after-dark.habd.as?region=us-east-1"
  38. cloudFrontDistributionID = "E15C0TR21AL7CY"
  39. [[deployment.matchers]]
  40. pattern = "^.+\\.(js|css|svg|ttf|woff|woff2|eot|png|gif|pdf)$"
  41. cacheControl = "max-age=630720000, no-transform, public"
  42. gzip = true
  43. [[deployment.matchers]]
  44. pattern = "^.+\\.(mp4|jpg|jpeg|bpg)$"
  45. cacheControl = "max-age=630720000, no-transform, public" # cache static assets for 20 years
  46. gzip = false
  47. [[deployment.matchers]]
  48. pattern = "^.+\\.(html|xml|json)$"
  49. cacheControl = "max-age=300, no-transform, public" # cache output formats for 5 minutes
  50. gzip = true