1
0

config.toml 5.1 KB

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