前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >个人博客建设——Hexo主题icarus的_config.icarus.yml配置参数注释

个人博客建设——Hexo主题icarus的_config.icarus.yml配置参数注释

作者头像
cn華少
发布2021-11-24 16:08:48
6870
发布2021-11-24 16:08:48
举报
文章被收录于专栏:IT综合技术分享IT综合技术分享

个人博客建设——Hexo主题icarus的_config.icarus.yml配置参数注释

背景

我的CN華少博客建设也有一段时间了,这段时间想去更新一下文章,突然发现原来的源码被我不知道弄到哪里去了,于是乎我又准备重新建一个项目,并在其基础上更换一套新的模板,并与Typore中的.md文件进行使用尝试,近期这几篇可能就是这个系列来进行了。 另之前开设的SSO统一身份认证近期没有再进行更新,后续会对其进行补充,请大家持续关注。

正文

本篇用于记录我在Hexo个人博客中使用的icarus主题中的配置文件,为了方便使用该主题的小伙伴们进行配置,我根据该主题提供的一些说明进行整理到了配置文件中,方便英语弱的小伙伴使用。

代码语言:javascript
复制
# 模板版本
version: 4.0.0
# Icarus 主题样式,一种默认,一种赛博朋克"default" or "cyberpunk"
variant: default
# 顶部logo 设置你站点的logo。 此logo会显示在导航栏和页脚。 图片或者是文字
logo: https://gitee.com/cnhuashao/picgo-images/raw/master/20210902174326.png
# 页面元数据配置
head:
    # 浏览器图标
    favicon: https://gitee.com/cnhuashao/picgo-images/raw/master/20210831154758.png
    # Web应用程序清单配置 Icarus支持基本的PWAmanifest.json的生成与Meta标签
    # https://developer.mozilla.org/en-US/docs/Web/Manifest
    manifest:
        # web应用程序的名称(默认为站点标题)
        name: CN華少
        # 显示的web应用程序名称
        # 当没有足够的空间显示全名时
        short_name: CN華少
        # web应用程序的起始URL
        start_url: https://blog.cnhuashao.com
        # 应用程序的默认主题颜色
        theme_color: 
        # 在加载样式表之前,要显示的应用程序页面的占位符背景颜色
        background_color: 
        # 网站的首选显示模式
        display: standalone
        # 可以作为不同上下文的应用程序图标的图像文件
        icons:
            -
                # 映像文件的路径
                src: ''
                # 包含空格分隔的图像维数的字符串
                sizes: ''
                # 关于图像的媒体类型的提示
                type: 
    # 打开图元数据
    # https://hexo.io/docs/helpers.html#open-graph
    open_graph:
        # 页面标题(og:title)(可选)
        # 你应该在大部分时间里把这个空着
        title: CN華少
        # 页面类型(og:type)(可选)
        # 你应该在大部分时间里把这个空着
        type: blog
        # 页面URL (og: URL)(可选)
        # 你应该在大部分时间里把这个空着
        url: https://blog.cnhuashao.com/
        # 封面地址 (og:image) (可选)
        # 你应该在大部分时间里把这个空着
        image: https://gitee.com/cnhuashao/picgo-images/raw/master/psc.jpg
        # 站点名 (og:site_name) (可选)
        # 你应该在大部分时间里把这个空着
        site_name: CN華少
        # 创建作者 (article:author) (可选)
        # 你应该在大部分时间里把这个空着
        author: CN華少
        # 页面描述 (og:description) (可选)
        # 你应该在大部分时间里把这个空着
        description: 
        # Twitter card type (twitter:card)
        twitter_card: 
        # Twitter ID (twitter:creator)
        twitter_id: 
        # Twitter Site (twitter:site)
        twitter_site: 
        # Google+ profile link (deprecated)
        google_plus: 
        # Facebook admin ID
        fb_admins: 
        # Facebook App ID
        fb_app_id: 
    # 页面的结构化数据
    # https://developers.google.com/search/docs/guides/intro-structured-data
    structured_data:
        # 页标题 (可选)
        # 你应该在大部分时间里把这个空着
        title: 
        # 页面描述 (可选)
        # 你应该在大部分时间里把这个空着
        description: 
        # 链接页面网址 (可选)
        # 你应该在大部分时间里把这个空着
        url: 
        # 创建作者 (article:author) (可选)
        # 你应该在大部分时间里把这个空着
        author: 
        # 页面的出版商 (可选)
        # 你应该在大部分时间里把这个空着
        publisher: 
        # 页面出版商标志 (可选)
        # 你应该在大部分时间里把这个空着
        publisher_logo: 
        # 页面图片 (可选)
        # 你应该在大部分时间里把这个空着
        image: 
    # 数组中的附加HTML元标记
    meta:
        # Meta tag specified in <attribute>=<value> style
        # E.g., name=theme-color;content=#123456 => <meta name="theme-color" content="#123456">
        - ''
    # 网址或路径到网站的RSS atom.xml
    rss: atom.xml
