config.toml 4.8 KB

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