浏览代码

split config.toml

Xi Ruoyao 5 年之前
父节点
当前提交
2b4b38a548
共有 5 个文件被更改,包括 232 次插入246 次删除
  1. 0 246
      config.toml
  2. 46 0
      config/_default/config.toml
  3. 6 0
      config/_default/languages.toml
  4. 24 0
      config/_default/menus.toml
  5. 156 0
      config/_default/params.toml

+ 0 - 246
config.toml

@@ -1,246 +0,0 @@
-baseurl = "https://bf.mengyan1223.wang/blog/"  # End your URL with a `/` trailing slash, e.g. `https://example.com/`.
-title = "Xry111's Blog"
-copyright = "© 2017-2019 Xi Ruoyao"
-theme = "academic"
-enableEmoji = true
-footnotereturnlinkcontents = "<sup>^</sup>"
-ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
-preserveTaxonomyNames = true
-paginate = 10
-
-# Enable analytics by entering your Google Analytics tracking ID
-googleAnalytics = ""
-
-# Default language to use (if you setup multilingual support)
-defaultContentLanguage = "en"
-hasCJKLanguage = true
-defaultContentLanguageInSubdir = false
-
-enableGitInfo = true
-
-[outputs]
-  home = [ "HTML", "RSS", "JSON", "WebAppManifest" ]
-  section = [ "HTML", "RSS" ]
-
-[mediaTypes."application/manifest+json"]
-  suffixes = ["webmanifest"]
-
-[outputFormats.WebAppManifest]
-  mediaType = "application/manifest+json"
-  rel = "manifest"
-
-# Enable comments by entering your Disqus shortname
-disqusShortname = ""
-
-
-# Configure BlackFriday Markdown rendering.
-#   See: https://gohugo.io/readfiles/bfconfig/
-[blackfriday]
-  hrefTargetBlank = true  # `true` opens external links in a new tab.
-  fractions = true  # `false` disables smart fractions (e.g. 5/12 formatted as a fraction).
-  smartypants = true  # `false` disables all smart punctuation substitutions (e.g. smart quotes, dashes, fractions).
-
-[params]
-  # Color theme.
-  #   Choose from `default`, `ocean`, `forest`, `coffee`, `dark`, or `1950s`.
-  theme = "minimal"
-
-  # Font style.
-  #   Choose from `default`, `classic`, or `playfair`.
-  font = ""
-  font_size = "L"
-
-  gravatar = false  # Get your avatar from Gravatar.com? (true/false)
-  avatar = "portrait.jpg"  # Specify an avatar image (in `static/img/` folder) or delete value to disable avatar.
-  email = "xry111@mengyan1223.wang"
-  gnupg_key = "E1479BFE2CB3BB387F25D7B4D0101C62400F5ADF"
-  address = {street = "266 Xifeng Rd.", city="Xi'an", region="Shaanxi", postcode="710126", country="China", country_code="CN"}
-  office_hours = ""
-  phone = ""
-  skype = ""
-  telegram = ""
-
-  # Enable Keybase in Contact widget by entering your keybase.io username.
-  keybase = ""
-
-  # Discussion link (e.g. link to a forum, mailing list, or chat).
-  #   Uncomment line below to use.
-  #   discussion = { name = "Discuss", url = "https://discourse.gohugo.io" }
-
-  # Diplay a logo in navigation bar rather than title (optional).
-  #   To enable, place an image in `static/img/` and reference its filename below. To disable, set the value to "".
-  logo = ""
-
-  # Enable/disable map in Contact widget.
-  # To show your address on a map in the contact widget, you need to enter your latitude, longitude and choose
-  # a map provider below.
-  # To use Google Maps, set `map = 1` and enter your API key that can be obtained here:
-  #   https://developers.google.com/maps/documentation/javascript/get-api-key
-  # To use OpenStreetMap tiles, set `map = 2`.
-  # To use OpenStreetMap on a high traffic site, set `map = 3` and enter your API key that can be obtained here:
-  #   https://www.mapbox.com/studio/account/tokens
-  # To get your coordinates, right-click on Google Maps and choose "What's here?". The coords will show up at the bottom.
-  #
-  # Map provider:
-  #   0: No map
-  #   1: Google Maps
-  #   2: OpenStreetMap (Mapnik)
-  #   3: OpenStreetMap (Mapbox)
-
-  # Date and time format (refer to Go's date format: http://fuckinggodateformat.com )
-  #   Examples: "Mon, Jan 2, 2006" or "2006-01-02"
-  date_format = "Jan 2, 2006"
-  #   Examples: "3:04 pm" or "15:04"
-  time_format = "3:04 PM"
-
-  # Show estimated reading time for posts?
-  reading_time = true
-
-  # Display comment count? Requires commenting to be enabled.
-  comment_count = true
-
-  # Display section pager for posts?
-  section_pager = false
-
-  # Enable global LaTeX math rendering?
-  #   If false, you can enable it locally on a per page basis.
-  math = true
-
-  # Highlight.js options
-  #   highlight
-  #     Enable global source code highlighting?  If false, you can
-  #     override it for a particular page in that page's preamble.
-  #
-  #     Example: highlight = true
-  #
-  #   highlight_languages
-  #     Add support for highlighting additional languages. Support for
-  #     languages mentioned here will be included in all pages.
-  #
-  #     Example: highlight_languages = ["go", "lisp", "ocaml"]
-  #
-  #   highlight_style
-  #     Choose a different CSS style for highlighting source
-  #     code. Setting this option in a page's preamble has no
-  #     effect.
-  #
-  #     Example: highlight_style = "github-gist"
-  #
-  #   For the list of supported languages and styles, see:
-  #   https://cdnjs.com/libraries/highlight.js/
-  #
-  #   For more info on the highlighting options, see:
-  #   https://sourcethemes.com/academic/post/writing-markdown-latex/#highlighting-options
-  highlight = true
-  highlight_languages = [ "go", "python", "x86asm" ]
-  # highlight_style = "github"
-
-  # Enable native social sharing buttons?
-  sharing = true
-
-  # Link custom CSS and JS assets
-  #   (relative to /static/css and /static/js respectively)
-  custom_css = []
-  custom_js  = []
-
-  # Publication types.
-  #   Used to categorize publications.
-  #   The index of the publication type in the list is used as its unique numerical identifier.
-  #   The numeric ID is used in a publication's frontmatter to categorize it.
-  #   The language can be edited below.
-  #   For multi-lingual sites, copy this block to each language section at the end of this file.
-  publication_types = [
-    'Uncategorized',  # 0
-    'Conference proceedings',  # 1
-    'Journal',  # 2
-    'Work in progress',  # 3
-    'Technical report',  # 4
-    'Book',  # 5
-    'Book chapter'  # 6
-  ]
-
-  edit_page = {repo_url = "https://git.mengyan1223.wang/xry111/blog", repo_branch="master", editable = {}}
-
-  # Configuration of talk pages.
-  [params.talks]
-    # Show talk time?
-    time = true
-
-  # Configuration of publication pages.
-  [params.publications]
-    # Date format (refer to Go's date format: http://fuckinggodateformat.com )
-    #   Examples: "Mon, Jan 2, 2006" or "2006-01-02"
-    date_format = "January, 2006"
-
-  # Configuration of project pages.
-  [params.projects]
-    # List publications and talks related to the project?
-    list_children = true
-
-    # Publication list format.
-    #   0 = Simple
-    #   1 = Detailed
-    #   2 = APA
-    #   3 = MLA
-    publication_format = 3
-
-# Navigation Links
-#   To link a homepage widget, specify the URL as a hash `#` followed by the filename of the
-#     desired widget in your `content/home/` folder.
-#   The weight parameter defines the order that the links will appear in.
-[params.menus]
-  # Align the main menu to the right of the page? (true/false)
-  align_right = true
-
-[[menu.main]]
-  name = "Home"
-  url = "#about"
-  weight = 1
-
-[[menu.main]]
-  name = "Publications"
-  url = "#publications"
-  weight = 2
-
-[[menu.main]]
-  name = "Posts"
-  url = "#posts"
-  weight = 3
-
-[[menu.main]]
-  name = "Projects"
-  url = "#projects"
-  weight = 4
-
-[[menu.main]]
-  name = "Contact"
-  url = "#contact"
-  weight = 6
-
-  [params.search]
-    engine = 1
-
-# Taxonomies.
-[taxonomies]
-  tag = "tags"
-  category = "categories"
-  publication_type = "publication_types"
-  author = "authors"
-
-# Languages
-#   Create a [languages.X] block for each language you want, where X is the language ID.
-
-# Configure the English version of the website.
-[Languages.en]
-  languageCode = "en-us"
-
-[params.map]
-  engine = 0
-  map_api_key = ""
-  latitude = "37.4275"
-  longitude = "-122.1697"
-  zoom = 15
-
-[params.comments]
-  engine = 0
-  commentable = {}