# 页面顶部导航栏配置
navbar:
    # 导航菜单项
    menu:
        首页: /
        文章归档: /archives
        分类: /categories
        标签: /tags
        个人简介: /about
        留言: /message
        音乐: /music
        媒体: /media
    # 导航右侧快捷方式
    links:
        Gitee:
            icon: fab fa-git-square
            url: 'https://gitee.com/cnhuashao'

# 页脚
footer:
    # 右侧超链接设置
    links:
        知识共享:
            icon: fab fa-creative-commons
            url: 'https://creativecommons.org/'
        CC BY-NC 4.0:
            icon: fab fa-creative-commons-by
            url: 'https://creativecommons.org/licenses/by-nc/4.0/deed.zh'
        Download on Gitee:
            icon: fab fa-git-square
            url: 'https://gitee.com/cnhuashao'
# 文章相关配置
article:
    # 代码高亮显示设置
    highlight:
        # 代码高亮显示主题
        # https://github.com/highlightjs/highlight.js/tree/master/src/styles
        theme: atom-one-light
        # 显示复制代码按钮
        clipboard: true
        # 代码块的默认折叠状态。 可以是 "", "folded", "unfolded"
        fold: unfolded
    # 显示文章字数统计以及预计阅读时间。
    readtime: true
    # 文章许可协议
    licenses:
        Creative Commons:
            icon: fab fa-creative-commons
            url: 'https://creativecommons.org/'
        Attribution:
            icon: fab fa-creative-commons-by
            url: 'https://creativecommons.org/licenses/by-nc/4.0/'
        Noncommercial:
            icon: fab fa-creative-commons-nc
            url: 'https://creativecommons.org/licenses/by-nc/4.0/'
# 搜索插件配置
# https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Search/
search:
    type: insight
# 评论插件配置-这里使用的畅言
# https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Comment/
comment:
    type: changyan
    # Disqus shortname
    app_id: 
    conf: 
# 捐赠插件配置
# https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Donation/
donates:
    # "Afdian.net" 捐赠按钮配置
    #-
    #    type: afdian
        # URL to the "Afdian.net" personal page
    #    url: ''
    # 支付宝捐赠按钮配置
    -
        type: alipay
        # Alipay qrcode image URL
        qrcode: 'https://gitee.com/cnhuashao/picgo-images/raw/master/20210902142707.jpg'
    # "Buy me a coffee" donate button configurations
    #-
    #    type: buymeacoffee
        # URL to the "Buy me a coffee" page
    #    url: ''
    # Patreon donate button configurations
    #-
    #    type: patreon
        # URL to the Patreon page
    #    url: ''
    # Paypal donate button configurations
    #-
    #    type: paypal
        # Paypal business ID or email address
    #    business: ''
        # Currency code
    #    currency_code: USD
    # 微信捐赠按钮配置
    -
        type: wechat
        # Wechat qrcode image URL
        qrcode: 'https://gitee.com/cnhuashao/picgo-images/raw/master/20210902142706.jpg'
# 分享插件配置
# https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Share/
share:
    type: sharethis
    # URL to the ShareThis share plugin script
    install_url: ''
# 侧边栏的配置。
# 请注意,侧边栏只有在至少有一个小部件时才可见
sidebar:
    # 左栏的配置
    left:
        # 当页面滚动时左侧侧边栏是否停留在顶部
        sticky: true
    # Right sidebar configurations
    right:
        # Whether the sidebar sticks to the top when page scrolls
        sticky: true
# 布局配置文件遵循着与主题配置文件相同的格式和定义。
#    _config.post.yml中的配置对所有文章生效,而_config.page.yml中的配置对所有自定义页面生效。
#    这两个文件将覆盖主题配置文件中的配置。
# 注: 如果想对于文章进行单独设置时,我们就启用_config.post.yml配置文件配置
# http://ppoffice.github.io/hexo-theme-icarus/categories/Widgets/
widgets:
    # 个人信息小部件配置
    -
        # 小部件应该放在哪里,左边栏还是右边栏
        position: left
        type: profile
        # 作者名称
        author: CN華少
        # 作者标题
        author_title: 想做、能做、去做、做到、做好
        # 当前位置
        location: 中国,山东,济南
        # 图像URL
        avatar: https://gitee.com/cnhuashao/picgo-images/raw/master/psc.jpg
        # 是否显示圆形头像图像
        avatar_rounded: true
        # Gravatar头像邮箱地址
        gravatar:
        # 关注按钮的URL或路径
        follow_link: 'https://github.com/cnHuaShao'
        # 底部快捷连接配置
        social_links:
            Gitee:
                icon: fab fa-git-square
                url: 'https://gitee.com/cnHuaShao'
            Email:
                icon: fa fa-envelope
                url: 'mailto:lz2392504@gmail.com'
            Weibo:
                icon: fab fa-weibo
                url: ''
            WeiXin:
                icon: fab fa-weixin
                url: ''
            Next:
                icon: fab fa-dribbble
                url: 'https://blog.cnhuashao.com/remove.io'
            RSS:
                icon: fas fa-rss
                url: /
    # 目录 小部件配置
    -
        # 小部件显示位置
        position: right
        type: toc
        # 是否显示每个标题的索引
        index: true
        # 是否在看不到副标题时折叠副标题
        collapsed: true
        # 标题显示的最高水平
        depth: 3
    # 链接小部件配置
    -
        # 左边栏还是右边栏
        position: left
        type: links
        # 站点的名称和url
        links:
            Hexo: 'https://hexo.io'
            Gitee: 'https://gitee.com/cnhuashao'
    # 分类小部件配置
    -
        # Where should the widget be placed, left sidebar or right sidebar
        position: right
        type: categories
    # 最新文章小部件配置
    -
        # Where should the widget be placed, left sidebar or right sidebar
        position: left
        type: recent_posts
    # 档案小部件的配置
    -
        # Where should the widget be placed, left sidebar or right sidebar
        position: left
        type: archives
    # 标签小部件的配置
    -
        # Where should the widget be placed, left sidebar or right sidebar
        position: right
        type: tags
    # 邮件订阅widget配置
    -
        # Where should the widget be placed, left sidebar or right sidebar
        position: left
        type: subscribe_email
        # Hint text under the email input
        description: 
        # Feedburner ID
        feedburner_id: ''
    # 谷歌AdSense单元配置
    -
        # Where should the widget be placed, left sidebar or right sidebar
        position: right
        type: adsense
        #  data-ad-client
        client_id: ''
        # data-ad-slot
        slot_id: ''
    # Follow.跟进。它的电子邮件订阅小部件配置
    -
        # Where should the widget be placed, left sidebar or right sidebar
        position: left
        type: followit
        # Hint text under the email input
        description: 
        # Subscription form action URL
        action_url: ''
        # Feed claiming verification code
        verification_code: ''
