hexo使用详解

hexo入门

  1. 安装hexo
$ npm install hexo-cli -g
  1. 初始化blog
$ hexo init blog
$ cd blog
  1. 启动服务
hexo server
  1. 创建文章
$ hexo new "Hello Hexo"
  1. 生成文章
$ hexo generate
  1. 修改为中文主题

将语言切换为中文config.yml配置

language: zh-Hans
  1. 发布到github配置_config.yml
deploy:
  type: git
  repo: https://github.com/mxdldev/mxdldev.github.io.git
  branch: master

hexo next主题

  1. 下载next主题
$ cd hexo-site
$ git clone https://github.com/next-theme/hexo-theme-next themes/next
  1. 修改主题在站点配置文件_config.yml
theme: next
  1. 评论支持 NexT 已经原生支持 多说 and Disqus 评论系统
duoshuo:
  enable: true
  shortname: your-duoshuo-shortname
disqus_shortname: your-disqus-shortname
  1. 创建tags页面
 hexo new page "tags"
hexo new page "categories"
  1. 编辑标签页,设置页面类型为tags
title: All tags
date: 2014-12-22 12:39:04
type: "tags"
title: All categories
date: 2014-12-22 12:39:04
type: "categories"
title: Retrofit视频教程,实战开发
date: 2020-11-01 20:31:40
tags: http okhttp retrofit retrofit视频教程
categories: Retrofit
  1. 添加 tags 到主题配置文件 _config.yml 里:
 menu:
    home: /
    archives: /archives
    tags: /tags

hexo ils主题

  1. 下载主题
git clone https://github.com/XPoet/hexo-theme-ils.git  themes/next
  1. 创建分类
---
title: categories
date: 2020-11-01 20:34:59
---
  1. 创建文章
---
title: Retrofit视频教程,实战开发
date: 2020-11-01 20:31:40
tags: [http,retrofit,retrofit视频教程]
categories: [Retrofit]
---
  1. _config.yml配置
# ---------------------------------------------------------------------------------------
#  Your basic info
#  你的基本信息,请正确填写,将显示在主题中。
# ---------------------------------------------------------------------------------------
base_info:
  title: ILS
  author: XPoet
  email: i@xpoet.cn
  url: https://ils.xpoet.cn/

# ---------------------------------------------------------------------------------------
# Theme style settings
# 主题样式设置
# ---------------------------------------------------------------------------------------
style:
  # Theme primary color
  # 主颜色,修改为自己喜欢的颜色即可,支持 rgb、十六进制格式。
  # 建议使用 Web 安全色,https://www.bootcss.com/p/websafecolors/
  primary_color: "#0066CC"

  # favicon
  # 网站图标,把 "/source/images/" 目录下的 "favicon.png",换成自己的图片即可。
  favicon: images/favicon.png

  # avatar
  # 头像图片,把 "/source/images/" 目录下的 "avatar.png",换成自己的图片即可。
  avatar: images/avatar.png

# ---------------------------------------------------------------------------------------
# Navigation menu
# 导航菜单
# 如需新增导航页,请按下面格式填写,同时需要创建相对应的 Hexo 页面。
# 如何新增页面,请参考下面的教程:“Add page 添加页面”。
# ---------------------------------------------------------------------------------------
menu:
  Home: /
  Archives: /archives
  # Categories: /categories
  # Tags: /tags
  # Links: /links
  # About: /about
  # ...

# ---------------------------------------------------------------------------------------
# RSS
# Dependencies: hexo-generator-feed
# See: https://github.com/hexojs/hexo-generator-feed
# RSS 订阅,如需启用,请先安装 Hexo 插件:hexo-generator-feed。
# 具体步骤,参考下面的教程:“RSS 订阅”。
# ---------------------------------------------------------------------------------------
rss:
  enable: false

# ---------------------------------------------------------------------------------------
# Comment plugin
# 评论插件
# 主题内置了 Valine 和 Gitalk,只能使用其中一款。
# ---------------------------------------------------------------------------------------
comment:
  # Valine
  # See: https://github.com/xCss/Valine
  # 如何使用 Valine,请参考官方教程:https://github.com/xCss/Valine
  # 获取必要的参数,在下面填写。
  valine:
    enable: false
    appid: # your leancloud application appid
    appkey: # your leancloud application appkey
    meta: # comment input meta, type: Array, values: ['nick','mail','link']
    placeholder: # your placeholder

  # Gitalk
  # See: https://github.com/gitalk/gitalk
  # 如何使用 Gitalk,请参考官方教程:https://github.com/gitalk/gitalk
  # 获取必要的参数,在下面填写。
  gitalk:
    enable: false
    github_id: # GitHub repo owner
    repository: # Repository name to store issues
    client_id: # GitHub Application Client ID
    client_secret: # GitHub Application Client Secret

# ---------------------------------------------------------------------------------------
# Website count
# 网站计数
# ---------------------------------------------------------------------------------------
website_count:
  # busuanzi
  # See: http://ibruce.info/2015/04/04/busuanzi/
  # 主题内置“不蒜子”计数,无需额外配置,选择你要开启的计数项即可。
  # site_uv 访问人数计数
  # site_pv 总访问量计数
  # page_pv 文章阅读量计数
  busuanzi_count:
    enable: false
    site_uv: false
    site_pv: false
    page_pv: false

