config.toml 3.7 KB

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