_config.xml

这里首先要知道在 Hexo 中有两份主要的配置文件,其名称都是 _config.yml,它们均是用于站点配置使用的。其中,一份位于站点根目录下(比如我的:D:\h2pl.github.io_config.yml),主要包含 Hexo 本身整站的配置;另一份位于主题目录(D:\hexo\themes\icaurs_config.yml)下,这份配置由主题作者提供,主要用于配置主题相关的选项。为了描述方便,在以下说明中,将前者称为站点配置文件, 后者称为主题配置文件。下面我们先来看看站点配置文件的配置修改。

# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/# Site
title: 程序员江湖 #主页标题
subtitle: 黄小斜的博客 #副标题
description: 大厂程序员,互联网行业新知,终身学习践行者 # 网站描述,可以加一句自己喜欢的座右铭
author: 黄小斜 #作者,左下角显示
avatar: /images/hxx.jpg #设置头像,放在\themes\next\source\images里
language: zh-Hans # 选择中文简体
timezone:
since: 2018 #建站日期,左下角显示# 多说 ShortName
busuanzi:enable: true
#duoshuo_shortname: your_username # 多说评论,后面填写用户名
# 百度分析
baidu_analytics: 2289335dd443797b5867abbd156e7575 # 填写自己获得的id#Social linkslinks:我的简书: https://www.jianshu.com/users/9ab8d7b38c4eGithub: https://github.com/h2pl Email: mailto:362294931@qq.com知乎: https://www.zhihu.com/people/h2plCSDN: https://blog.csdn.net/a724888  # URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://h2pl.github.io/ #填自己的github pages网址
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:
# 本地搜索
search:path: search.xmlfield: post# 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: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
# 语法高亮
highlight:enable: trueline_number: trueauto_detect: truetab_replace:# Category & Tag
default_category: uncategorized
category_map:
tag_map:# 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# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
# 百度网站地图
plugins:
#busuanzi:
#  enable: true
baidusitemap: # 需要安装插件 npm install hexo-generator-baidu-sitemap@0.1.1 --savepath: baidusitemap.xml# 主题切换
theme: icarus
# RSS订阅
feed:type: atompath: atom.xmllimit: 0# ---------------下面选项需要对应插件的支持---------------
# npm install hexo-generator-index --save
# npm install hexo-generator-archive --save
# npm install hexo-generator-category --save
# npm install hexo-generator-tag --saveindex_generator:per_page: 10 ##首页默认10篇文章标题 如果值为0不分页archive_generator:per_page: 20 ##归档页面默认20篇文章标题yearly: true  ##生成年视图monthly: true ##生成月视图tag_generator:per_page: 10 ##标签分类页面默认10篇文章category_generator:per_page: 10 ###分类页面默认10篇文章# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
- type: git
# 填上你自己的仓库名,注意后面有`.git`repository: git@github.com:h2pl/h2pl.github.io.git branch: master
- type: gitrepo: git@github.com:h2pl/h2pl.github.io.gitbranch: srcextend_dirs: /ignore_hidden: falseignore_pattern:public: .

icarus的主题配置文件.config_xml