# ---------------------------------------------------------------------------------------
# Local Search
# Dependencies: hexo-generator-searchdb
# See: https://github.com/theme-next/hexo-generator-searchdb
# 本地搜索,如需启用,请先安装 Hexo 插件:hexo-generator-searchdb。
# 具体步骤,参考下面的教程:“Local search 本地搜索”。
# ---------------------------------------------------------------------------------------
local_search:
  enable: true

  # If auto, trigger search by changing input.
  # If manual, trigger search by pressing enter key or search button.
  # trigger 搜索触发方式,输入关键字后会触发搜索,可选 auto(自动)或 manual(手动)。
  ### auto 每输入或删除一个字符后,自动触发搜索。
  ### manual 每输入或删除一个字符后,需要按回车键触发搜索。
  trigger: auto # values: auto | manual

  # Unescape html strings to the readable one.
  # # 转义 HTML 字符串为可读字符串。
  unescape: false

  # Preload the search data when the page loads.
  # 在页面加载时预加载搜索数据。
  preload: false

# ---------------------------------------------------------------------------------------
# Post word count
# Dependencies: hexo-wordcount
# See: https://github.com/willin/hexo-wordcount
# 文章字数统计 & 阅读时长统计
# 如需启用,请先安装 Hexo 插件:hexo-wordcount。
# 在博客根目录下使用 npm 命令安装: npm i hexo-wordcount --save
# ---------------------------------------------------------------------------------------
post_wordcount:
  enable: false
  wordcount: false # word count, one article
  min2read: false # time to read, one article

# ---------------------------------------------------------------------------------------
# Home page article block display settings
# 首页文章块底部的显示设置,可配置显示分类和标签。
# limit 显示分类或标签的最大个数。
# ---------------------------------------------------------------------------------------
home_article:
  category:
    enable: false # show category in home page article block
    limit: 3 # max number of categories shown in home page article block
  tag:
    enable: false # show tags in home page article block
    limit: 5 # max number of tags shown in home page article block

# ---------------------------------------------------------------------------------------
# Code copy
# 代码复制,代码块的复制风格可选 default | flat | mac。
# ---------------------------------------------------------------------------------------
code_copy:
  enable: true
  style: flat # values: default | flat | mac

# ---------------------------------------------------------------------------------------
# Sidebar tools
# 侧边栏工具(搜索按钮、昼夜模式切换按钮、RSS按钮、TOC显示切换按钮)
# ---------------------------------------------------------------------------------------
side_tools:
  enable: false

# ---------------------------------------------------------------------------------------
# Back to top
# 回到顶部
# ---------------------------------------------------------------------------------------
back2top:
  enable: false

# ---------------------------------------------------------------------------------------
# Table of Contents in the Sidebar
# 文章目录结构
# ---------------------------------------------------------------------------------------
toc:
  enable: false

  # Automatically add list number to toc.
  # 给文章目录自动加上序号。
  number: true

  # If true, all level of TOC in a post will be displayed, rather than the activated part of it.
  # 是否展开所有目录。
  expand_all: true

# ---------------------------------------------------------------------------------------
# Magic
# magic 启用后,主题将以简约的卡片形式显示。
# 可分别配置缩放效果、阴影效果。
# ---------------------------------------------------------------------------------------
magic:
  enable: true
  scale: false # scale effect when the mouse hover
  shadow: false # shadow effect when the mouse hover

Apache http server

https://blog.csdn.net/u014454538/article/details/79261824

https://blog.csdn.net/wulala_hei/article/details/80458128

  1. 下载地址
https://www.apachehaus.com/cgi-bin/download.plx
  1. 安装服务
httpd.exe -k install -n "Apache24" 
  1. httpd.conf配置
修改root:
Define SRVROOT "D:\soft\httpd-2.4.46-lre314-x64-vs16\Apache24"

添加端口:
Listen 8080

开启host配置
Include conf/extra/httpd-vhosts.conf
  1. httpd-vhosts.conf配置
<VirtualHost *:8080>
    #设置主机名
    ServerName www.study.com
    #设置主机别名,即用该别名也可以访问(前提是域名解析正确)
    ServerAlias study.com
    #设置该站点根目录
    DocumentRoot "D:/work_java/blog/public"
    #设置文件夹访问控制,其路径要和上一行的DocumentRoot一样,
    <Directory "D:/work_java/blog/public">
        #用于显示设定“可显示文件列表”(当无可显示网页的时候)
        Options Indexes
        #启用文件夹访问控制的文件.htaccess设置
        AllowOverride All
        #请求控制
        Require all granted
        #默认打开的页面设置
        DirectoryIndex index.php index.html
    </Directory>
</VirtualHost>

fly-cloud

  1. spring boot 打包
Liftcycle -> package
  1. 启动服务
java -XX:+UseSerialGC -XX:NativeMemoryTracking=summary -Xms128M -Xmx256M -Xss256k -XX:MaxMetaspaceSize=128M -XX:MetaspaceSize=64M -jar spring-boot-security-oauth2-example-1.0-SNAPSHOT.jar
java -jar spring-boot-security-oauth2-example-1.0-SNAPSHOT.jar
  1. 停止服务
taskkill -f -t -im javaw.exe
  1. mysql安装注意事项
安装vc++环境:VC_redist.x64-2019.exe

学习交流

欢迎入群交流学习,Android、Java开发技术交流群

  • QQ群:810970432
  • email:geduo_83@163.com
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

门心叼龙

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值