访问Hexo官方网站:https://hexo.io/zh-cn/,选择中文,进入主题,搜索Hipaper主题,点击Hipaper,进入Hipaper的Github源文件,点击Clone or Download,下载Zip格式到本地后,解压改名为hipaper,复制改文件到hexo博客根目录下/themes。 在开始配置hexo主题之前先阅读官方的文档有个了解:https://hexo.io/zh-cn/docs/ 参考我的Hexo下_config.yml配置文件:
# Site title:蓝&羽#Blog 名字 subtitle:Linux description:亭阁晓岸听风雨,人间纵横能几回#显示的描述 keywords: author:matace#作者 language:en#语言 en/zh-CN timezone:Asia/ChongQing#时间 Asia
# URL ## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/' url:https://www.matace.com#自己绑定的域名 root:/ # permalink: :year/:month/:day/:title/ #生成文章的链接格式 permalink_defaults: pretty_urls: trailing_index:true# Set to false to remove trailing index.html from permalinks
# 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#创建资源管理文件夹 relative_link:false future:true highlight: enable:true line_number:true auto_detect:false 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:5#首页显示的文章数 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 use_date_for_updated:false
# Pagination ## Set per_page to 0 to disable pagination per_page:10 pagination_dir:page
# 改变文章默认的链接方式 permalink::category/:abbrlink/ # abbrlink abbrlink: alg:crc32#support crc16(default) and crc32 rep:hex#support dec(default) and hex
# 添加文章的版权信息 # Add copyright information addlink: before_text:__本文作者__:Matace<br/>__本文地址__: after_text:<br/>__版权声明__:本博客所有文章除特别声明外,均采用[CCBY-NC-SA4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)许可协议。转载请注明出处!
# --------------------------------------------------------------- # Site Information Settings # ---------------------------------------------------------------
# Header Menu menu: Home:/ Archives:archives Categories:categories Tags:tags About:about rss:/atom.xml
# Set default keywords (Use a comma to separate) keywords:""
# Put your favicon.ico into `hexo-site/themes/hipaper/source/` directory. favicon:css/images/favicon.ico
# Put your avatar.jpg into `hexo-site/themes/hipaper/source/` directory. # url is target link (E.g. `url: https://hexo.io/logo.svg` or `url: css/images/mylogo.jpg`) avatar: enable:false width:124 height:124 bottom:10 url:https://hexo.io/logo.svg
# Social Links # Key is the name of FontAwsome icon. # Value is the target link (E.g. GitHub: https://github.com/iTimeTraveler) social: Github:https://github.com/MATACE Weibo: Twitter: Facebook: Google-plus: Instagram:
# Search search: insight:true# you need to install `hexo-generator-json-content` before using Insight Search swiftype:# enter swiftype install key here baidu:false# you need to disable other search engines to use Baidu search, options: true, false
# comment ShortName, you can choose only ONE to display. duoshuo_shortname: #disqus_shortname: iTimeTraveler livere_shortname:MTAyMC8yOTQ4MS82MDQ5 uyan_uid: wumii:
# Code Highlight theme # Available value: # default | normal | night | night eighties | night blue | night bright # https://github.com/chriskempson/tomorrow-theme highlight_theme:nighteighties