+ 46 - 0
config/_default/config.toml

@@ -0,0 +1,46 @@
+baseurl = "https://bf.mengyan1223.wang/blog/"  # End your URL with a `/` trailing slash, e.g. `https://example.com/`.
+title = "Xry111's Blog"
+copyright = "&copy; 2017-2019 Xi Ruoyao"
+theme = "academic"
+enableEmoji = true
+footnotereturnlinkcontents = "<sup>^</sup>"
+ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
+preserveTaxonomyNames = true
+paginate = 10
+
+# Enable analytics by entering your Google Analytics tracking ID
+googleAnalytics = ""
+
+# Default language to use (if you setup multilingual support)
+defaultContentLanguage = "en"
+hasCJKLanguage = true
+defaultContentLanguageInSubdir = false
+
+enableGitInfo = true
+
+[outputs]
+  home = [ "HTML", "RSS", "JSON", "WebAppManifest" ]
+  section = [ "HTML", "RSS" ]
+
+[mediaTypes."application/manifest+json"]
+  suffixes = ["webmanifest"]
+
+[outputFormats.WebAppManifest]
+  mediaType = "application/manifest+json"
+  rel = "manifest"
+
+# Configure BlackFriday Markdown rendering.
+#   See: https://gohugo.io/readfiles/bfconfig/
+[blackfriday]
+  hrefTargetBlank = true  # `true` opens external links in a new tab.
+  fractions = true  # `false` disables smart fractions (e.g. 5/12 formatted as a fraction).
+  smartypants = true  # `false` disables all smart punctuation substitutions (e.g. smart quotes, dashes, fractions).
+
+menu_align_right = true
+
+# Taxonomies.
+[taxonomies]
+  tag = "tags"
+  category = "categories"
+  publication_type = "publication_types"
+  author = "authors"

