config.toml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. baseurl = "https://bf.mengyan1223.wang/blog/" # End your URL with a `/` trailing slash, e.g. `https://example.com/`.
  2. title = "Xry111's Blog"
  3. copyright = "© 2017-2019 Xi Ruoyao"
  4. theme = "academic"
  5. enableEmoji = true
  6. footnotereturnlinkcontents = "<sup>^</sup>"
  7. ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
  8. preserveTaxonomyNames = true
  9. paginate = 10
  10. # Enable analytics by entering your Google Analytics tracking ID
  11. googleAnalytics = ""
  12. # Default language to use (if you setup multilingual support)
  13. defaultContentLanguage = "en"
  14. hasCJKLanguage = true
  15. defaultContentLanguageInSubdir = false
  16. enableGitInfo = true
  17. [outputs]
  18. home = [ "HTML", "RSS", "JSON", "WebAppManifest" ]
  19. section = [ "HTML", "RSS" ]
  20. [mediaTypes."application/manifest+json"]
  21. suffixes = ["webmanifest"]
  22. [outputFormats.WebAppManifest]
  23. mediaType = "application/manifest+json"
  24. rel = "manifest"
  25. # Enable comments by entering your Disqus shortname
  26. disqusShortname = ""
  27. # Configure BlackFriday Markdown rendering.
  28. # See: https://gohugo.io/readfiles/bfconfig/
  29. [blackfriday]
  30. hrefTargetBlank = true # `true` opens external links in a new tab.
  31. fractions = true # `false` disables smart fractions (e.g. 5/12 formatted as a fraction).
  32. smartypants = true # `false` disables all smart punctuation substitutions (e.g. smart quotes, dashes, fractions).
  33. [params]
  34. # Color theme.
  35. # Choose from `default`, `ocean`, `forest`, `coffee`, `dark`, or `1950s`.
  36. theme = "minimal"
  37. # Font style.
  38. # Choose from `default`, `classic`, or `playfair`.
  39. font = ""
  40. font_size = "L"
  41. gravatar = false # Get your avatar from Gravatar.com? (true/false)
  42. avatar = "portrait.jpg" # Specify an avatar image (in `static/img/` folder) or delete value to disable avatar.
  43. email = "xry111@mengyan1223.wang"
  44. gnupg_key = "E1479BFE2CB3BB387F25D7B4D0101C62400F5ADF"
  45. address = {street = "266 Xifeng Rd.", city="Xi'an", region="Shaanxi", postcode="710126", country="China", country_code="CN"}
  46. office_hours = ""
  47. phone = ""
  48. skype = ""
  49. telegram = ""
  50. # Enable Keybase in Contact widget by entering your keybase.io username.
  51. keybase = ""
  52. # Discussion link (e.g. link to a forum, mailing list, or chat).
  53. # Uncomment line below to use.
  54. # discussion = { name = "Discuss", url = "https://discourse.gohugo.io" }
  55. # Diplay a logo in navigation bar rather than title (optional).
  56. # To enable, place an image in `static/img/` and reference its filename below. To disable, set the value to "".
  57. logo = ""
  58. # Enable/disable map in Contact widget.
  59. # To show your address on a map in the contact widget, you need to enter your latitude, longitude and choose
  60. # a map provider below.
  61. # To use Google Maps, set `map = 1` and enter your API key that can be obtained here:
  62. # https://developers.google.com/maps/documentation/javascript/get-api-key
  63. # To use OpenStreetMap tiles, set `map = 2`.
  64. # To use OpenStreetMap on a high traffic site, set `map = 3` and enter your API key that can be obtained here:
  65. # https://www.mapbox.com/studio/account/tokens
  66. # To get your coordinates, right-click on Google Maps and choose "What's here?". The coords will show up at the bottom.
  67. #
  68. # Map provider:
  69. # 0: No map
  70. # 1: Google Maps
  71. # 2: OpenStreetMap (Mapnik)
  72. # 3: OpenStreetMap (Mapbox)
  73. # Date and time format (refer to Go's date format: http://fuckinggodateformat.com )
  74. # Examples: "Mon, Jan 2, 2006" or "2006-01-02"
  75. date_format = "Jan 2, 2006"
  76. # Examples: "3:04 pm" or "15:04"
  77. time_format = "3:04 PM"
  78. # Show estimated reading time for posts?
  79. reading_time = true
  80. # Display comment count? Requires commenting to be enabled.
  81. comment_count = true
  82. # Display section pager for posts?
  83. section_pager = false
  84. # Enable global LaTeX math rendering?
  85. # If false, you can enable it locally on a per page basis.
  86. math = true
  87. # Highlight.js options
  88. # highlight
  89. # Enable global source code highlighting? If false, you can
  90. # override it for a particular page in that page's preamble.
  91. #
  92. # Example: highlight = true
  93. #
  94. # highlight_languages
  95. # Add support for highlighting additional languages. Support for
  96. # languages mentioned here will be included in all pages.
  97. #
  98. # Example: highlight_languages = ["go", "lisp", "ocaml"]
  99. #
  100. # highlight_style
  101. # Choose a different CSS style for highlighting source
  102. # code. Setting this option in a page's preamble has no
  103. # effect.
  104. #
  105. # Example: highlight_style = "github-gist"
  106. #
  107. # For the list of supported languages and styles, see:
  108. # https://cdnjs.com/libraries/highlight.js/
  109. #
  110. # For more info on the highlighting options, see:
  111. # https://sourcethemes.com/academic/post/writing-markdown-latex/#highlighting-options
  112. highlight = true
  113. highlight_languages = [ "go", "python", "x86asm" ]
  114. # highlight_style = "github"
  115. # Enable native social sharing buttons?
  116. sharing = true
  117. # Link custom CSS and JS assets
  118. # (relative to /static/css and /static/js respectively)
  119. custom_css = []
  120. custom_js = []
  121. # Publication types.
  122. # Used to categorize publications.
  123. # The index of the publication type in the list is used as its unique numerical identifier.
  124. # The numeric ID is used in a publication's frontmatter to categorize it.
  125. # The language can be edited below.
  126. # For multi-lingual sites, copy this block to each language section at the end of this file.
  127. publication_types = [
  128. 'Uncategorized', # 0
  129. 'Conference proceedings', # 1
  130. 'Journal', # 2
  131. 'Work in progress', # 3
  132. 'Technical report', # 4
  133. 'Book', # 5
  134. 'Book chapter' # 6
  135. ]
  136. edit_page = {repo_url = "https://git.mengyan1223.wang/xry111/blog", repo_branch="master", editable = {}}
  137. # Configuration of talk pages.
  138. [params.talks]
  139. # Show talk time?
  140. time = true
  141. # Configuration of publication pages.
  142. [params.publications]
  143. # Date format (refer to Go's date format: http://fuckinggodateformat.com )
  144. # Examples: "Mon, Jan 2, 2006" or "2006-01-02"
  145. date_format = "January, 2006"
  146. # Configuration of project pages.
  147. [params.projects]
  148. # List publications and talks related to the project?
  149. list_children = true
  150. # Publication list format.
  151. # 0 = Simple
  152. # 1 = Detailed
  153. # 2 = APA
  154. # 3 = MLA
  155. publication_format = 3
  156. # Navigation Links
  157. # To link a homepage widget, specify the URL as a hash `#` followed by the filename of the
  158. # desired widget in your `content/home/` folder.
  159. # The weight parameter defines the order that the links will appear in.
  160. [params.menus]
  161. # Align the main menu to the right of the page? (true/false)
  162. align_right = true
  163. [[menu.main]]
  164. name = "Home"
  165. url = "#about"
  166. weight = 1
  167. [[menu.main]]
  168. name = "Publications"
  169. url = "#publications"
  170. weight = 2
  171. [[menu.main]]
  172. name = "Posts"
  173. url = "#posts"
  174. weight = 3
  175. [[menu.main]]
  176. name = "Projects"
  177. url = "#projects"
  178. weight = 4
  179. [[menu.main]]
  180. name = "Contact"
  181. url = "#contact"
  182. weight = 6
  183. [params.search]
  184. engine = 1
  185. # Taxonomies.
  186. [taxonomies]
  187. tag = "tags"
  188. category = "categories"
  189. publication_type = "publication_types"
  190. author = "authors"
  191. # Languages
  192. # Create a [languages.X] block for each language you want, where X is the language ID.
  193. # Configure the English version of the website.
  194. [Languages.en]
  195. languageCode = "en-us"
  196. [params.map]
  197. engine = 0
  198. map_api_key = ""
  199. latitude = "37.4275"
  200. longitude = "-122.1697"
  201. zoom = 15
  202. [params.comments]
  203. engine = 0
  204. commentable = {}