Develop
如何从0开发一个Hexo主题
Hexo是现在比较主流的静态博客生成框架,但我个人的感受来讲,Hexo 的主题虽然有两百多个,但是能拿出手的也就不到二十个。 本文主要记录了我从零开发 Hexo 主题时,遇到的一些问题,自己作为备份。 所有内容仅供参考 基础知识储备模板引擎传统的 HTML 写起来既不方便,又不能复用,因此在 Hexo 中通常使用模板引擎来呈现网站内容。 常用的几种模板引擎有:Swig、EJS、Haml 或 Jade。其中 Jade 由于商标问题,改名为 Pug,虽然它们是兼容的,但使用的时候,推荐安装 Pug 而不是 Jade。Hexo 内置了 Swig,将文件扩展名改为 .swig 即可使用,你也可以安装 ...
Develop
搭建自己的git私有服务器
近期在测试企业微信的机器人,因为涉及到一些数据库的秘钥,不便于发布到github上,于是就有了在树莓派中构建git server的想法,这里记录一下在树莓派上配置一个简单的git server用来同步代码。 1 安装git1sudo apt-get install git-core 2 配置git用户1234# 新增用户sudo adduser --system --shell /bin/bash --gecos 'git version control by pi' --group --home /home/git git# 配置密码passwd git 3 新增仓库 ...
Develop
typora-blubook-theme README
:gb:英文:cn:中文 📘What is Blubook 🕵️ Blubook is a flat and Beautiful theme for Typora. This theme is good for writing. 🌠Features 📝📖Most fonts use Glow-Sans-SC (未来荧黑) that is good for reading even you write Chinese or English. 🎨Some Typora interface use rounded corners to make it look be ...
Develop
Docker安装Wordpress
前言我们都爱用 WordPress,(几乎)一行代码都不用写,就能得到一个好看、实用的动态网站。 这东西用来敷衍帮助各种找你写奇怪小网站的朋友再好不过了。通常,帮朋友部署 WordPress 的这个场景下,你可以找朋友开一台新的服务器,初始化一套 LAMP,直接把 WordPress 给 wget 进去,就可以在你的浏览器里完成配置了。 有时候,比如您的朋友使用阿里云、百度云或是其他比较大的云服务商,您甚至可以直接初始化一个 WordPress 应用镜像,直接在浏览器里开始设置。 但是,前两天我需要在自己的服务器上部署一个 WordPress 服务。装一个 PHP 吧,平时也不用,还增加了安全 ...
Develop
typora-inside-theme README
This is a typora theme inspired by a Hexo inside theme. Install Download this zip from Github, extract this file, then you can get the Inside folder and inside.css . Open typora, click Preference → Apperance → Open Theme Folder. Put Inside folder and inside.css into the open folder. Close ...