Hexo 设置备份

2018 年 08 月 07 日

I’m back. 备份一下现在的 Hexo 设置。

主题和插件

# 主题
git clone https://github.com/theme-next/hexo-theme-next themes/next
# RSS
npm i hexo-generator-feed
# 部署
npm i hexo-deployer-sftp
# 优化
npm i hexo-html-minifier hexo-clean-css hexo-uglify

_config.yml - 根目录

# Docs: https://hexo.io/docs/configuration.html

# Site
title: 星雨之夜
author: Twinkle
language: zh-CN

# URL
permalink: :title/

# disable pagination for archive page
archive: 1

# Extensions
theme: next

# Deployment: https://hexo.io/docs/deployment.html#SFTP
deploy:
  type: sftp
  host: <host>
  user: <user>
  remotePath: [remote path]
  port: [port]
  privateKey: [path/to/privateKey]
  passphrase: [passphrase]

_config.yml - 主题目录

v6.6.0

favicon:
  small: /favicon-16x16.png
  medium: /favicon-32x32.png
  apple_touch_icon: /apple-touch-icon.png
  safari_pinned_tab: /safari-pinned-tab.svg
  android_manifest: /site.webmanifest
  ms_browserconfig: /browserconfig.xml

footer:
  since: 2015
  icon:
    name: heart
    color: '#ff0000'
  powered:
    version: false

creative_commons:
  post: true

seo: true

menu:
  tags: /tags/ || tags
  categories: /categories/ || th
  about: /about/ || user

scheme: Pisces

social:
  GitHub: https://github.com/saintwinkle || github
  Weibo: https://weibo.com/levicorpus || weibo
  Twitter: https://twitter.com/saintwinkle || twitter

social_icons:
  icons_only: true
  transition: true

avatar:
  url: /uploads/avatar.webp
  rounded: true
  opacity: 0.85

sidebar:
  b2t: true
  scrollpercent: true

post_meta:
  updated_at:
    enabled: false

disqus:
  enable: true
  shortname: saintwinkle
  count: false
  lazyload: true

mobile_layout_economy: true

android_chrome_color: '#222'

google_analytics: UA-121613404-1

leancloud_visitors:
  enable: true
  app_id: <app_id>
  app_key: <app_key>
  security: false

motion:
  async: true

vendors:
  jquery: //cdn.jsdelivr.net/npm/jquery@2.1.3/dist/jquery.min.js
  velocity: //cdn.jsdelivr.net/npm/velocity-animate@1.2.1/velocity.min.js
  velocity_ui: //cdn.jsdelivr.net/npm/velocity-animate@1.2.1/velocity.ui.min.js
  fontawesome: //cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css

EOF

Twinkle 的博客
瞎折腾