Git Product home page Git Product logo

tianma8023.github.io's Introduction

这是部署在 GitHub 上的静态博客 Repo,该博客以 Hexo 3.2.2 作为静态博客框架,以 material 1.3.0 为主题搭建而成。

博客地址: Tianma

个性化配置&优化

这里 是官方收录的 Hexo 插件。

这里列一下博客用到的插件,大部分都可以看其对应官方文档就能正确配置。

链接

固定链接插件:hexo-abbrlink 之前的 permalink 格式是:

permalink: post/:year/:month/:day/:title/
# 例如  http://tianma.space/2018/02/08/Hello-World 

使用 hexo-abbrlink 插件格式是:

permalink: post/:abbrlink/

# abbrlink config
abbrlink:
  alg: crc32  #算法 support crc16(default) and crc32
  rep: dec    #进制 support dec(default) and hex

# 例如: http://tianma.space/post/3678283086/

部署

当访问博客网站 Tianma

这样一定程度上能加快网站加载速度。

达到以上效果,大致来说,需要以下步骤:

  1. 将博客部署到 GitHubCoding, 具体参阅 hexo干货系列:(四)将hexo博客同时托管到github和codinggit多网站ssh部署方案
  2. 注册域名,国内有 万网,国外有 GoDaddy , 然后进行域名绑定,即国内走 Coding 国外走 GitHub ,相关教程很多就不赘述了。

静态资源压缩优化

使用 gulp 压缩 Hexo 静态资源

gulp 的官方定义非常简洁:基于文件流的构建系统。
说人话系列:gulp 是前端开发过程中对代码进行构建的工具,是自动化项目的构建利器;她不仅能对网站资源进行优化,而且在开发过程中很多重复的任务能够使用正确的工具自动完成。

更多详细配置请参考 使用 gulp 压缩 hexo 静态资源

CDN服务

CDN 存储服务商使用的是 七牛云,配合 hexo-qiniu-sync 食用。

使用 CDN 存储服务的主要目的就是把 图片、视频、音乐等其他较大的静态资源 上传到七牛云,加速博客网站静态资源加载。

详细请参考 使用七牛为Hexo存储图片等资源

更新:由于七牛云现行规定是,使用了内容存储服务的必须要绑定在**大陆已备案的域名,而我目前的域名是在 GoDaddy 上注册的,没法备案,所以已将 CDN 从七牛云迁移至 阿里云OSS

音乐播放

音乐播放器采用的是 DIYGodAPlayer, 以 MetingJS 为辅助配合食用。

详情参考: Hexo 折腾:音乐播放

图片

  1. 图片描述(description):因为 material 主题本身没有对图片做过多处理,当使用:

    ![description](xxx.jpg)

    插入图片时,最后的 description 是没有显示的。这里采用 hexo-image-caption 插件将上述 markdown 生成如下元素:

    <img src="xxx.jpg" alt="description"/>
    <span class="image-caption">description</span>

    从而展示 description,当然了,出于美观,需要对 .image-caption 元素指定相应的 css 样式。

    更多配置参考其文档。

  2. 图片放大查看: 由于 material 主题没有该功能,本博客用 FancyBox 库实现该功能,详情参考 Hexo 折腾:利用 Fancybox 添加图片放大预览查看功能

看板娘

看板娘采用的以 live2d 技术为核心,以 hexo-helper-live2d 为插件,配合 live2d 模型制作而成。

详情参考:

工具推荐

tianma8023.github.io's People

Contributors

tianma8023 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.