config.toml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. # Configuration of Hugo
  2. # Guide: https://sourcethemes.com/academic/docs/get-started/
  3. # Hugo Documentation: https://gohugo.io/getting-started/configuration/#all-configuration-settings
  4. #
  5. # This file is formatted using TOML syntax - learn more at https://learnxinyminutes.com/docs/toml/
  6. # Each configuration section is defined by a name in square brackets (e.g. `[outputs]`).
  7. # Title of your site
  8. title = "Academic"
  9. # The URL of your site.
  10. # End your URL with a `/` trailing slash, e.g. `https://example.com/`.
  11. baseurl = "/"
  12. # Enter a copyright notice to display in the site footer.
  13. # To display a copyright symbol, type `©`. For current year, type `{year}`.
  14. copyright = ""
  15. ############################
  16. ## Advanced options below ##
  17. ############################
  18. # Name of Academic theme folder in `themes/`.
  19. theme = "academic"
  20. # Get last modified date for content from Git?
  21. enableGitInfo = false
  22. # Default language to use (if you setup multilingual support)
  23. defaultContentLanguage = "en"
  24. hasCJKLanguage = false # Set `true` for Chinese/Japanese/Korean languages.
  25. defaultContentLanguageInSubdir = false
  26. removePathAccents = true # Workaround for https://github.com/gohugoio/hugo/issues/5687
  27. summaryLength = 30 # Listing summary length in words. Also, see `abstract_length` in `params.toml`.
  28. paginate = 10 # Number of items per page in paginated lists.
  29. enableEmoji = true
  30. enableRobotsTXT = true
  31. footnotereturnlinkcontents = "<sup>^</sup>"
  32. ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
  33. # Workaround Hugo publishing taxonomy URLs as plurals - consistently use singular across Academic.
  34. [permalinks]
  35. authors = "/author/:slug/"
  36. tags = "/tag/:slug/"
  37. categories = "/category/:slug/"
  38. publication_types = "/publication-type/:slug/"
  39. [outputs]
  40. home = [ "HTML", "RSS", "JSON", "WebAppManifest" ]
  41. section = [ "HTML", "RSS" ]
  42. [mediaTypes."application/manifest+json"]
  43. suffixes = ["webmanifest"]
  44. [outputFormats.WebAppManifest]
  45. mediaType = "application/manifest+json"
  46. rel = "manifest"
  47. # Configure the Markdown renderer.
  48. [markup]
  49. defaultMarkdownHandler = "goldmark"
  50. [markup.goldmark]
  51. [markup.goldmark.renderer]
  52. unsafe = true # Enable user to embed HTML snippets in Markdown content.
  53. [markup.highlight]
  54. codeFences = false # Disable Hugo's code highlighter as it conflicts with Academic's highligher.
  55. [markup.tableOfContents]
  56. startLevel = 2
  57. endLevel = 3
  58. [imaging]
  59. resampleFilter = "lanczos"
  60. quality = 90
  61. anchor = "smart" # Anchor for cropping. Options include Smart and Center.
  62. # Taxonomies.
  63. [taxonomies]
  64. tag = "tags"
  65. category = "categories"
  66. publication_type = "publication_types"
  67. author = "authors"
  68. # Related content.
  69. [related]
  70. threshold = 80.0
  71. includeNewer = true
  72. toLower = true
  73. [[related.indices]]
  74. name = "title"
  75. weight = 60.0
  76. [[related.indices]]
  77. name = "summary"
  78. weight = 50.0
  79. [[related.indices]]
  80. name = "tags"
  81. weight = 80.0
  82. [[related.indices]]
  83. name = "categories"
  84. weight = 70.0
  85. [[related.indices]]
  86. name = "authors"
  87. weight = 20.0