config.toml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. # set `baseurl` to your root domain
  2. # if you set it to "/" share icons won't work properly on production
  3. baseurl = "https://www.nobad.news/" # Include trailing slash
  4. title = "News"
  5. author = "news"
  6. #canonifyurls = true
  7. paginate = 8
  8. PaginatePath = "/posts/"
  9. theme = "hugo-curious"
  10. publishDir= "/tmp/tony-chin"
  11. DefaultContentLanguage = "en"
  12. # [languages]
  13. # config/_default/languages.toml
  14. # [menus]
  15. # config/_default/menus/menu.xx.toml
  16. [taxonomies]
  17. category = "categories"
  18. tag = "tags"
  19. series = "series"
  20. [markup]
  21. [markup.goldmark]
  22. [markup.goldmark.renderer]
  23. hardWraps = false
  24. unsafe = true # change to false to disable inclusion of rawHTML and math functions
  25. xhtml = false
  26. [markup.goldmark.extensions]
  27. typographer = false
  28. [markup.highlight]
  29. codeFences = true
  30. guessSyntax = false
  31. hl_Lines = "--"
  32. lineNoStart = 1
  33. lineNos = true # always set to true # else line numbers won't show at all! even when you toggle them on in the UI
  34. lineNumbersInTable = false # toggling this on (i.e to true) or deleting this line will break the code blocks functionality. Will
  35. noClasses = false
  36. # style = "monokai"
  37. tabWidth = 2
  38. [permalinks]
  39. page = "/:slug/"
  40. posts = "/:slug/"
  41. notes = "/:slug/"
  42. [params]
  43. author = "steelers"
  44. twitter = "@vietanhdev"
  45. largeTwitterCard = false # set to true if you want to show a large twitter card image. The default is a small twitter card image
  46. introDescription = "test"
  47. description = "test"
  48. searchTypes = ["posts", "notes"]
  49. codeLineNumbers = true
  50. # Google analytics Id
  51. ga_analytics = "UA-176023093-1"
  52. # limit the number of taxonomies links shown on the sidebar of each page by default.
  53. numberOfTagsShown = 8 # Applies for all other default & custom taxonomies. e.g categories, brands see https://gohugo.io/content-management/taxonomies#what-is-a-taxonomy
  54. # will be used on share >> twitter, facebook, linkedin
  55. fallBackOgImage = "images/thumbnail.jpg"
  56. # directory(s) where your articles are located
  57. mainSections = ["posts"] # see config details here https://gohugo.io/functions/where/#mainsections
  58. # center logo on navbar
  59. centerLogo = false # Set to "true" for centering or "false" for left aligned.
  60. logo = "logo.png"
  61. # Set the collapsed mobile navigation to either appear from the left or the right
  62. mobileNavigation = "right" # if you prefer right change to 'right'
  63. # some site owners want to decide how they would like their sites to be introduced users. These settings give you as a site owner to decide how the user will view your site for the first time.
  64. # please note that you cannot enforce both modes at the same time. i.e by enforcing one mode, you priotise it over the other (by setting it to true). enforceDarkMode will be commented out
  65. # please also not that mode toggle UI will remain in place. That way, if a user prefers darkmode, they can have their way.
  66. enforceLightMode = true
  67. # enforceDarkMode = false
  68. # Text for the languages menu.
  69. # languageMenuName = "🌐"
  70. # Title separator, default to |.
  71. # titleSeparator = "|"
  72. # Enable or disable comment globally. Default to true.
  73. # comment = false
  74. # Maximum number of recent posts.
  75. numberOfRecentPosts = 8
  76. # Maximum number of featured posts.
  77. numberOfFeaturedPosts = 8
  78. # Comment
  79. talkyardServerUrl = "https://comments-for-aicurious-io.talkyard.net"
  80. talkyardScriptUrl = "https://c1.ty-cdn.net/-/talkyard-comments.min.js"
  81. # Contact form
  82. contactFormSubmitUrl = "https://formspree.io/xaypalea"
  83. # Buy me a coffee
  84. # Comment below line to disable
  85. buyMeACoffeeId = "vietanhdev"
  86. # MailChimp Subscriber form
  87. # Comment below line to disable
  88. mailChimpUrl = "https://vietanhdev.us13.list-manage.com/subscribe/post?u=c5f9d88238b4c0ec0106fe459&id=e74e121dc8"
  89. # Google Adsense
  90. # adsenseDataAdClient = ""
  91. # Cookie Consent
  92. showCookieConsent = true
  93. privacyPolicyPage = "https://aicurious.io/privacy-policy/"
  94. [related]
  95. includeNewer = true
  96. threshold = 10
  97. toLower = false
  98. [[related.indices]]
  99. name = "keywords"
  100. weight = 100
  101. [[related.indices]]
  102. name = "date"
  103. weight = 10
  104. [outputs]
  105. home = ["HTML", "RSS", "JSON"]