config.toml 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. baseURL = "https://unbl.ink/"
  2. title = "UNBLINK"
  3. enableRobotsTXT = true
  4. enableEmoji = true
  5. theme = "paper"
  6. paginate = 100
  7. # Highlight options. See https://gohugo.io/content-management/syntax-highlighting/
  8. PygmentsCodeFences = true # Enable syntax highlighting with GitHub flavoured code fences
  9. PygmentsUseClasses = true # Use CSS classes to format highlighted code
  10. PygmentsCodefencesGuessSyntax = true
  11. PygmentsOptions = "linenos=table"
  12. # language support # en / zh-cn / other... translations present in i18n/
  13. defaultContentLanguage = "en" # Default language to use
  14. [languages.en]
  15. languageCode = "en"
  16. [author] # essential
  17. name = "CP"
  18. [sitemap] # essential
  19. changefreq = "weekly"
  20. priority = 0.5
  21. filename = "sitemap.xml"
  22. [[menu.main]] # config your menu
  23. name = "Home"
  24. weight = 10
  25. identifier = "home"
  26. url = "/"
  27. [[menu.main]]
  28. name = "Archives"
  29. weight = 20
  30. identifier = "archives"
  31. url = "/post/"
  32. [[menu.main]]
  33. name = "Categories"
  34. weight = 40
  35. identifier = "categories"
  36. url = "/categories/"
  37. [params]
  38. debug = false # If true, load `eruda.min.js`. See https://github.com/liriliri/eruda
  39. since = "2015" # Site creation time
  40. homeFullContent = true # if false, show post summaries on home page. Othewise show full content.
  41. rssFullContent = true # if false, Rss feed instead of the summary
  42. # site info (optional)
  43. logoTitle = "UNBLINK" # default: the title value
  44. description = "UNBLINK"
  45. # paginate of archives, tags and categories
  46. archive-paginate = 100
  47. # paginate style, default use numbered pagination links
  48. # if true, use original "Previous" and "Next" links.
  49. # paginateOriginalStyle = true
  50. # The date format to use; for a list of valid formats, see https://gohugo.io/functions/format/
  51. dateFormatToUse = "2006-01-02"
  52. # show word count and read time ?
  53. moreMeta = true
  54. # show language chooser in menu
  55. showMenuLanguageChooser = true
  56. # Some global options, you can also close or open something in front matter for a single post, see more information from `archetypes/default.md`.
  57. toc = true
  58. photoswipe = true # see https://github.com/dimsemenov/PhotoSwipe
  59. bootcdn = false # In china. @Deprecated: use [params.publicCDN]
  60. mathjax = false # see https://www.mathjax.org/
  61. contentCopyright = '<a rel="license noopener" href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank">CC BY-NC-ND 4.0</a>'
  62. # Link custom CSS and JS assets
  63. # (relative to /static/css and /static/js respectively)
  64. customCSS = [] # if ['custom.css'], load '/static/css/custom.css' file
  65. customJS = [] # if ['custom.js'], load '/static/js/custom.js' file
  66. [params.publicCDN] # load these files from public cdn
  67. enable = false
  68. jquery = '<script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>'
  69. slideout = '<script src="https://cdn.jsdelivr.net/npm/slideout@1.0.1/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>'
  70. gitmentJS = '<script src="https://cdn.jsdelivr.net/npm/gitment@0.0.3/dist/gitment.browser.min.js" crossorigin="anonymous"></script>'
  71. gitmentCSS = '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitment@0.0.3/style/default.min.css" crossorigin="anonymous">'