# Version of the Icarus theme that is currently used
version: 2.6.0
# 你的网站图标,可以搜索在线图标制作,并将其放在images文件夹中
favicon: /images/favicon.svg
# Additional HTML meta tags in an array.
meta:
# Path or URL to RSS atom.xml
rss: /atom.xml
# 显示在导航栏左侧的网站logo,同样可以自己制作
logo: /images/hxx.jpg
# Open Graph metadata
# https://hexo.io/docs/helpers.html#open-graph
open_graph:# Facebook App IDfb_app_id: # Facebook Admin IDfb_admins: # Twitter IDtwitter_id: # Twitter sitetwitter_site: # Google+ profile linkgoogle_plus:
# Navigation bar link settings
navbar:#菜单(显示名称:对应文件夹)menu:主页: /归档: /archives分类: /categories标签: /tags关于: /about# 导航栏右侧图标链接links:My GitHub:icon: fab fa-githuburl: 'https://github.com/h2pl/'
# Footer section link settings
footer:# 页脚图标链接links:Creative Commons:icon: fab fa-creative-commonsurl: 'https://creativecommons.org/'Attribution 4.0 International:icon: fab fa-creative-commons-byurl: 'https://creativecommons.org/licenses/by/4.0/'Download on GitHub:icon: fab fa-githuburl: 'https://github.com/ppoffice/hexo-theme-icarus'
# 文章显示设置
article:#代码主题atom-one-light亮色,atom-one-dark暗色highlight:# Code highlight themes# https://github.com/highlightjs/highlight.js/tree/master/src/stylestheme: atom-one-dark# Show code copying buttonclipboard: true# Default folding status of the code blocks. Can be "", "folded", "unfolded"fold: unfolded# 是否显示文章主图thumbnail: true# 是否显示估算阅读时间readtime: true
# 搜索插件设置
# https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Search
search:# Name of the search plugintype: insight
# 评论插件设置
# https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Comment
comment:#可选valine,disqus(科学上网)等# Name of the comment pluginavatar: retro # Gravatar style : mm/identicon/monsterid/wavatar/retro/hideplaceholder: 要不要说点啥... # Comment Box placeholdertype: valineshortname: 黄小斜
# 打赏功能
# https://ppoffice.github.io/hexo-theme-icarus/categories/Donation/
donate:-# 阿里巴巴支付宝type: alipay# 二维码图片qrcode: '/images/hxx.jpg'-# 微信type: wechat# 二维码图片qrcode: '/images/hxx.jpg'# 分享插件设置
# https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Share
share:# Share plugin nametype: sharejs
# Sidebar settings.
# Please be noted that a sidebar is only visible when it has at least one widget
sidebar:# 左侧边栏设置left:# 是否不随页面滚动# https://ppoffice.github.io/hexo-theme-icarus/Configuration/Theme/make-a-sidebar-sticky-when-page-scrolls/sticky: false# right sidebar settingsright:# 是否不随页面滚动# https://ppoffice.github.io/hexo-theme-icarus/Configuration/Theme/make-a-sidebar-sticky-when-page-scrolls/sticky: false
# 边栏小部件设置
# https://ppoffice.github.io/hexo-theme-icarus/categories/Widgets/
widgets:-# Widget nametype: profile# Where should the widget be placed, left or rightposition: left# Author name to be shown in the profile widgetauthor: 黄小斜# Title of the author to be shown in the profile widgetauthor_title: 蚂蚁金服Java工程师# Author's current location to be shown in the profile widgetlocation: 浙江 杭州# Path or URL to the avatar to be shown in the profile widgetavatar: /images/gzh.jpg# Email address for the Gravatar to be shown in the profile widgetgravatar: # Whether to show avatar image rounded or squareavatar_rounded: false# 关注我的链接,可设为你的GitHub主页follow_link: 'https://github.com/h2pl/'# 个人介绍部件底部图标社交链接social_links:Github:icon: fab fa-githuburl: 'https://github.com/h2pl'RSS:icon: fas fa-rssurl: /-# Widget nametype: toc# Where should the widget be placed, left or rightposition: left-# Widget nametype: links# Where should the widget be placed, left or rightposition: left# Links to be shown in the links widgetlinks:CSDN: 'https://blog.csdn.net/a724888'知乎: 'https://www.zhihu.com/people/h2pl/activities'简书: 'https://www.zhihu.com/people/h2pl/activities'-# Widget nametype: category# Where should the widget be placed, left or rightposition: left-# Widget nametype: tagcloud# Where should the widget be placed, left or rightposition: left-# Widget nametype: recent_posts# Where should the widget be placed, left or rightposition: right-# Widget nametype: archive# Where should the widget be placed, left or rightposition: right-# Widget nametype: tag# Where should the widget be placed, left or rightposition: right
# Other plugin settings
plugins:# Enable page animationsanimejs: true# Enable the lightGallery and Justified Gallery plugins# https://ppoffice.github.io/hexo-theme-icarus/Plugins/General/gallery-plugin/gallery: true# Enable the Outdated Browser plugin# http://outdatedbrowser.com/outdated-browser: true# Enable the MathJax plugin# https://ppoffice.github.io/hexo-theme-icarus/Plugins/General/mathjax-plugin/mathjax: true# Show the back to top button on mobile devicesback-to-top: true# Google Analytics plugin settings# https://ppoffice.github.io/hexo-theme-icarus/Plugins/General/site-analytics-plugin/#Google-Analyticsgoogle-analytics:# Google Analytics tracking idtracking_id: # Baidu Analytics plugin settings# https://ppoffice.github.io/hexo-theme-icarus/Plugins/General/site-analytics-plugin/#Baidu-Analyticsbaidu-analytics:# Baidu Analytics tracking idtracking_id: 2289335dd443797b5867abbd156e7575# Hotjar user feedback plugin# https://ppoffice.github.io/hexo-theme-icarus/Plugins/General/site-analytics-plugin/#Hotjarhotjar:# Hotjar site idsite_id: # Show a loading progress bar at top of the pageprogressbar: true# BuSuanZi site/page view counter# https://busuanzi.ibruce.infobusuanzi: true
busuanzi:enable: true
# CDN provider settings
# https://ppoffice.github.io/hexo-theme-icarus/Configuration/Theme/speed-up-your-site-with-custom-cdn/
# Show PV/UV of the website/page with busuanzi.
# Get more information on http://ibruce.info/2015/04/04/busuanzi/
busuanzi_count:# count values only if the other configs are falseenable: true# custom uv span for the whole sitesite_uv: truesite_uv_header: 访客数site_uv_footer: 人# custom pv span for the whole sitesite_pv: truesite_pv_header: 总访问量site_pv_footer: 次# custom pv span for one page onlypage_pv: truepage_pv_header: <i class="fa fa-file-o"></i>  阅读数page_pv_footer:providers:# Name or URL of the JavaScript and/or stylesheet CDN providercdn: jsdelivr# Name or URL of the webfont CDN providerfontcdn: google# Name or URL of the webfont Icon CDN providericoncdn: fontawesome

