hugo.yaml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. baseURL: https://sacha.ligthert.net/
  2. title: "Sacha Ligthert"
  3. theme: "hugo-book"
  4. copyright: "2026"
  5. # Book configuration
  6. disablePathToLower: true
  7. enableGitInfo: false
  8. # Needed for mermaid/katex shortcodes
  9. markup:
  10. goldmark:
  11. renderer:
  12. unsafe: true
  13. tableOfContents:
  14. startLevel: 5
  15. highlight:
  16. style: base16-snazzy
  17. # Multi-lingual mode config
  18. # There are different options to translate files
  19. # See https://gohugo.io/content-management/multilingual/#translation-by-filename
  20. # And https://gohugo.io/content-management/multilingual/#translation-by-content-directory
  21. # languages:
  22. # en:
  23. # languageName: English
  24. # contentDir: content
  25. # weight: 1
  26. # zh:
  27. # languageName: Chinese
  28. # contentDir: content.zh
  29. # weight: 2
  30. # he:
  31. # languageName: Hebrew
  32. # contentDir: content.he
  33. # languageDirection: rtl
  34. # weight: 3
  35. menu:
  36. # home:
  37. # - name: "/"
  38. # pageRef: "/"
  39. # weight: 10
  40. # - name: "Notes"
  41. # url: "/notes/"
  42. # weight: 20
  43. # before: []
  44. # after:
  45. # - name: "Github"
  46. # url: "https://github.com/alex-shpak/hugo-book"
  47. # weight: 10
  48. taxonomies:
  49. tag: tags
  50. params:
  51. # (Optional, default light) Sets color theme: light, dark or auto.
  52. # Theme 'auto' switches between dark and light modes based on browser/os preferences
  53. BookTheme: "light"
  54. # (Optional, default none) Controls table of contents visibility on right side of pages.
  55. # Start and end levels can be controlled with markup.tableOfContents setting.
  56. # You can also specify this parameter per page in front matter.
  57. # BookToC: true
  58. BookToC: true
  59. # (Optional, default favicon.png) Set the path to a favicon file.
  60. # If the favicon is /static/favicon.png then the path would be favicon.png
  61. # BookFavicon: "favicon.png"
  62. # (Optional, default none) Set the path to a logo for the book.
  63. # If the logo is /static/logo.png then the path would be logo.png
  64. # BookLogo: /logo.png
  65. # (Optional, default docs) Specify root page to render child pages as menu.
  66. # Page is resoled by .GetPage function: https://gohugo.io/functions/getpage/
  67. # For backward compatibility you can set '*' to render all sections to menu. Acts same as '/'
  68. # BookSection: docs
  69. BookSection: '*'
  70. # (Optional, default none) Set template for commit link for the page. Requires enableGitInfo.
  71. # When set enabled 'Last Modified' and a link to the commit in the footer of the page.
  72. # Param is executed as template using .Site, .Page and .GitInfo as context.
  73. # BookLastChangeLink: 'https://github.com/alex-shpak/hugo-book/commit/{{ .GitInfo.Hash }}'
  74. # (Optional, default none) Set template for edit page link.
  75. # When set enabled 'Edit this page' link in the footer of the page.
  76. # Param is executed as template using .Site, .Page and .Path as context.
  77. # BookEditLink: 'https://github.com/alex-shpak/hugo-book/edit/main/exampleSite/{{ .Path }}'
  78. # (Optional, default 'January 2, 2006') Configure the date format used on the pages
  79. # - In git information
  80. # - In blog posts
  81. # https://gohugo.io/functions/time/format/
  82. # BookDateFormat: "January 2, 2006"
  83. # (Optional, default true) Enables search function with flexsearch,
  84. # Index is built on fly, therefore it might slowdown your website.
  85. # Configuration for indexing can be adjusted in i18n folder per language.
  86. BookSearch: false
  87. # (Optional, default true) Enables comments template on pages
  88. # By default partals/docs/comments.html includes Disqus template
  89. # See https://gohugo.io/content-management/comments/#configure-disqus
  90. # Can be overwritten by same param in page frontmatter
  91. BookComments: false
  92. # /!\ This is an experimental feature, might be removed or changed at any time
  93. # (Optional, experimental, default false) Enables portable links and link checks in markdown pages.
  94. # Portable links meant to work with text editors and let you write markdown without {{< relref >}} shortcode
  95. # Theme will print warning or error if page referenced in markdown does not exists.
  96. # Possible values are false | 'warning' | 'error'
  97. BookPortableLinks: false
  98. # /!\ This is an experimental feature, might be removed or changed at any time
  99. # (Optional, experimental, default false) Enables service worker that caches visited pages and resources for offline use.
  100. # can be false, true or 'precache', precache will try to download all content pages on install.
  101. BookServiceWorker: 'precache'
  102. # /!\ This is an experimental feature, might be removed or changed at any time
  103. # (Optional, experimental, default false) Enables a drop-down menu for translations only if a translation is present.
  104. BookTranslatedOnly: false