+ 6 - 0
config/_default/languages.toml

@@ -0,0 +1,6 @@
+# Languages
+#   Create a [X] block for each language you want, where X is the language ID.
+
+# Configure the English version of the website.
+[en]
+  languageCode = "en-us"

+ 24 - 0
config/_default/menus.toml

@@ -0,0 +1,24 @@
+[[main]]
+  name = "Home"
+  url = "#about"
+  weight = 1
+
+[[main]]
+  name = "Publications"
+  url = "#publications"
+  weight = 2
+
+[[main]]
+  name = "Posts"
+  url = "#posts"
+  weight = 3
+
+[[main]]
+  name = "Projects"
+  url = "#projects"
+  weight = 4
+
+[[main]]
+  name = "Contact"
+  url = "#contact"
+  weight = 6

+ 156 - 0
config/_default/params.toml

@@ -0,0 +1,156 @@
+# Color theme.
+#   Choose from `default`, `ocean`, `forest`, `coffee`, `dark`, or `1950s`.
+theme = "minimal"
+
+# Font style.
+#   Choose from `default`, `classic`, or `playfair`.
+font = ""
+font_size = "L"
+
+gravatar = false  # Get your avatar from Gravatar.com? (true/false)
+avatar = "portrait.jpg"  # Specify an avatar image (in `static/img/` folder) or delete value to disable avatar.
+email = "xry111@mengyan1223.wang"
+gnupg_key = "E1479BFE2CB3BB387F25D7B4D0101C62400F5ADF"
+address = {street = "266 Xifeng Rd.", city="Xi'an", region="Shaanxi", postcode="710126", country="China", country_code="CN"}
+office_hours = ""
+phone = ""
+skype = ""
+telegram = ""
+
+# Enable Keybase in Contact widget by entering your keybase.io username.
+keybase = ""
+
+# Discussion link (e.g. link to a forum, mailing list, or chat).
+#   Uncomment line below to use.
+#   discussion = { name = "Discuss", url = "https://discourse.gohugo.io" }
+
+# Diplay a logo in navigation bar rather than title (optional).
+#   To enable, place an image in `static/img/` and reference its filename below. To disable, set the value to "".
+logo = ""
+
+# Enable/disable map in Contact widget.
+# To show your address on a map in the contact widget, you need to enter your latitude, longitude and choose
+# a map provider below.
+# To use Google Maps, set `map = 1` and enter your API key that can be obtained here:
+#   https://developers.google.com/maps/documentation/javascript/get-api-key
+# To use OpenStreetMap tiles, set `map = 2`.
+# To use OpenStreetMap on a high traffic site, set `map = 3` and enter your API key that can be obtained here:
+#   https://www.mapbox.com/studio/account/tokens
+# To get your coordinates, right-click on Google Maps and choose "What's here?". The coords will show up at the bottom.
+#
+# Map provider:
+#   0: No map
+#   1: Google Maps
+#   2: OpenStreetMap (Mapnik)
+#   3: OpenStreetMap (Mapbox)
+
+# Date and time format (refer to Go's date format: http://fuckinggodateformat.com )
+#   Examples: "Mon, Jan 2, 2006" or "2006-01-02"
+date_format = "Jan 2, 2006"
+#   Examples: "3:04 pm" or "15:04"
+time_format = "3:04 PM"
+
+# Show estimated reading time for posts?
+reading_time = true
+
+# Display comment count? Requires commenting to be enabled.
+comment_count = true
+
+# Display section pager for posts?
+section_pager = false
+
+# Enable global LaTeX math rendering?
+#   If false, you can enable it locally on a per page basis.
+math = true
+
+# Highlight.js options
+#   highlight
+#     Enable global source code highlighting?  If false, you can
+#     override it for a particular page in that page's preamble.
+#
+#     Example: highlight = true
+#
+#   highlight_languages
+#     Add support for highlighting additional languages. Support for
+#     languages mentioned here will be included in all pages.
+#
+#     Example: highlight_languages = ["go", "lisp", "ocaml"]
+#
+#   highlight_style
+#     Choose a different CSS style for highlighting source
+#     code. Setting this option in a page's preamble has no
+#     effect.
+#
+#     Example: highlight_style = "github-gist"
+#
+#   For the list of supported languages and styles, see:
+#   https://cdnjs.com/libraries/highlight.js/
+#
+#   For more info on the highlighting options, see:
+#   https://sourcethemes.com/academic/post/writing-markdown-latex/#highlighting-options
+highlight = true
+highlight_languages = [ "go", "python", "x86asm" ]
+# highlight_style = "github"
+
+# Enable native social sharing buttons?
+sharing = true
+
+# Link custom CSS and JS assets
+#   (relative to /static/css and /static/js respectively)
+custom_css = []
+custom_js  = []
+
+# Publication types.
+#   Used to categorize publications.
+#   The index of the publication type in the list is used as its unique numerical identifier.
+#   The numeric ID is used in a publication's frontmatter to categorize it.
+#   The language can be edited below.
+#   For multi-lingual sites, copy this block to each language section at the end of this file.
+publication_types = [
+'Uncategorized',  # 0
+'Conference proceedings',  # 1
+'Journal',  # 2
+'Work in progress',  # 3
+'Technical report',  # 4
+'Book',  # 5
+'Book chapter'  # 6
+]
+
+edit_page = {repo_url = "https://git.mengyan1223.wang/xry111/blog", repo_branch="master", editable = {}}
+
+# Configuration of talk pages.
+[talks]
+  # Show talk time?
+  time = true
+
+# Configuration of publication pages.
+[publications]
+  # Date format (refer to Go's date format: http://fuckinggodateformat.com )
+  #   Examples: "Mon, Jan 2, 2006" or "2006-01-02"
+  date_format = "January, 2006"
+
+# Configuration of project pages.
+[params.projects]
+  # List publications and talks related to the project?
+  list_children = true
+
+  # Publication list format.
+  #   0 = Simple
+  #   1 = Detailed
+  #   2 = APA
+  #   3 = MLA
+  publication_format = 3
+
+[search]
+  engine = 1
+
+[map]
+  engine = 0
+  map_api_key = ""
+  latitude = "37.4275"
+  longitude = "-122.1697"
+  zoom = 15
+
+[comments]
+  engine = 0
+  commentable = {}