Hexo搭建时时彩源码下载个人博客(三)—— Hexo博客的美化

安装Hexo博客主题

Hexo时时彩源码下载【大神源码论坛】dsluntan.com  【布丁源码论坛】budingbbs.com 企娥3393756370博客可以安装不同的主题,这里我们只说最火的Next主题。首先我们在自己电脑里的博客文件夹内(即username.github.io文件夹内)右键选择Git Bash here,在终端窗口内输入以下代码:

$ git clone https://github.com/iissnan/hexo-theme-next themes/next

稍等片刻,安装完成后你的themes文件夹内就会多出一个next文件夹,请在站点的配置文件中把主题选为next,即theme: next

博客的配置

接下来我们对博客的配置主要将在两个_config.yml文件中进行。第一个为Hexo博客的站点配置文件位于你的博客文件夹(即username.github.io文件夹)内;第二个位于next文件夹内。 首先让我们看看站点配置文件都有什么:

# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html ## Source: https://github.com/hexojs/hexo/ # Site title: why so serious? # 站点名 subtitle: # 副标题 description: author: WoodenRobot # 作者 language: zh-Hans # 语言,zh-Hans为中文简体 timezone: # URL ## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/' url: http://woodenrobot.me # 博客网址 root: / permalink: :year/:month/:day/:title/ permalink_defaults: # 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: true line_number: true auto_detect: false tab_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/ theme: next #请添加next主题并选择 #theme: landscape #theme: yilia # 多说 duoshuo_shortname: woodenrobot # xxx.duoshuo.com,xxx即是shortname # 百度 # 需要安装插件 npm install hexo-generator-baidu-sitemap@0.1.1 --save baidusitemap: path: baidusitemap.xml # Deployment ## Docs: https://hexo.io/docs/deployment.html deploy: type: git repository: https://github.com/Wooden-Robot/Wooden-Robot.github.io.git branch: master plugins: -hexo-generator-feed

猜你喜欢

转载自www.cnblogs.com/asfksdgdff/p/9377340.html
今日推荐