config.toml 7.0 KB

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