# 插件配置
# https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/
plugins:
    # 启用页面启动动画
    animejs: true
    # 显示“返回顶部”按钮
    back_to_top: true
    # 百度分析插件设置
    # https://tongji.baidu.com
    baidu_analytics:
        # Baidu Analytics tracking ID
        tracking_id: 
    # Bing网站管理员工具插件设置
    # https://www.bing.com/toolbox/webmaster/
    bing_webmaster:
        # Bing Webmaster Tools tracking ID in the <meta> tag
        tracking_id: 
    # 不蒜子网页计数器
    # https://busuanzi.ibruce.info
    busuanzi: false
    # CNZZ统计
    # https://www.umeng.com/web
    cnzz:
        # CNZZ tracker id
        id: 
        # CNZZ website id
        web_id: 
    # 提醒用户cookies的使用
    # https://www.osano.com/cookieconsent/
    cookie_consent:
        # The compliance type. Can be "info", "opt-in", or "opt-out"
        type: info
        # Theme of the popup. Can be "block", "edgeless", or "classic"
        theme: edgeless
        # Whether the popup should stay static regardless of the page scrolls
        static: false
        # Where on the screen the consent popup should display
        position: bottom-left
        # URL to your site's cookie policy
        policyLink: 'https://www.cookiesandyou.com/'
    # Enable the lightGallery and Justified Gallery plugins
    gallery: true
    # 谷歌分析插件设置
    # https://analytics.google.com
    google_analytics:
        # Google Analytics tracking ID
        tracking_id: 
    # Hotjar user feedback plugin
    # https://www.hotjar.com/
    hotjar:
        # Hotjar site id
        site_id: 
    # Enable the KaTeX math typesetting support
    # https://katex.org/
    katex: false
    # Enable the MathJax math typesetting support
    # https://www.mathjax.org/
    mathjax: false
    # 浏览器升级提醒
    # http://outdatedbrowser.com/
    outdated_browser: false
    # 网页载入进度条
    progressbar: true
    # Statcounter statistics
    # https://statcounter.com/
    statcounter:
        # Statcounter project id
        project: 
        # Statcounter project security code
        security: 
    # Twitter conversion tracking plugin settings
    # https://business.twitter.com/en/help/campaign-measurement-and-analytics/conversion-tracking-for-websites.html
    twitter_conversion_tracking:
        # Twitter Pixel ID
        pixel_id: 
# CDN 提供商
# https://ppoffice.github.io/hexo-theme-icarus/Configuration/Theme/speed-up-your-site-with-custom-cdn/
providers:
    # Name or URL template of the JavaScript and/or stylesheet CDN provider
    cdn: jsdelivr
    # Name or URL template of the webfont CDN provider
    fontcdn: google
    # Name or URL of the fontawesome icon font CDN provider
    iconcdn: fontawesome
本文声明:

本作品由 cn華少 采用 知识共享署名-非商业性使用 4.0 国际许可协议 进行许可。

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2021/9/2 下午,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 个人博客建设——Hexo主题icarus的_config.icarus.yml配置参数注释
    • 背景
      • 正文
      相关产品与服务
      内容分发网络 CDN
      内容分发网络(Content Delivery Network,CDN)通过将站点内容发布至遍布全球的海量加速节点,使其用户可就近获取所需内容,避免因网络拥堵、跨运营商、跨地域、跨境等因素带来的网络不稳定、访问延迟高等问题,有效提升下载速度、降低响应时间,提供流畅的用户体验。
      领券
      问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档