# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/

# Site
title: 字节君
subtitle: 热爱漫无边际,生活自有分寸
avatar: https://npm.elemecdn.com/lvbyte-cdn/20230104/%E8%8B%B9%E6%9E%9C.156l7bksen40.jpg
favicon: https://npm.elemecdn.com/lvbyte-cdn/20230104/%E8%8B%B9%E6%9E%9C.156l7bksen40.jpg
description: 漂泊在浩瀚宇宙的小行星
keywords: 初中,极客,编程,计算机
author: lvbyte
language: zh-CN
timezone: ''

# URL
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
url: https://blog.lvbyte.top
permalink: posts/:abbrlink/     # 可改为你需要的连接, 例如archives/:abbrlink.html
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: false
relative_link: false
future: true
highlight:
  enable: true
  line_number: true
  auto_detect: false
  tab_replace: ''
  wrap: true
  hljs: false
prismjs:
  enable: false
  preprocess: true
  line_number: true
  tab_replace: ''

# 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
## updated_option supports 'mtime', 'date', 'empty'
updated_option: 'mtime'

# 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: stellar








# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
deploy:
  - type: git
    repo: https://github.com:Bytelv/Myblog.git # 注意要把地址改为自己的仓库地址
    branch: main
    message: "Build at {{ now('YYYY-MM-DD HH:mm:ss Z') }}"
  - type: cjh_bing_url_submitter
  - type: cjh_baidu_url_submitter
inject:
  head:

    - <meta name="baidu-site-verification" content="codeva-PolTe1ZwAJ" /> #blog.lvbyte.top百度验证
  script:
   # - <script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
   # - <script src="https://cdn.jsdelivr.net/gh/fz6m/china-lantern@1.6/dist/china-lantern.min.js"></script> #中国春节红灯笼
  #  - <script src="https://unpkg.com/magic-snowflakes/dist/snowflakes.min.js"></script> #引入雪花
  #  - <script> var sf = new Snowflakes(); </script> #开启雪花
  #  - <script> loadStatistic("https://qexo.lvbyte.top") </script> #引入QEXO统计JS
   # - <script src="https://recaptcha.net/recaptcha/api.js?render=_reCAPTCHA_site_key"></script>
  #  - <script>grecaptcha.ready(function(){grecaptcha.execute('6Ldd7hgkAAAAADn8MJoUaZ0z0JLRjRqPyrQ-Gb5Y',{action:'homepage'}).then(function(token){console.log(token)})});</script>
   # - <script type="text/javascript" src="https://cdn.jsdelivr.net/gh/bytelv/lvbyteCdn@main/Code.js"></script>
   # - <script>let tianliGPT_postSelector = '.md-text.content.post';let tianliGPT_key = 'x0LdwLe32lb21mgKNSVK';</script> #AI摘要
  #  - <script src="https://npm.elemecdn.com/lvbyte-oss1/js/tianli_gpt.js"></script> #AI摘要
  #  - <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lvbyte-oss1/css/tianli_gpt.css">

  footer:
    - <span id="busuanzi_container_site_pv">本站总访问量<span id="busuanzi_value_site_pv"></span>次</span>
    - 站点访问量 <span id="qexo-site-pv">Loading...</span>
    - 站点访客数 <span id="qexo-site-uv">Loading...</span>
    - 页面访问量 <span id="qexo-page-pv">Loading...</span>
 #   - <script src="https://cdn.jsdelivr.net/npm/qexo-static@1.3.0/hexo/statistic/statistic.min.js"></script>


sitemap:
 path: sitemap.xml
baidusitemap:
 path: baidusitemap.xml
 


 
# Extensions
## Plugins: http://hexo.io/plugins/
#RSS订阅
plugin:
- hexo-generator-feed
#Feed Atom
feed:
type: atom
path: atom.xml
limit: 20 










