| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- # Hexo Configuration
- ## Docs: https://hexo.io/docs/configuration.html
- ## Source: https://github.com/hexojs/hexo/
- # Site
- title: 正儿八经 - 资深技术专家
- subtitle: 浪起来?技术博客与求职信息
- description: 10+经验擅长Java、研发管理、架构设计、React、Docker、Python等
- keywords: Java开发, 研发负责人, 架构师, 求职, 软件工程师
- author: Gamehu
- language: zh-CN
- timezone: Asia/Shanghai
- # URL
- ## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
- url: https://www.gamehu.run/
- root: /
- permalink: :year/:month/:day/:title/
- permalink_defaults:
- pretty_urls:
- trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
- trailing_html: true # Set to false to remove trailing '.html' from permalinks
- # Directory
- source_dir: source
- public_dir: public
- tag_dir: tags
- archive_dir: archives
- category_dir: categories
- code_dir: downloads/code
- i18n_dir: :lang
- skip_render:
- # Writing
- new_post_name: :title.md # File name of new posts
- default_layout: post
- titlecase: false # Transform title into titlecase
- external_link:
- enable: true # Open external links in new tab
- field: site # Apply to the whole site
- exclude: ''
- filename_case: 0
- render_drafts: false
- post_asset_folder: true
- marked:
- prependRoot: true
- postAsset: true
- relative_link: false
- future: true
- highlight:
- enable: true
- line_number: true
- auto_detect: false
- tab_replace: ''
- wrap: true
- hljs: false
- # Home page setting
- # path: Root path for your blogs index page. (default = '')
- # per_page: Posts displayed per page. (0 = disable pagination)
- # order_by: Posts order. (Order by date descending by default)
- index_generator:
- path: ''
- per_page: 10
- order_by: -date
- # Category & Tag
- default_category: uncategorized
- category_map:
- tag_map:
- # Metadata elements
- ## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
- meta_generator: true
- # Date / Time format
- ## Hexo uses Moment.js to parse and display date
- ## You can customize the date format as defined in
- ## http://momentjs.com/docs/#/displaying/format/
- date_format: YYYY-MM-DD
- time_format: HH:mm:ss
- ## Use post's date for updated date unless set in front-matter
- updated_option: false
- # Pagination
- ## Set per_page to 0 to disable pagination
- per_page: 10
- pagination_dir: page
- # Include / Exclude file(s)
- ## include:/exclude: options only apply to the 'source/' folder
- include:
- exclude:
- ignore:
- # Extensions
- ## Plugins: https://hexo.io/plugins/
- ## Themes: https://hexo.io/themes/
- theme: next
- # offline config passed to sw-precache.
- service_worker:
- maximumFileSizeToCacheInBytes: 5242880
- staticFileGlobs:
- - public/**/*.{js,html,css,png,jpg,gif,svg,eot,ttf,woff,woff2}
- stripPrefix: public
- verbose: true
- # Deployment
- ## Docs: https://hexo.io/docs/deployment.html
- deploy:
- type: git
- repo:
- # github: https://github.com/gamehu/gamehu.github.io,master
- vps: ssh://root@104.128.95.214:28915/home/git/blog.git,master
- # deploy:
- # type: git
- # repository: git@github.com/gamehu/gamehu.github.io.git
- # branch: master
- # mermaid chart
- mermaid: ## mermaid url https://github.com/knsv/mermaid
- enable: true # default true
- version: "7.1.2" # default v7.1.2
- options: # find more api options from https://github.com/knsv/mermaid/blob/master/src/mermaidAPI.js
- #startOnload: true // default true
- # Likely Share
- # See: https://ilyabirman.net/projects/likely/, https://github.com/ilyabirman/Likely
- # Likely supports four looks, nine social networks, any button text.
- # You are free to modify the text value and order of any network.
- likely:
- enable: true
- cdn:
- js: //cdn.jsdelivr.net/npm/ilyabirman-likely@2/release/likely.min.js
- css: //cdn.jsdelivr.net/npm/ilyabirman-likely@2/release/likely.min.css
- look: normal # available values: normal, light, small, big
- networks:
- twitter: Tweet
- facebook: Share
- linkedin: Link
- gplus: Plus
- vkontakte: Share
- odnoklassniki: Class
- telegram: Send
- whatsapp: Send
- pinterest: Pin
- # NeedMoreShare2
- # Dependencies: https://github.com/theme-next/theme-next-needmoreshare2
- # For more information: https://github.com/revir/need-more-share2
- # iconStyle: default | box
- # boxForm: horizontal | vertical
- # position: top / middle / bottom + Left / Center / Right
- # networks:
- # Weibo | Wechat | Douban | QQZone | Twitter | Facebook | Linkedin | Mailto | Reddit | Delicious | StumbleUpon | Pinterest
- # GooglePlus | Tumblr | GoogleBookmarks | Newsvine | Evernote | Friendfeed | Vkontakte | Odnoklassniki | Mailru
- needmoreshare:
- enable: true
- cdn:
- js: //cdn.jsdelivr.net/gh/theme-next/theme-next-needmoreshare2@1/needsharebutton.min.js
- css: //cdn.jsdelivr.net/gh/theme-next/theme-next-needmoreshare2@1/needsharebutton.min.css
- postbottom:
- enable: true
- options:
- iconStyle: box
- boxForm: horizontal
- position: bottomCenter
- networks: Weibo,Wechat,Douban,QQZone,Twitter,Facebook
- float:
- enable: false
- options:
- iconStyle: box
- boxForm: horizontal
- position: middleRight
- networks: Weibo,Wechat,Douban,QQZone,Twitter,Facebook
- # 在Hexo的_config.yml中启用sitemap
- sitemap:
- path: sitemap.xml
- baidusitemap:
- path: baidusitemap.xml
- # 开启RSS订阅
- feed:
- type: atom
- path: atom.xml
- limit: 20
- # 压缩HTML
- html_minifier:
- enable: false
- exclude:
- # 压缩CSS
- css_minifier:
- enable: true
- exclude:
- - '*.min.css'
- # 压缩JS
- js_minifier:
- enable: true
- mangle: true
- output:
- compress:
- exclude:
- - '*.min.js'
- image_minifier:
- enable: false
|