1
0

config.toml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. baseURL = "http://www.example.com"
  2. title = "johndoe"
  3. theme = "hugo-coder"
  4. languageCode = "en"
  5. defaultContentLanguage = "en"
  6. paginate = 20
  7. pygmentsStyle = "bw"
  8. pygmentsCodeFences = true
  9. pygmentsCodeFencesGuessSyntax = true
  10. enableEmoji = true
  11. # Enable Disqus comments
  12. # disqusShortname = "yourdiscussshortname"
  13. [params]
  14. author = "John Doe"
  15. description = "John Doe's personal website"
  16. keywords = "blog,developer,personal"
  17. info = ["Full Stack DevOps", "Magician"]
  18. avatarURL = "images/avatar.jpg"
  19. #gravatar = "john.doe@example.com"
  20. footerContent = "Enter a text here."
  21. dateFormat = "January 2, 2006"
  22. hideFooter = false
  23. hideCredits = false
  24. hideCopyright = false
  25. since = 2019
  26. # Git Commit in Footer, uncomment the line below to enable it
  27. commit = "https://github.com/luizdepra/hugo-coder/tree/"
  28. # Right To Left, shift content direction for languagues such as Arabic
  29. rtl = false
  30. # Specify light/dark colorscheme
  31. # Supported values:
  32. # "auto" (use preference set by browser)
  33. # "dark" (dark background, light foreground)
  34. # "light" (light background, dark foreground) (default)
  35. colorScheme = "auto"
  36. # Hide the toggle button, along with the associated vertical divider
  37. hideColorSchemeToggle = false
  38. # Series see also post count
  39. maxSeeAlsoItems = 5
  40. # Enable Twemoji
  41. enableTwemoji = false
  42. # Custom CSS
  43. customCSS = []
  44. # Custom SCSS, file path is relative to Hugo's asset folder (default: {your project root}/assets)
  45. customSCSS = []
  46. # Custom JS
  47. customJS = []
  48. # If you want to use fathom(https://usefathom.com) for analytics, add this section
  49. # [params.fathomAnalytics]
  50. # siteID = "ABCDE"
  51. # serverURL = "analytics.example.com" # Default value is cdn.usefathom.com, overwrite this if you are self-hosting
  52. # If you want to use plausible(https://plausible.io) for analytics, add this section
  53. # [params.plausibleAnalytics]
  54. # domain = "example.com"
  55. # serverURL = "analytics.example.com" # Default value is plausible.io, overwrite this if you are self-hosting or using a custom domain
  56. # If you want to use goatcounter(https://goatcounter.com) for analytics, add this section
  57. # [params.goatCounter]
  58. # code = "code"
  59. # If you want to use Cloudflare Web Analytics(https://cloudflare.com) for analytics, add this section
  60. # [params.cloudflare]
  61. # token = "token"
  62. # If you want to use Matomo(https://matomo.org) for analytics, add this section
  63. # [params.matomo]
  64. # siteID = "ABCDE" # Default value is "1", overwrite this if you are cloud-hosting
  65. # serverURL = "analytics.example.com" # For cloud-hosting, use provided URL, e.g. example.matomo.cloud
  66. # If you want to use Google Tag Manager(https://analytics.google.com/) for analytics, add this section
  67. # [params.googleTagManager]
  68. # id = "gid"
  69. # If you want to implement a Content-Security-Policy, add this section
  70. [params.csp]
  71. childsrc = ["'self'"]
  72. fontsrc = ["'self'", "https://fonts.gstatic.com", "https://cdn.jsdelivr.net/"]
  73. formaction = ["'self'"]
  74. framesrc = ["'self'"]
  75. imgsrc = ["'self'"]
  76. objectsrc = ["'none'"]
  77. stylesrc = [
  78. "'self'",
  79. "'unsafe-inline'",
  80. "https://fonts.googleapis.com/",
  81. "https://cdn.jsdelivr.net/"
  82. ]
  83. scriptsrc = ["'self'", "'unsafe-inline'", "https://www.google-analytics.com"]
  84. prefetchsrc = ["'self'"]
  85. # connect-src directive – defines valid targets for to XMLHttpRequest (AJAX), WebSockets or EventSource
  86. connectsrc = ["'self'", "https://www.google-analytics.com"]
  87. [taxonomies]
  88. category = "categories"
  89. series = "series"
  90. tag = "tags"
  91. author = "authors"
  92. [[params.social]]
  93. name = "Github"
  94. icon = "fa fa-github"
  95. weight = 1
  96. url = "https://github.com/johndoe/"
  97. [[params.social]]
  98. name = "Gitlab"
  99. icon = "fa fa-gitlab"
  100. weight = 2
  101. url = "https://gitlab.com/johndoe/"
  102. [[params.social]]
  103. name = "Twitter"
  104. icon = "fa fa-twitter"
  105. weight = 3
  106. url = "https://twitter.com/johndoe/"
  107. [[params.social]]
  108. name = "LinkedIn"
  109. icon = "fa fa-linkedin"
  110. weight = 4
  111. url = "https://www.linkedin.com/in/johndoe/"
  112. [[params.social]]
  113. name = "Medium"
  114. icon = "fa fa-medium"
  115. weight = 5
  116. url = "https://medium.com/@johndoe"
  117. [[params.social]]
  118. name = "RSS"
  119. icon = "fa fa-rss"
  120. weight = 6
  121. url = "https://myhugosite.com/index.xml"
  122. rel = "alternate"
  123. type = "application/rss+xml"
  124. [languages.en]
  125. languageName = ":uk:"
  126. [[languages.en.menu.main]]
  127. name = "About"
  128. weight = 1
  129. url = "about/"
  130. [[languages.en.menu.main]]
  131. name = "Blog"
  132. weight = 2
  133. url = "posts/"
  134. [[languages.en.menu.main]]
  135. name = "Projects"
  136. weight = 3
  137. url = "projects/"
  138. [[languages.en.menu.main]]
  139. name = "Contact me"
  140. weight = 5
  141. url = "contact/"
  142. [languages.pt-br]
  143. languageName = ":brazil:"
  144. title = "João Ninguém"
  145. [languages.pt-br.params]
  146. author = "João Ninguém"
  147. info = "Full Stack DevOps e Mágico"
  148. description = "Sítio pessoal de João Ninguém"
  149. keywords = "blog,desenvolvedor,pessoal"
  150. footerContent = "Coloque algum texto aqui."
  151. [[languages.pt-br.menu.main]]
  152. name = "Sobre"
  153. weight = 1
  154. url = "about/"
  155. [[languages.pt-br.menu.main]]
  156. name = "Blog"
  157. weight = 2
  158. url = "posts/"
  159. [[languages.pt-br.menu.main]]
  160. name = "Projetos"
  161. weight = 3
  162. url = "projects/"
  163. [[languages.pt-br.menu.main]]
  164. name = "Contato"
  165. weight = 5
  166. url = "contact/"