效果预览

这就是目前我的博客主页:how2playlife.com

## 微信公众号

个人公众号:程序员黄小斜

微信公众号【程序员黄小斜】新生代青年聚集地,程序员成长充电站。作者黄小斜,职业是阿里程序员,身份是斜杠青年,希望和更多的程序员交朋友,一起进步和成长!专注于分享技术、面试、职场等成长干货,这一次,我们一起出发。

关注公众号后回复“2020”领取我这两年整理的学习资料,涵盖自学编程、求职面试、算法刷题、Java技术学习、计算机基础和考研等8000G资料合集。

技术公众号:Java技术江湖

微信公众号【Java技术江湖】一位阿里 Java 工程师的技术小站,专注于 Java 相关技术:SSM、SpringBoot、MySQL、分布式、中间件、集群、Linux、网络、多线程,偶尔讲点Docker、ELK,同时也分享技术干货和学习经验,致力于Java全栈开发!

关注公众号后回复“PDF”即可领取200+页的《Java工程师面试指南》强烈推荐,几乎涵盖所有Java工程师必知必会的知识点。

搭建自己的技术博客系列(六)酷炫主题icarus常用配置整合版,快速搞定博客首页相关推荐

  1. 计算机故障维修要遵循什么原则,超级实用的六条法则教你快速搞定电脑故障维修!...

    超级实用的六条法则教你快速搞定电脑故障维修! 发布时间:2015-06-03 14:31:39   作者:佚名   我要评论 今天小编给大家推荐的电脑故障维修通用法则,是很实用的哦,大家可以收藏起来好 ...

  2. 快速搞定前端技术一面 匹配大厂面试要求学习笔记

    快速搞定前端技术一面 匹配大厂面试要求学习笔记 第1章 课程介绍[说说面试的那些事儿] 本章会出几个面试题,分析每道题目设计的知识点,然后总结出一个完整的知识体系.让我们开始 "题目-> ...

  3. 【自动化测试技术QTP基础系列六】---QTP脚本录制及回放

    QTP有普通.Analog和Low Level3三种录制模式 普通录制模式是最常用的一种录制模式 Analog录制模式,它能精确地记录下鼠标和键盘在被测试对象中的一系列操作过程,包括鼠标的移动和拖拽. ...

  4. 给自己的博客网站加上酷炫的初音未来音乐游戏?

    先前在某个Q群里有位网友发了个链接,一点进去,发现是个极度让人耳目一新的初音未来音乐网页游戏. 为了让有幸看到这篇文章的看官也来体会下本人第一次玩时的激动,抛个链接--乐柔嘴巴.链接的具体地址是blo ...

  5. 快速搞定前端JS面试--精准匹配大厂要求 (系列课程)

    说明:本系列博客来源于慕课网@双越老师课程<前端JavaScript面试-精准匹配大厂面试要求>,此博客做了简要总结,需要看课程的可以移步学习. 第一章-概述[说说面试那些事] 第二章 J ...

  6. 如何快速搞定技术女神

    今天和一个自己非常欣赏的年轻同事聊天,聊得时候他提起了时序数据库,有点震惊,震惊他的涉猎面,同时也遗憾自己居然从来没注意过,有一种被抛弃的感觉.于是想着去了解下,但是怎么样才能快速的了解呐?于是总结了 ...

  7. 千亿流量拦截控制处理技术-Nginx(安装 命令 路由匹配 负载均衡 常用配置)

    千亿流量拦截控制处理技术-Nginx Nginx使用与配置 1 什么是nginx 1.1 可大量并行处理 1.2 与 Apache 相比 1.2.1 Apache VS Nginx 1.2.2 常用w ...

  8. WordPress主题 知更鸟Begin V5.2版响应式个人博客源码

    主题介绍: CSS3+HTML5.扁平化.响应式设计.自定义颜色风格,不依赖任何前端框架, 支持 PHP7+WP程序版本  4.5+ 类别:杂志.图片.博客.公司企业首页布局,后台自由选择 主题语言: ...

  9. 白话经典算法系列之六 快速排序 快速搞定

    快速排序由于排序效率在同为O(N*logN)的几种排序方法中效率较高,因此经常被采用,再加上快速排序思想----分治法也确实实用,因此很多软件公司的笔试面试,包括像腾讯,微软等知名IT公司都喜欢考这个 ...

