config.toml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716
  1. baseURL = "https://ublogger.netlify.app/"
  2. # [en, zh-cn, fr, pl, ...] determines default content language
  3. # [en, zh-cn, fr, pl, ...] 设置默认的语言
  4. defaultContentLanguage = "en"
  5. # theme
  6. # 主题
  7. theme = "uBlogger"
  8. # themes directory
  9. # 主题目录
  10. # themesDir = "../.."
  11. # website title
  12. # 网站标题
  13. title = "Blog | Technically.fun"
  14. # whether to use robots.txt
  15. # 是否使用 robots.txt
  16. enableRobotsTXT = true
  17. # whether to use git commit log
  18. # 是否使用 git 信息
  19. # enableGitInfo = true
  20. # whether to use emoji code
  21. # 是否使用 emoji 代码
  22. enableEmoji = true
  23. [languages]
  24. [languages.en]
  25. weight = 1
  26. # language code
  27. languageCode = "en"
  28. # language name
  29. languageName = "English"
  30. # whether to include Chinese/Japanese/Korean
  31. hasCJKLanguage = false
  32. # default amount of posts in each pages
  33. paginate = 12
  34. # copyright description used only for seo schema
  35. copyright = "This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License."
  36. # Menu config
  37. [languages.en.menu]
  38. [[languages.en.menu.main]]
  39. identifier = "posts"
  40. # you can add extra information before the name (HTML format is supported), such as icons
  41. pre = ""
  42. # you can add extra information after the name (HTML format is supported), such as icons
  43. post = ""
  44. name = "Posts"
  45. url = "/posts/"
  46. # title will be shown when you hover on this menu link.
  47. title = ""
  48. weight = 1
  49. [[languages.en.menu.main]]
  50. identifier = "tags"
  51. pre = ""
  52. post = ""
  53. name = "Tags"
  54. url = "/tags/"
  55. title = ""
  56. weight = 2
  57. [[languages.en.menu.main]]
  58. identifier = "categories"
  59. pre = ""
  60. post = ""
  61. name = "Categories"
  62. url = "/categories/"
  63. title = ""
  64. weight = 3
  65. [[languages.en.menu.main]]
  66. identifier = "documentation"
  67. pre = ""
  68. post = ""
  69. name = "Docs"
  70. url = "/categories/documentation/"
  71. title = ""
  72. weight = 4
  73. [[languages.en.menu.main]]
  74. identifier = "about"
  75. pre = ""
  76. post = ""
  77. name = "About"
  78. url = "/about/"
  79. title = ""
  80. weight = 5
  81. [[languages.en.menu.main]]
  82. identifier = "github"
  83. pre = "<i class='fab fa-github fa-fw'></i>"
  84. post = ""
  85. name = ""
  86. url = "https://github.com/upagge/ublogger"
  87. title = "GitHub"
  88. weight = 6
  89. [languages.en.params]
  90. # site description
  91. description = "About uBlogger Theme"
  92. # site keywords
  93. keywords = ["Theme", "Hugo"]
  94. # App icon config
  95. [languages.en.params.app]
  96. # optional site title override for the app when added to an iOS home screen or Android launcher
  97. title = "uBlogger"
  98. # whether to omit favicon resource links
  99. noFavicon = false
  100. # modern SVG favicon to use in place of older style .png and .ico files
  101. svgFavicon = ""
  102. # Android browser theme color
  103. themeColor = "#ffffff"
  104. # Safari mask icon color
  105. iconColor = "#5bbad5"
  106. # Windows v8-10 tile color
  107. tileColor = "#da532c"
  108. # Search config
  109. [languages.en.params.search]
  110. enable = true
  111. # type of search engine ("lunr", "algolia")
  112. type = "algolia"
  113. # max index length of the chunked content
  114. contentLength = 4000
  115. # placeholder of the search bar
  116. placeholder = ""
  117. # max number of results length
  118. maxResultLength = 10
  119. # snippet length of the result
  120. snippetLength = 30
  121. # HTML tag name of the highlight part in results
  122. highlightTag = "em"
  123. # whether to use the absolute URL based on the baseURL in search index
  124. absoluteURL = false
  125. [languages.en.params.search.algolia]
  126. index = "index.en"
  127. appID = "PASDMWALPK"
  128. searchKey = "b42948e51daaa93df92381c8e2ac0f93"
  129. # Home page config
  130. [languages.en.params.home]
  131. # amount of RSS pages
  132. rss = 10
  133. # Home page profile
  134. [languages.en.params.home.profile]
  135. enable = true
  136. # Gravatar Email for preferred avatar in home page
  137. gravatarEmail = ""
  138. # URL of avatar shown in home page
  139. avatarURL = "/images/avatar.png"
  140. # title shown in home page (HTML format is supported)
  141. title = "uBlogger | Hugo Theme"
  142. # subtitle shown in home page (HTML format is supported)
  143. subtitle = "A Clean, Elegant but Advanced Hugo Theme"
  144. # whether to show social links
  145. social = true
  146. # disclaimer (HTML format is supported)
  147. disclaimer = ""
  148. # Home page posts
  149. [languages.en.params.home.posts]
  150. enable = true
  151. # special amount of posts in each home posts page
  152. paginate = 6
  153. # Social config in home page
  154. [languages.en.params.social]
  155. GitHub = "xxxx"
  156. Linkedin = ""
  157. Twitter = "xxxx"
  158. Instagram = "xxxx"
  159. Facebook = "xxxx"
  160. Telegram = "xxxx"
  161. Medium = ""
  162. Gitlab = ""
  163. Youtubelegacy = "xxxx"
  164. Youtubecustom = ""
  165. Youtubechannel = ""
  166. Tumblr = ""
  167. Quora = ""
  168. Keybase = ""
  169. Pinterest = ""
  170. Reddit = ""
  171. Codepen = ""
  172. FreeCodeCamp = ""
  173. Bitbucket = ""
  174. Stackoverflow = ""
  175. Weibo = ""
  176. Odnoklassniki = ""
  177. VK = ""
  178. Flickr = ""
  179. Xing = ""
  180. Snapchat = ""
  181. Soundcloud = ""
  182. Spotify = ""
  183. Bandcamp = ""
  184. Paypal = ""
  185. Fivehundredpx = ""
  186. Mix = ""
  187. Goodreads = ""
  188. Lastfm = ""
  189. Foursquare = ""
  190. Hackernews = ""
  191. Kickstarter = ""
  192. Patreon = ""
  193. Steam = ""
  194. Twitch = ""
  195. Strava = ""
  196. Skype = ""
  197. Whatsapp = ""
  198. Zhihu = ""
  199. Douban = ""
  200. Angellist = ""
  201. Slidershare = ""
  202. Jsfiddle = ""
  203. Deviantart = ""
  204. Behance = ""
  205. Dribbble = ""
  206. Wordpress = ""
  207. Vine = ""
  208. Googlescholar = ""
  209. Researchgate = ""
  210. Thingiverse = ""
  211. Devto = ""
  212. Gitea = ""
  213. XMPP = ""
  214. Matrix = ""
  215. Bilibili = ""
  216. Email = "[email protected]"
  217. DockerHub = ""
  218. Discord = "xxxxxxxxx"
  219. Leanpub = ""
  220. Udemy = ""
  221. RSS = true
  222. [languages.en.params.social.Mastodon]
  223. id = "@xxxx"
  224. prefix = "https://mastodon.technology/"
  225. [params]
  226. # uBlogger theme version
  227. version = "2.0.X"
  228. # site default theme ("light", "dark", "auto")
  229. defaultTheme = "auto"
  230. # public git repo url only then enableGitInfo is true
  231. # 公共 git 仓库路径,仅在 enableGitInfo 设为 true 时有效
  232. gitRepo = "https://github.com/upagge/dolboblog-theme"
  233. # which hash function used for SRI, when empty, no SRI is used ("sha256", "sha384", "sha512", "md5")
  234. # 哪种哈希函数用来 SRI, 为空时表示不使用 SRI ("sha256", "sha384", "sha512", "md5")
  235. fingerprint = ""
  236. # date format
  237. # 日期格式
  238. dateFormat = "2006-01-02"
  239. # website images for Open Graph and Twitter Cards
  240. # 网站图片, 用于 Open Graph 和 Twitter Cards
  241. images = ["/logo.png"]
  242. # Header config
  243. # 页面头部导航栏配置
  244. [params.header]
  245. # desktop header mode ("fixed", "normal", "auto")
  246. # 桌面端导航栏模式 ("fixed", "normal", "auto")
  247. desktopMode = "fixed"
  248. # mobile header mode ("fixed", "normal", "auto")
  249. # 移动端导航栏模式 ("fixed", "normal", "auto")
  250. mobileMode = "auto"
  251. # Header title config
  252. # 页面头部导航栏标题配置
  253. [params.header.title]
  254. # URL of the LOGO
  255. # LOGO 的 URL
  256. logo = ""
  257. # title name
  258. # 标题名称
  259. name = "Blog | Technically.fun"
  260. # you can add extra information before the name (HTML format is supported), such as icons
  261. # 你可以在名称 (允许 HTML 格式) 之前添加其他信息, 例如图标
  262. pre = "<i class='fas fa-pencil-alt fa-fw'></i>"
  263. # you can add extra information after the name (HTML format is supported), such as icons
  264. # 你可以在名称 (允许 HTML 格式) 之后添加其他信息, 例如图标
  265. post = ""
  266. # Footer config
  267. # 页面底部信息配置
  268. [params.footer]
  269. enable = true
  270. # Custom content (HTML format is supported)
  271. # 自定义内容 (支持 HTML 格式)
  272. custom = ''
  273. # whether to show Hugo and theme info
  274. # 是否显示 Hugo 和主题信息
  275. hugo = true
  276. # whether to show copyright info
  277. # 是否显示版权信息
  278. copyright = true
  279. # whether to show the author
  280. # 是否显示作者
  281. author = true
  282. # site creation time
  283. # 网站创立年份
  284. since = 2021
  285. # ICP info only in China (HTML format is supported)
  286. # ICP 备案信息,仅在中国使用 (支持 HTML 格式)
  287. icp = ""
  288. # license info (HTML format is supported)
  289. # 许可协议信息 (支持 HTML 格式)
  290. license= '<a rel="license external nofollow noopener noreffer" href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank">CC BY-NC 4.0</a>'
  291. # Section (all posts) page config
  292. # Section (所有文章) 页面配置
  293. [params.section]
  294. # special amount of posts in each section page
  295. # section 页面每页显示文章数量
  296. paginate = 20
  297. # date format (month and day)
  298. # 日期格式 (月和日)
  299. dateFormat = "01-02"
  300. # amount of RSS pages
  301. # RSS 文章数目
  302. rss = 10
  303. # List (category or tag) page config
  304. # List (目录或标签) 页面配置
  305. [params.list]
  306. # special amount of posts in each list page
  307. # list 页面每页显示文章数量
  308. paginate = 20
  309. # date format (month and day)
  310. # 日期格式 (月和日)
  311. dateFormat = "01-02"
  312. # amount of RSS pages
  313. # RSS 文章数目
  314. rss = 10
  315. # Comment config
  316. # 评论系统设置
  317. [params.comment]
  318. enable = true
  319. [params.comment.remark42]
  320. enable = true
  321. host = "https://comments.upagge.ru"
  322. site = "documentation"
  323. locale = "en"
  324. # Disqus comment config (https://disqus.com/)
  325. # Disqus 评论系统设置 (https://disqus.com/)
  326. [params.comment.disqus]
  327. enable = false
  328. # Disqus shortname to use Disqus in posts
  329. # Disqus 的 shortname,用来在文章中启用 Disqus 评论系统
  330. shortname = ""
  331. # Gitalk comment config (https://github.com/gitalk/gitalk)
  332. # Gitalk 评论系统设置 (https://github.com/gitalk/gitalk)
  333. [params.comment.gitalk]
  334. enable = false
  335. owner = ""
  336. repo = ""
  337. clientId = ""
  338. clientSecret = ""
  339. # Valine comment config (https://github.com/xCss/Valine)
  340. # Valine 评论系统设置 (https://github.com/xCss/Valine)
  341. [params.comment.valine]
  342. enable = false
  343. appId = "QGzwQXOqs5JOhN4RGPOkR2mR-MdYXbMMI"
  344. appKey = "WBmoGyJtbqUswvfLh6L8iEBr"
  345. placeholder = ""
  346. avatar = "mp"
  347. meta= ""
  348. pageSize = 10
  349. lang = ""
  350. visitor = true
  351. recordIP = true
  352. highlight = true
  353. enableQQ = false
  354. serverURLs = "https://"
  355. # emoji data file name, default is "google.yml"
  356. # ("apple.yml", "google.yml", "facebook.yml", "twitter.yml")
  357. # located in "themes/uBlogger/assets/data/emoji/" directory
  358. # you can store your own data files in the same path under your project:
  359. # "assets/data/emoji/"
  360. # emoji 数据文件名称, 默认是 "google.yml"
  361. # ("apple.yml", "google.yml", "facebook.yml", "twitter.yml")
  362. # 位于 "themes/uBlogger/assets/data/emoji/" 目录
  363. # 可以在你的项目下相同路径存放你自己的数据文件:
  364. # "assets/data/emoji/"
  365. emoji = ""
  366. # Facebook comment config (https://developers.facebook.com/docs/plugins/comments)
  367. # Facebook 评论系统设置 (https://developers.facebook.com/docs/plugins/comments)
  368. [params.comment.facebook]
  369. enable = false
  370. width = "100%"
  371. numPosts = 10
  372. appId = ""
  373. languageCode = ""
  374. # Telegram comments config (https://comments.app/)
  375. # Telegram comments 评论系统设置 (https://comments.app/)
  376. [params.comment.telegram]
  377. enable = false
  378. siteID = ""
  379. limit = 5
  380. height = ""
  381. color = ""
  382. colorful = true
  383. dislikes = false
  384. outlined = false
  385. # Commento comment config (https://commento.io/)
  386. # Commento comment 评论系统设置 (https://commento.io/)
  387. [params.comment.commento]
  388. enable = false
  389. # Utterances comment config (https://utteranc.es/)
  390. # Utterances comment 评论系统设置 (https://utteranc.es/)
  391. [params.comment.utterances]
  392. enable = false
  393. # owner/repo
  394. repo = ""
  395. issueTerm = "pathname"
  396. label = ""
  397. lightTheme = "github-light"
  398. darkTheme = "github-dark"
  399. # Page config
  400. # 文章页面配置
  401. [params.page]
  402. # whether to hide a page from home page
  403. # 是否在主页隐藏一篇文章
  404. hiddenFromHomePage = false
  405. # whether to hide a page from search results
  406. # 是否在搜索结果中隐藏一篇文章
  407. hiddenFromSearch = false
  408. # whether to enable twemoji
  409. # 是否使用 twemoji
  410. twemoji = false
  411. # whether to enable the ruby extended syntax
  412. # 是否使用 ruby 扩展语法
  413. ruby = true
  414. # whether to enable the fraction extended syntax
  415. # 是否使用 fraction 扩展语法
  416. fraction = true
  417. # whether to enable the fontawesome extended syntax
  418. # 是否使用 fontawesome 扩展语法
  419. fontawesome = true
  420. # whether to show link to Raw Markdown content of the content
  421. # 是否显示原始 Markdown 文档内容的链接
  422. linkToMarkdown = true
  423. # whether to show the full text content in RSS
  424. # 是否在 RSS 中显示全文内容
  425. rssFullText = false
  426. # Table of the contents config
  427. # 目录配置
  428. [params.page.toc]
  429. # whether to enable the table of the contents
  430. # 是否使用目录
  431. enable = true
  432. # whether to keep the static table of the contents in front of the post
  433. # 是否保持使用文章前面的静态目录
  434. keepStatic = false
  435. # whether to make the table of the contents in the sidebar automatically collapsed
  436. # 是否使侧边目录自动折叠展开
  437. auto = true
  438. # Code config
  439. # 代码配置
  440. [params.page.code]
  441. # whether to show the copy button of the code block
  442. # 是否显示代码块的复制按钮
  443. copy = true
  444. # the maximum number of lines of displayed code by default
  445. # 默认展开显示的代码行数
  446. maxShownLines = 10
  447. # KaTeX mathematical formulas config (KaTeX https://katex.org/)
  448. # KaTeX 数学公式配置 (KaTeX https://katex.org/)
  449. [params.page.math]
  450. enable = false
  451. # default block delimiter is $$ ... $$ and \\[ ... \\]
  452. # 默认块定界符是 $$ ... $$ 和 \\[ ... \\]
  453. blockLeftDelimiter = ""
  454. blockRightDelimiter = ""
  455. # default inline delimiter is $ ... $ and \\( ... \\)
  456. # 默认行内定界符是 $ ... $ 和 \\( ... \\)
  457. inlineLeftDelimiter = ""
  458. inlineRightDelimiter = ""
  459. # KaTeX extension copy_tex
  460. # KaTeX 插件 copy_tex
  461. copyTex = true
  462. # KaTeX extension mhchem
  463. # KaTeX 插件 mhchem
  464. mhchem = true
  465. # Mapbox GL JS config (Mapbox GL JS https://docs.mapbox.com/mapbox-gl-js)
  466. # Mapbox GL JS 配置 (Mapbox GL JS https://docs.mapbox.com/mapbox-gl-js)
  467. [params.page.mapbox]
  468. # access token of Mapbox GL JS
  469. # Mapbox GL JS 的 access token
  470. accessToken = "pk.eyJ1IjoiZGlsbG9uenEiLCJhIjoiY2s2czd2M2x3MDA0NjNmcGxmcjVrZmc2cyJ9.aSjv2BNuZUfARvxRYjSVZQ"
  471. # style for the light theme
  472. # 浅色主题的地图样式
  473. lightStyle = "mapbox://styles/mapbox/light-v10?optimize=true"
  474. # style for the dark theme
  475. # 深色主题的地图样式
  476. darkStyle = "mapbox://styles/mapbox/dark-v10?optimize=true"
  477. # whether to add NavigationControl (https://docs.mapbox.com/mapbox-gl-js/api/#navigationcontrol)
  478. # 是否添加 NavigationControl (https://docs.mapbox.com/mapbox-gl-js/api/#navigationcontrol)
  479. navigation = true
  480. # whether to add GeolocateControl (https://docs.mapbox.com/mapbox-gl-js/api/#geolocatecontrol)
  481. # 是否添加 GeolocateControl (https://docs.mapbox.com/mapbox-gl-js/api/#geolocatecontrol)
  482. geolocate = true
  483. # whether to add ScaleControl (https://docs.mapbox.com/mapbox-gl-js/api/#scalecontrol)
  484. # 是否添加 ScaleControl (https://docs.mapbox.com/mapbox-gl-js/api/#scalecontrol)
  485. scale = true
  486. # whether to add FullscreenControl (https://docs.mapbox.com/mapbox-gl-js/api/#fullscreencontrol)
  487. # 是否添加 FullscreenControl (https://docs.mapbox.com/mapbox-gl-js/api/#fullscreencontrol)
  488. fullscreen = true
  489. # Social share links in post page
  490. # 文章页面的分享信息设置
  491. [params.page.share]
  492. enable = true
  493. Twitter = true
  494. Facebook = true
  495. Linkedin = false
  496. Whatsapp = false
  497. Pinterest = false
  498. Tumblr = false
  499. HackerNews = true
  500. Reddit = false
  501. VK = false
  502. Buffer = false
  503. Xing = false
  504. Line = true
  505. Instapaper = false
  506. Pocket = false
  507. Digg = false
  508. Stumbleupon = false
  509. Flipboard = false
  510. Weibo = true
  511. Renren = false
  512. Myspace = false
  513. Blogger = false
  514. Baidu = false
  515. Odnoklassniki = false
  516. Evernote = false
  517. Skype = false
  518. Trello = false
  519. Mix = false
  520. # Third-party library config
  521. # 第三方库配置
  522. [params.page.library]
  523. [params.page.library.css]
  524. # someCSS = "some.css"
  525. # located in "assets/" 位于 "assets/"
  526. # Or 或者
  527. # someCSS = "https://cdn.example.com/some.css"
  528. [params.page.library.js]
  529. # someJavascript = "some.js"
  530. # located in "assets/" 位于 "assets/"
  531. # Or 或者
  532. # someJavascript = "https://cdn.example.com/some.js"
  533. # Page SEO config
  534. # 页面 SEO 配置
  535. [params.page.seo]
  536. # image URL
  537. # 图片 URL
  538. images = []
  539. # Publisher info
  540. # 出版者信息
  541. [params.page.seo.publisher]
  542. name = "xxxx"
  543. logoUrl = "/images/avatar.png"
  544. # Site verification code for Google/Bing/Yandex/Pinterest/Baidu
  545. # 网站验证代码,用于 Google/Bing/Yandex/Pinterest/Baidu
  546. [params.verification]
  547. google = ""
  548. bing = ""
  549. yandex = ""
  550. pinterest = ""
  551. baidu = ""
  552. # Site SEO config
  553. # 网站 SEO 配置
  554. [params.seo]
  555. # image URL
  556. # 图片 URL
  557. image = "/images/Apple-Devices-Preview.png"
  558. # thumbnail URL
  559. # 缩略图 URL
  560. thumbnailUrl = "/images/screenshot.png"
  561. # Analytics config
  562. # 网站分析配置
  563. [params.analytics]
  564. enable = true
  565. # Google Analytics
  566. [params.analytics.google]
  567. # [UA-XXXXXXXX-X] google analytics code
  568. # [UA-XXXXXXXX-X] 谷歌分析代号
  569. id = ""
  570. # whether to use gtag linked
  571. # 是否使用gtag链接
  572. gtag = false
  573. # whether to anonymize IP
  574. # 是否匿名化用户 IP
  575. anonymizeIP = true
  576. # Fathom Analytics
  577. [params.analytics.fathom]
  578. id = ""
  579. # server url for your tracker if you're self hosting
  580. # 自行托管追踪器时的主机路径
  581. server = ""
  582. [params.analytics.yandex]
  583. id = "70532758"
  584. # Cookie consent config
  585. # Cookie 许可配置
  586. [params.cookieconsent]
  587. enable = false
  588. # text strings used for Cookie consent banner
  589. # 用于 Cookie 许可横幅的文本字符串
  590. [params.cookieconsent.content]
  591. message = ""
  592. dismiss = ""
  593. link = ""
  594. # CDN config for third-party library files
  595. # 第三方库文件的 CDN 设置
  596. [params.cdn]
  597. # CDN data file name, disabled by default
  598. # ("jsdelivr.yml")
  599. # located in "themes/uBlogger/assets/data/cdn/" directory
  600. # you can store your own data files in the same path under your project:
  601. # "assets/data/cdn/"
  602. # CDN 数据文件名称, 默认不启用
  603. # ("jsdelivr.yml")
  604. # 位于 "themes/uBlogger/assets/data/cdn/" 目录
  605. # 可以在你的项目下相同路径存放你自己的数据文件:
  606. # "assets/data/cdn/"
  607. data = "jsdelivr.yml"
  608. # Compatibility config
  609. # 兼容性设置
  610. [params.compatibility]
  611. # whether to use Polyfill.io to be compatible with older browsers
  612. # 是否使用 Polyfill.io 来兼容旧式浏览器
  613. polyfill = false
  614. # whether to use object-fit-images to be compatible with older browsers
  615. # 是否使用 object-fit-images 来兼容旧式浏览器
  616. objectFit = false
  617. # Markup related configuration in Hugo
  618. # Hugo 解析文档的配置
  619. [markup]
  620. # Syntax Highlighting (https://gohugo.io/content-management/syntax-highlighting)
  621. # 语法高亮设置 (https://gohugo.io/content-management/syntax-highlighting)
  622. [markup.highlight]
  623. codeFences = true
  624. guessSyntax = true
  625. lineNos = true
  626. lineNumbersInTable = true
  627. noClasses = false
  628. # Goldmark is from Hugo 0.60 the default library used for Markdown
  629. # Goldmark 是 Hugo 0.60 以来的默认 Markdown 解析库
  630. [markup.goldmark]
  631. [markup.goldmark.extensions]
  632. definitionList = true
  633. footnote = true
  634. linkify = true
  635. strikethrough = true
  636. table = true
  637. taskList = true
  638. typographer = true
  639. [markup.goldmark.renderer]
  640. # whether to use HTML tags directly in the document
  641. # 是否在文档中直接使用 HTML 标签
  642. unsafe = true
  643. # Table Of Contents settings
  644. # 目录设置
  645. [markup.tableOfContents]
  646. startLevel = 2
  647. endLevel = 6
  648. # Author config
  649. # 作者配置
  650. [author]
  651. name = "Steffen Blake"
  652. # Sitemap config
  653. # 网站地图配置
  654. [sitemap]
  655. changefreq = "weekly"
  656. filename = "sitemap.xml"
  657. priority = 0.5
  658. # Permalinks config (https://gohugo.io/content-management/urls/#permalinks)
  659. # Permalinks 配置 (https://gohugo.io/content-management/urls/#permalinks)
  660. [Permalinks]
  661. # posts = ":year/:month/:filename"
  662. posts = ":filename"
  663. # Privacy config (https://gohugo.io/about/hugo-and-gdpr/)
  664. # 隐私信息配置 (https://gohugo.io/about/hugo-and-gdpr/)
  665. [privacy]
  666. # privacy of the Google Analytics (replaced by params.analytics.google)
  667. # Google Analytics 相关隐私 (被 params.analytics.google 替代)
  668. [privacy.googleAnalytics]
  669. # ...
  670. [privacy.twitter]
  671. enableDNT = true
  672. [privacy.youtube]
  673. privacyEnhanced = true
  674. # Options to make output .md files
  675. # 用于输出 Markdown 格式文档的设置
  676. [mediaTypes]
  677. [mediaTypes."text/plain"]
  678. suffixes = ["md"]
  679. # Options to make output .md files
  680. # 用于输出 Markdown 格式文档的设置
  681. [outputFormats.MarkDown]
  682. mediaType = "text/plain"
  683. isPlainText = true
  684. isHTML = false
  685. # Options to make hugo output files
  686. # 用于 Hugo 输出文档的设置
  687. [outputs]
  688. home = ["HTML", "RSS", "JSON"]
  689. page = ["HTML", "MarkDown"]
  690. section = ["HTML", "RSS"]
  691. taxonomy = ["HTML", "RSS"]
  692. taxonomyTerm = ["HTML"]