victoryofymk / victoryofymk.github.io Goto Github PK
View Code? Open in Web Editor NEWGitHub Pages
Home Page: https://victoryofymk.github.io/
GitHub Pages
Home Page: https://victoryofymk.github.io/
https://victoryofymk.github.io/2018/10/23/Hexo%E5%AE%89%E8%A3%85next%E4%B8%BB%E9%A2%98/
安装theme你可以到Hexo官网主题页去搜寻自己喜欢的theme。这里以hexo-theme-next为例 终端cd到 blog 目录下执行如下命令:1$ git clone https://github.com/theme-next/hexo-theme-next themes/next 将blog目录下_config.yml里theme的名称landscape修改为next终端cd到blog
https://victoryofymk.github.io/2018/10/23/Hexo%E5%85%B3%E8%81%94github/
创建仓库登录你的Github帐号,新建仓库,名为用户名.github.io固定写法,如victoryofymk.github.io 修改blog配置本地的blog文件夹下内容为:1234567_config.yml db.json node_modules package.jsonscaffoldssourcethemes 终端cd到blog文件夹下,vim打开_config.yml,命令如下:1
创建分类添加一个 分类 页面,并在菜单中显示页面链接。 新建一个页面,命名为 categories 。命令如下: 1hexo new page categories 编辑刚新建的页面,将页面的类型设置为 categories ,主题将自动为这个页面显示所有分类。 1234title: 分类date: 2014-12-22 12:39:04type: "categories"
https://victoryofymk.github.io/2018/10/23/Hexo%E4%B8%AA%E6%80%A7%E5%8C%96next%E4%B8%BB%E9%A2%98/
个性化主要有以下32种: • 在右上角或者左上角实现fork me on github • 添加RSS • 添加动态背景 • 实现点击出现桃心效果 • 修改文章内链接文本样式 • 修改文章底部的那个带#号的标签 • 在每篇文章末尾统一添加“本文结束”标记 • 修改作者头像并旋转 • 博文压缩 • 修改代码块自定义样式 • 侧边栏社交
https://victoryofymk.github.io/2017/09/19/nginx%E5%8A%9F%E8%83%BD%E4%BB%8B%E7%BB%8D(%E4%BA%8C)/
反向代理在客户端和服务器中间加上nginx服务器,由nginx去转发客户端的请求,避免直接暴露服务器,通常在应用需要部署到核心区时,通过DMZ区的nginx代理。 配置 server { listen 80; #监听端口 location / { proxy_pass http://192.168.1.2:8080; # 应用服务器HTTP地址
https://victoryofymk.github.io/2018/10/23/JDK%E7%89%88%E6%9C%AC%E5%8F%98%E5%8C%96/
简介记录一下JDK版本的历史更新和重要特性。 目前JDK更新较快,每半年发布一个版本,但是对于生产环境采用仍然建议使用LTS(长期支持版本)版本 按照 Oracle 公布的支持路线图,Java 11 将会获得 Oracle 提供的长期支持服务,直至2026年9月。 根据官网从Java 11开始提供用开源许可证和商业许可证的组合 更新记录 2018-11-09 补充JDK8的介绍和使用 一些术语
https://victoryofymk.github.io/2018/11/14/nginx%E7%AE%80%E4%BB%8B(%E4%B8%80)/
版本更新之前,nginx 默认支持http,如果要转发tcp需要安装第三方模块,在1.9.0之后的版本增加了stream模块用于一般的TCP代理和负载均衡。 The ngx_stream_core_module module is available since version 1.9.0. This module is not built by default, it should be ena
自动部署使用hexo在github上搭blog最大的问题就是,每次提交都需要先hexo -g,然后再deploy生成的文件们,这样哪怕是改一个小的地方都需要重新编译全部blog,因此使用Travis来自动持续集成提交到github以后的操作,具体逻辑: 写完blog后,直接push到github的source分支,其它的就可以不用管了 由于我的.travis.yml配置文件里设置监听的就是sou
https://victoryofymk.github.io/2018/10/23/Hexo%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98/
常见问题Template render error解析异常,通常在hexo g的时候出现,通常是某些代码被解析 12Template render error: (unknown path) Error: template not found: ./comments/livere.swig 如果让jekyll不解析,使用raw语法,中间写内容 123456{% raw %}&
https://victoryofymk.github.io/2018/11/08/nginx%E7%AE%80%E4%BB%8B(%E4%B8%80)/
版本更新之前,nginx 默认支持http,如果要转发tcp需要安装第三方模块,在1.9.0之后的版本增加了stream模块用于一般的TCP代理和负载均衡。 The ngx_stream_core_module module is available since version 1.9.0. This module is not built by default, it should be ena
为Hexo搜索与统计搜索与统计都比较简单,官方文档有详尽的明细,统计推荐不蒜子,简单粗暴。搜索的话我使用的是本地搜索,即Local Search。他的原理是在你本地生成一个xml文件,搜索的时候对这个文件进行检索。下面说说安装步骤1.执行下面2个命令12npm install hexo-generator-search --savenpm install hexo-generator-search
https://victoryofymk.github.io/2018/11/12/nginx%E7%AE%80%E4%BB%8B(%E4%B8%80)/
版本更新之前,nginx 默认支持http,如果要转发tcp需要安装第三方模块,在1.9.0之后的版本增加了stream模块用于一般的TCP代理和负载均衡。 The ngx_stream_core_module module is available since version 1.9.0. This module is not built by default, it should be ena
评论系统添加disqus评论由于以前国内使用较多的多说评论下架了,所以选用了国外较为稳定的disqus,但使用该评论功能需要“科学上网”! • 注册disqus账号https://disqus.com • 在disqus设置页面中点 Add Disqus to your site 添加你的网站地址(即为https://yourname.github.io), 和设置Choose your uniq
https://victoryofymk.github.io/2018/10/23/Hexo%E5%AE%89%E8%A3%85/
常用依赖• Hexo - 快速、简洁且高效的博客框架• Github Pages - 完美的静态博客服务器(除大陆网速慢外)• NexT - 一款高质量且简洁优雅的Hexo主题• Travis CI - 一个持续集成测试工具 安装依赖搭建环境:macos 1.安装node1Brew install node 2.安装git1brew install git 3.安装 hexo1npm instal
绑定个人域名现在使用的域名是Github提供的二级域名,也可以绑定为自己的个性域名。购买域名,可以到GoDaddy官网,,也可以到阿里万网购买。 1.Github端在/blog/themes/landscape/source目录下新建文件名为:CNAME文件,注意没有后缀名!直接将自己的域名如:victoryofymk.com写入。 终端cd到blog目录下执行如下命令重新部署: 123456$
https://victoryofymk.github.io/2017/09/19/nginx%E7%BC%96%E8%AF%91%E9%83%A8%E7%BD%B2(%E4%B8%89)/
编译安装安装依赖 gzip模块需要 zlib 库,提供gzip压缩 rewrite模块需要 pcre 库, 提供地址重写 ssl 功能需要openssl库, 提供 ssl 功能 使用yum工具安装 gcc 编译器以及相关工具 使用yum工具安装 gcc 编译器以及相关工具 1yum -y install gcc gcc-c++ automake autoconf libtool make
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.