最新文章

  1. 画笔Paint的使用
  2. 清华大学:2021元宇宙研究报告!(附PPT下载)
  3. python更新pip失败-新手求助, python 升级 pip 失败
  4. ITK:单相Chan和Vese密集域水平集分割
  5. 回忆自己的大学四年得与失
  6. C++ const成员和引用成员
  7. C# : 调用C++动态库(dll)
  8. Snabbdom(虚拟dom-源码)
  9. C/C++[codeup 1808]字符串查找删除
  10. android车载桌面,车载桌面Car Launcher Pro
  11. java jbutton间隔_如何通过百分比设置JButton宽度? - java
  12. 【数据分析】单因素方差分析(含MATLAB和Python实现)
  13. 外星人冯诺依曼【转】
  14. 知识图谱指南:从理论到应用
  15. 2020商业风口复盘:巨变下的重构与新生
  16. Excel宏正则匹配
  17. [SARscape操作] 哨兵数据的导入 - 以Sentinel-1A为例
  18. 基于人类视觉系统建模的仿生低层次图像处理
  19. 华维单片机编程科普| 一文读懂稳压二极管
  20. centos7:yum -y install gcc python36-devel bzip2-devel sqlite-devel openssl-devel readline-devel xz-d

热门文章

  1. 改变命运的早上三分钟 之 三
  2. 不知不觉openGL已经到4.5了
  3. dz论坛连接mysql数据库_DISCUZ! 修改数据库连接文件配置方法
  4. 淫荡气息溢满魔都……
  5. Mixed-Integer Optimization with Constraint Learning
  6. python混合整数非线性规划_什么是混合整数非线性规划问题
  7. Java中的CAS(compare and swap)
  8. Java:抽象成类找对象
  9. 大华监控前端实时预览(DHplayer)官方插件
  10. hibernate一对一主键唯一外键关联(一)