Giter Club home page Giter Club logo

hexo-theme-wixo's Introduction

Hexo-Theme-Wixo

Turn your Hexo into a Wiki!

Requirements

Features

  • Simple - keep it simple and stupid;
  • Bootstrap - get the power of Twitter Bootstrap with minimal hassle;
  • Notebook - notebook-aware post arrangement and pagination. A category is a notebook;
  • Scrollspy - automatically updating ToC targets based on scroll position;
  • Local Search Engine - a build-in local search engine, with the help of hexo-generator-search.
  • Tag plugins - luxuriant Bootstrap tag plugins, provided by hexo-tag-bootstrap, including:
    • textcolor - a paragraph of text with specified color;
    • button - a button with target links, text and specified color;
    • label - a label with text and specified color;
    • badge - a badge with text;
    • alert - alert messages with text and specified color;

Install

  1. install theme:
$ git clone https://github.com/wzpan/hexo-theme-wixo.git themes/wixo
  1. install hexo-generator-search:
$ npm install hexo-generator-search --save
  1. install hexo-tag-bootstrap (optional):
$ npm install [email protected] --save

Enable

Modify theme setting in your _config.yml to wixo.

Update

$ cd themes/wixo
$ git pull

Configuration

rss: atom.xml
fancybox: true
favicon: favicon.png
inverse_sort: false
fold: true
google_analytics:
scratch_name: Scratch
search:
  path: search.xml
  field: all
  • rss - RSS link
  • fancybox - enable Fancybox
  • inverse_sort - whether to sort all notes inversely. By default wixo will sort all notes chronologically.
  • fold - whether to fold all the notebooks
  • google_analytics - Google Analytics ID
  • scratch_name - Notebook name of posts without categories variables

Front-Matter

  • toc - renders a table of contents

For example:

title: Tag Plugins
date: 2014-03-16 10:17:16
categories: Docs
toc: true
---

License

This theme is provided under MIT License.

Credits

hexo-theme-wixo's People

Contributors

acgtyrant avatar wzpan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hexo-theme-wixo's Issues

子目录

是否考虑添加子目录或者标签呢?谢谢!
分类只有一层,在没有标签的情况下文章不太好管理

目录显示的问题

  • 标题没加括号的情况下可以正常显示目录
  • 标题里包含 "()" 或者 "/" 的字符时目录就会显示异常

是否开发一个生成你这个wiki页面的插件?

因为你这个wiki是一整个hexo的主题的,而我想要在我的博客上(用的是另外的主题),嵌入你这样的一个wiki页面,而不用去维护两个hexo。
例如hexo-generator-douban这个插件吧,是可以生成一个豆瓣读书的页面,单独用来显示豆瓣读书的。

我所希望的是有一个比如叫hexo-generator-wiki的插件,我们可以先建一个目录,比如source/wiki/,专门去存放wiki文章来,然后运行该插件,生成一个wiki页面

这只是我一个想法而已~

Dynamic affix-bottom

hello,我添加了disqus的代码,所以页面下会多出一块
untitled
也许我可以设置data-offset-bottom但是,评论框高度是会变的,我并不能写死.
如何动态的设置affix-bottom使得当这个toc滚动到评论区的时候能不再固定再页面上而是随文本一起滚上去呢.谢谢.

wixo

你第一个文件 左边那个导航是怎么做的

hexo g 出现问题

使用hexo 3.0.1后:
win 8.1 系统
在使用hexo g生成时出现问题:

Unhandled rejection TypeError: I:\GitHub\wiki\themes\wixo\layout\page.ejs:1
1| <%- partial('_partial/article', {item: page, post: false}) %>

I:\GitHub\wiki\themes\wixo\layout\_partial\article.ejs:25
    23|           <div>
    24|                 <center>
 25|                   <%- partial('post/pagination', {page: item}) %>
    26|                 </center>
    27|           </div>
    28|

