All Projects → justpsvm → Hexo Theme Varaint

justpsvm / Hexo Theme Varaint

varaint for Hexo

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Hexo Theme Varaint

Hexo Theme Primer
The github style (primer) for Hexo theme.
Stars: ✭ 117 (-26.42%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Lite
Keep Calm, Light and Writing. Light Hexo Theme.
Stars: ✭ 148 (-6.92%)
Mutual labels:  hexo, hexo-theme
Generator Hexo Theme
Generate a hexo theme: ejs, pug, swig, nunjucks | Moved to https://tcrowe.commons.host/contact
Stars: ✭ 119 (-25.16%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Spectre
A modern, simple & elegant theme for Hexo
Stars: ✭ 109 (-31.45%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Arknights
明日方舟罗德岛阵营的 Hexo 主题,支持数学公式、Valine评论系统、Mermaid图表
Stars: ✭ 154 (-3.14%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Ylion
😊 说不定是一个让你感到惊喜的hexo主题 🍻 🍬
Stars: ✭ 110 (-30.82%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Amazing
Demo: https://removeif.github.io/removeif-demo hexo-theme
Stars: ✭ 154 (-3.14%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Believe
A simple theme for hexo Sample:
Stars: ✭ 86 (-45.91%)
Mutual labels:  hexo, hexo-theme
Flex Block
一个基于Hexo的主题
Stars: ✭ 133 (-16.35%)
Mutual labels:  hexo, hexo-theme
Yinwang
Blog Theme For Hexo
Stars: ✭ 133 (-16.35%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Doku
📜 Doku, a Hexo theme designed for writing documents.
Stars: ✭ 101 (-36.48%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Lx
👉 A simple & clear & elegant Hexo theme. 🔭🔭Lx——一款简洁、美观的Hexo博客主题。
Stars: ✭ 144 (-9.43%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Oranges
🍊A simple hexo theme of minimalism
Stars: ✭ 95 (-40.25%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Overdose
⚠ Caution: you could be overdosed with this theme.
Stars: ✭ 137 (-13.84%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Melody
🎹A simple & beautiful & fast theme for Hexo.
Stars: ✭ 1,306 (+721.38%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Aomori
A Hexo Theme. Hexo 博客主题
Stars: ✭ 122 (-23.27%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Even
🚀 A super concise theme for Hexo
Stars: ✭ 1,244 (+682.39%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Webstack
A hexo theme based on webstack. | 一个基于webstack的hexo主题。
Stars: ✭ 86 (-45.91%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Vateral
😘hexo单页面主题:Vateral(a theme for hexo)
Stars: ✭ 133 (-16.35%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Tranquilpeak
💄 A gorgeous responsive theme for Hexo blog framework
Stars: ✭ 1,740 (+994.34%)
Mutual labels:  hexo, hexo-theme

又一个 Hexo 主题 hexo-theme-varaint

预览地址:https://github.la/hexo-theme-varaint

先感谢原作者,这个主题是我无意逛 wordpress 看见的 感觉很简洁。在争取到作者的同意下 开始了移植工作。

首页截图

banner

默认情况下 首页的 banner 每一次加载都会随机变动,如果想更改随机策略 ,到 /theme/hexo-theme-varaint/source/js/script.js:

var bannerNode = $('.top-image');
   if(bannerNode.data('enable')){
       var index = parseInt((Math.random() * 4) + 1);
       bannerNode.attr('style','background-image:url(/banner/'+index+'.jpg)');
   }

进行更改。

文章 banner

如果想给文章添加 banner,可以在文章中添加:

---
title: Hello World
banner: http://oct8d1mqf.bkt.clouddn.com/2016-10-12-Video%20Background%20-%20Looping%20Cloud%20Animation-00-00-00-000.jpg
---

search

search: 
    enable: true #是否启用
    placeholder: Enter Key...

count(网站统计)

统计功能使用不蒜子,目前最大的弊端就是官方服务网站不开放注册,所以对于运行了一段时间的网站,不蒜子的数据都是从1开始,没办法设置,只有等后期开放注册之后,登入网站才能对统计计数进行设置。 js代码位置在你的themes/your themes/layout/_partial/footer.ejs底部

<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>

_config.yml配置项

count: 
    enable: true #是否启用

comments

comments:
  #livere_uid:  填写来比力UID
  #disqus_username: justpsvm

在国内的话还是建议大家使用多说,disqus 必须要翻墙。

多说已经下线换成来比力,注册来比力代码中找到livere_uid填上去即可,效果看我的博客

sidebar

sidebar: 
  enable: true #是否启用
  menus:
    -
      name: Weibo
      link: http://weibo.com
      target: _blank

social

social: 
  -
    name: weibo
    link: http://weibo.com
  -
    name: github
    link: https://github.com
  -
    name: zhihu
    link: https://www.zhihu.com/people

代码高亮

使用

这里没有使用 Hexo 自带的 highlight,而是用了 google-perttify,所以请先关闭 highlight 在 _config.yml 文件中:

highlight:
  enable: false
  line_number: false
  auto_detect: false
  tab_replace:

更换代码高亮风格

<%- css('js/google-code-prettify/download.css') %>

如果不关闭 Hexo 默认的 highlight 代码风格会混乱。

#巴啦啦啦

项目目前没有 page 页面,只有 post 文章页 ,由于原主题没有 category 和 tag 页面 我也在考虑这两个页面到底是加还是不加。

如果你喜欢这个主题 能不能动一动小手 点击下 star , 也欢迎大家 fork 😄

开源项目离不开大家 如果在使用中遇到什么问题,请及时提出来。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].