webpushr:
  enable: false
  sw_self: true
  webpushrKey: "84f5a8ac0fb0f7c07e0781b762aaa1aa"
  webpushrAuthToken: "73260"
  # 出于安全考虑，建议将上述两个重要参数添加至系统全局环境变量，并删除或注释掉此处配置
  # 否则可在网页端向访问者或订阅用户发送推送 https://www.webpushr.com/api-playground
  # 例如GitHub Actions环境变量配置，参数名不变，密钥名自定义，可参考如下
  # env:
  #     webpushrKey: ${{ secrets.WEBPUSHR_KEY }}
  #     webpushrAuthToken: ${{ secrets.WEBPUSHR_AUTH_TOKEN }}
  # 如果您的仓库私有，则无需担心此问题

  trackingCode: "BIVk4y3eO5C9PPgSdkpnjQA-VmY1XJRove-w3et-sdAqEpb4r8bcKeoOKvUX6bX3p904uj1myUPA--Y6TAYCA_E"
  icon: "https://image.lvbyte.top/file/6a9c12ee5c5e3194f50a0.png" # 必须为 HTTPS 以及 192*192 png图片
  # auto_hide: false # 默认为 1，代表true，即自动隐藏
  # sort: "date" # 默认为updated，即只要最新文章更改了更新时间即推送新文章，改为date即文章第一次发布时间
  #delay: "0" # 延时推送，考虑到CDN缓存更新，默认定时为在 hexo d 10分钟后推送，单位为分钟（最短延时为5分钟，设置 0 则会立即推送）
  # expire: "15d" # 推送过期时长，默认值为7天，格式如下：'5m'代表5分钟,'5h'代表5小时, '5d'代表5天.
  # image: # 默认为文章封面，Front-matter 属性为'cover'(butterfly主题友好选项)，如果您没有定义默认封面或此属性，请在这里设置默认image
 # action_buttons: # 如果你需要额外自定义按钮 可按照如下格式：
 #   - title: 阅读全文 # 当 title 未配置时 默认值为 “前往查看”
      # url:  # 当 url 未配置时 默认值为 最新文章链接
 #   - title: 订阅页面
 #     url: https://blog.lvbyte.top/rss
    # 当 action_buttons 未定义时也默认保留了一个“前往查看”按钮，除非设置为 false
    # action_buttons: false # 当设为 false 则不显示额外的按钮，因为隐藏按钮即为当前文章链接

  # 以下配置为按订阅主题推送给不同订阅用户，请按照数组形式，一一对应，具体位置请看使用文档
  #categories: [工作, 博客, 工具, 生活, 音乐, 学习]
  #segment: ["484223", "484224", "484225", "484226", "484227", "484229"]
  endpoint: all # 可选配置 all / segment / sid
  # 默认为 segment，即根据不同主题推送细分，同时配置上述选项
  # 例如 all，即推送至所有用户；针对本地测试，建议只推送给单个用户即自己，同时设置下方的 sid 值
  # 您也可以将segment 设置为 all-users 对应的ID，同样也可以实现推送至所有用户
  # sid: "119810055" # 单个用户ID 可在控制台查看 https://app.webpushr.com/subscribers


  # 此外，在文章 Front-Matter 处
  # 可覆盖 auto_hide 和 expire 配置，针对需要特别提醒文章可以设置不自动隐藏及过期时间延长等操作
  # 以及可指定schedule参数（例如：schedule: 2022-10-01 00:00:00），定时推送
  # 当文章头设置 webpushr: false 时，可关闭本篇文章推送，此参数主要防止久远文章更改更新时间后自动推送


webPushNotification:
  webpushrKey: "84f5a8ac0fb0f7c07e0781b762aaa1aa"
  webpushrAuthToken: "73260"
  trackingCode: "BIVk4y3eO5C9PPgSdkpnjQA-VmY1XJRove-w3et-sdAqEpb4r8bcKeoOKvUX6bX3p904uj1myUPA--Y6TAYCA_E"







# abbrlink 配置
abbrlink:
  alg: crc32      # 算法--支持 crc16(默认) 和 crc32
  rep: hex        # 进制--支持 dec(默认/十进制) and hex(十六进制)
  drafts: false   # (true)处理草稿/(false)默认不处理草稿