I:\GitHub\wiki\themes\wixo\layout\_partial\post\pagination.ejs:8
    6|  <% var is_cur = false %>
    7|  <% site.posts.sort('date', -1).each(function(post){ %>
8|          <% if (post.title == page.title){ %>
    9|                  <% is_cur = true %>
    10|                         <% prev_post = last_post %>
    11|                 <% } else if (is_cur == false && post.categories.data[0]._id == page.categories.data[0]._id) {

Cannot read property '_id' of undefined

新建scratch-name

模版没有添加一个新的notebook的选项吗?

configuration:

rss: atom.xml
fancybox: true
favicon: favicon.png
inverse_sort: false
fold: true
google_analytics:
scratch_name: Scratch
search:
  path: search.xml
  field: all

怎么添加一个新的notebook类别?
谢谢!

source目录下包含html文档导致生成出错

在source目录下新建了一个404.html,内容是普通的meta跳转

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url=/404/">
</head>
<body></body>
</html>

使用 hexo g 生成时,会报错

INFO  Files loaded in 451 ms
Unhandled rejection TypeError: /private/tmp/test/themes/wixo/layout/page.ejs:1
 >> 1| <%- partial('_partial/article', {item: page, post: false}) %>

/private/tmp/test/themes/wixo/layout/_partial/article.ejs:25
    23|       <div>
    24|         <center>
 >> 25|           <%- partial('post/pagination', {page: item}) %>
    26|         </center>
    27|       </div>
    28|       

/private/tmp/test/themes/wixo/layout/_partial/post/pagination.ejs:8
    6|  <% var is_cur = false %>
    7|  <% site.posts.sort('date', -1).each(function(post){ %>
 >> 8|      <% if (post.title == page.title){ %>
    9|          <% is_cur = true %>
    10|             <% prev_post = last_post %>
    11|         <% } else if (is_cur == false && ((post.categories.length == 0 && page.categories.length ==0) || (post.categories.length > 0 && page.categories.length > 0 && post.categories.data[0]._id == page.categories.data[0]._id))) { %>

Cannot read property 'length' of undefined
    at eval (eval at <anonymous> (/private/tmp/test/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:30:713)
    at Query.forEach (/private/tmp/test/node_modules/hexo/node_modules/warehouse/lib/query.js:63:5)
    at eval (eval at <anonymous> (/private/tmp/test/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:30:333)
    at eval (eval at <anonymous> (/private/tmp/test/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:30:2440)
    at /private/tmp/test/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:255:15
    at Object.exports.render (/private/tmp/test/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:293:13)
    at Hexo.<anonymous> (/private/tmp/test/node_modules/hexo-renderer-ejs/index.js:5:14)
    at Render.renderSync (/private/tmp/test/node_modules/hexo/lib/hexo/render.js:87:23)
    at View.renderSync (/private/tmp/test/node_modules/hexo/lib/theme/view.js:50:29)
    at Object.partial (/private/tmp/test/node_modules/hexo/lib/plugins/helper/partial.js:42:19)
    at eval (eval at <anonymous> (/private/tmp/test/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:30:1059)
    at eval (eval at <anonymous> (/private/tmp/test/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:30:1203)
    at /private/tmp/test/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:255:15
    at Object.exports.render (/private/tmp/test/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:293:13)
    at Hexo.<anonymous> (/private/tmp/test/node_modules/hexo-renderer-ejs/index.js:5:14)
    at Render.renderSync (/private/tmp/test/node_modules/hexo/lib/hexo/render.js:87:23)
    at View.renderSync (/private/tmp/test/node_modules/hexo/lib/theme/view.js:50:29)
    at Object.partial (/private/tmp/test/node_modules/hexo/lib/plugins/helper/partial.js:42:19)
    at eval (eval at <anonymous> (/private/tmp/test/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:30:35)
    at eval (eval at <anonymous> (/private/tmp/test/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:30:100)
    at /private/tmp/test/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:255:15
    at Object.exports.render (/private/tmp/test/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:293:13)
    at Hexo.<anonymous> (/private/tmp/test/node_modules/hexo-renderer-ejs/index.js:5:14)
    at Hexo.tryCatcher (/private/tmp/test/node_modules/hexo/node_modules/bluebird/js/main/util.js:26:23)
    at Hexo.<anonymous> (/private/tmp/test/node_modules/hexo/node_modules/bluebird/js/main/method.js:15:34)
    at /private/tmp/test/node_modules/hexo/lib/hexo/render.js:51:21
    at tryCatcher (/private/tmp/test/node_modules/hexo/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/private/tmp/test/node_modules/hexo/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/private/tmp/test/node_modules/hexo/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/private/tmp/test/node_modules/hexo/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/private/tmp/test/node_modules/hexo/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/private/tmp/test/node_modules/hexo/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues [as _onImmediate] (/private/tmp/test/node_modules/hexo/node_modules/bluebird/js/main/async.js:15:14)
    at processImmediate [as _immediateCallback] (timers.js:367:17)

后来发现,在 source/ 中包含后缀为htm,html的任意内容文件均会得到此错误。
使用其他主题时没有问题,估计是主题的问题吧。


回头又看到了 #7 ,大概跟那个出错原因差不多,文件内容或者说格式的问题。默认hello-world的front matter里确实少了最开头的三个 --- ,不过希望作者至少能给个……友好一点的错误提示吧?

hexo g时报错

报错信息如下

[error] HexoError: Process failed: _posts/CSS-intro.md
Error: This socket is closed.
    at Socket._write (net.js:637:19)
    at doWrite (_stream_writable.js:226:10)
    at writeOrBuffer (_stream_writable.js:216:5)
    at Socket.Writable.write (_stream_writable.js:183:11)
    at Socket.write (net.js:615:40)
    at pandoc (E:\文档\Wiki\node_modules\hexo-renderer-pandoc\index.js:23:15)
    at C:\Users\xuanw_000\AppData\Roaming\npm\node_modules\hexo\lib\core\render.js:96:9
    at fn (C:\Users\xuanw_000\AppData\Roaming\npm\node_modules\hexo\node_modules\async\lib\async.js:641:34)
    at Object._onImmediate (C:\Users\xuanw_000\AppData\Roaming\npm\node_modules\hexo\node_modules\async\lib\async.js:557
:34)
    at processImmediate [as _immediateCallback] (timers.js:336:15)


C:\Users\xuanw_000\AppData\Roaming\npm\node_modules\hexo\node_modules\async\lib\async.js:30
            if (called) throw new Error("Callback was already called.");
                              ^
Error: Callback was already called.
    at C:\Users\xuanw_000\AppData\Roaming\npm\node_modules\hexo\node_modules\async\lib\async.js:30:31
    at Domain.<anonymous> (C:\Users\xuanw_000\AppData\Roaming\npm\node_modules\hexo\lib\box\index.js:115:12)
    at Domain.emit (events.js:95:17)
    at ChildProcess.emit (events.js:70:21)
    at Process.ChildProcess._handle.onexit (child_process.js:807:12)

hexo g --silent 依然有输出...

在执行hexo g --silent 后,终端依然会输出一些信息,目测是渲染文章的中间信息。
换别的主题没有类似输出。。。
本来没什么的,然而我渲染文章一多的时候会因为输出而严重拖慢速度 (100篇用了 22min

输出信息

文章名字太长,会与右上角时间重叠

Joseph Pan:
  你好!谢谢你提供的 Theme,很喜欢。在使用中,我发现,如果文章名字太长,会与右上角时间重叠,不知能否解决一下。这里是刚在 GitHub 上使用你的 wixo theme 建的博客:swbetawiki

Homepage 界面优化?

非常好看的 Wiki 模板,但是觉得主页相比正文内容可以更好看点(觉得风格有点不搭)?

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.