Code Monkey home page Code Monkey logo

hexo-theme-simpleblock's People

Contributors

dravenk avatar jysperm 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

Watchers

 avatar  avatar  avatar  avatar  avatar

hexo-theme-simpleblock's Issues

按照安装步骤运行会出错

你好,我的simpleblock会报错

ERROR Process failed: layout/index.jade
TypeError: Cannot read property 'compile' of undefined
  at [object Object].View._precompile (/root/blog/node_modules/hexo/lib/theme/view.js:104:22)
  at [object Object].View (/root/blog/node_modules/hexo/lib/theme/view.js:13:8)
  at new Theme._View.View (/root/blog/node_modules/hexo/lib/theme/index.js:37:10)
  at Theme.setView (/root/blog/node_modules/hexo/lib/theme/index.js:71:20)
  at /root/blog/node_modules/hexo/lib/theme/processors/view.js:14:14
  at tryCatcher (/root/blog/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
  at Promise._settlePromiseFromHandler (/root/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:503:31)
  at Promise._settlePromise (/root/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:560:18)
  at Promise._settlePromise0 (/root/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:605:10)
  at Promise._settlePromises (/root/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:684:18)
  at Promise._fulfill (/root/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:629:18)
  at Promise._resolveCallback (/root/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:424:57)
  at Promise._settlePromiseFromHandler (/root/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:515:17)
  at Promise._settlePromise (/root/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:560:18)
  at Promise._settlePromise0 (/root/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:605:10)
  at Promise._settlePromises (/root/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:684:18)
  at Promise._fulfill (/root/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:629:18)
  at /root/blog/node_modules/hexo/node_modules/bluebird/js/release/nodeback.js:42:21
  at /root/blog/node_modules/hexo/node_modules/hexo-fs/node_modules/graceful-fs/graceful-fs.js:78:16
  at fs.js:268:14
  at /root/blog/node_modules/hexo/node_modules/nunjucks/node_modules/chokidar/node_modules/readdirp/node_modules/graceful-fs/graceful-fs.js:43:10
  at /root/blog/node_modules/hexo/node_modules/hexo-fs/node_modules/graceful-fs/graceful-fs.js:43:10
  at /root/blog/node_modules/hexo/node_modules/warehouse/node_modules/graceful-fs/graceful-fs.js:43:10
  at /usr/local/lib/node_modules/hexo-cli/node_modules/hexo-fs/node_modules/graceful-fs/graceful-fs.js:43:10
  at Object.oncomplete (fs.js:107:15)

当我浏览器输入url访问时,
hexo log显示为:
WARN No layout: index.html
请问其他人没有遇到这个问题吗?

功能需求

  1. 代码高亮highlightjs
  2. 文章摘要显示
  3. 支持图片显示

乱码问题

对比了很多个主题,觉得博主的主题不错。
只是部署的时候,一堆乱码,望能够继续完善。
2015-10-06_203802

formatArray问题请教

您好,我正在修改一个Hexo的模板,见这里Maupassant-hexo,我想把侧边栏的widgets像您的主题一样可以在配置文件中进行添加和选择,但是大概仿照着试了一下没能成功,主要是hexo server的时候会报错for item in formatArray(theme.widgets)这一行"undefined is not a function",我搜索了一下也没能找到这个formatArray的具体用法,还请不吝赐教!

not work in hexo 3.1.1

hexo: 3.1.1
os: Linux 3.13.0-37-generic linux x64
http_parser: 2.3
node: 0.12.7
v8: 3.28.71.19
uv: 1.6.1
zlib: 1.2.8
modules: 14
openssl: 1.0.1p

wrong info is :
extends base block head if is_tag() title æ ‡ç­¾ï¼š#{page.tag} | #{config.title} else if page.category title 分类:#{page.category} | #{config.title} else if page.year && page.month title 归档:#{page.year} å¹´ #{page.month} 月 | #{config.title} else if !page.posts title #{page.title} | #{config.title} else title= config.title mixin article(post) article header if page.posts h2 a(href=url_for(post.path))= post.title else small.right a(target='_blank', href=sourceOfPost(post, theme.source_url)) 查看æº�代ç � h2= post.title .article-meta.clearfix time.left= post.date.format(config.date_format) if post.categories ul.tags.left - post.categories.each(function(category) { li a(href=url_for(category.path))= category.name - }); if post.tags ul.tags.right - post.tags.each(function(tag) { li a(href=url_for(tag.path))= tag.name - }); .markdown-body!= post.content if !page.posts && theme.duoshuo .ds-thread(data-thread-key=duoshuoKey(post), data-title=post.title, data-url=post.permalink) block body for banner in formatArray(theme.banners) .archive-title +widget-inter(banner) if is_tag() .archive-title strong æ ‡ç­¾ ##{page.tag} if page.category .archive-title strong 分类 ##{page.category} if page.year && page.month .archive-title strong å½’æ¡£ #{page.year} å¹´ #{page.month} 月 if page.posts - page.posts.each(function(post) { +article(post) - }); .archive-pagination .paginator!= fixPaginator(paginator({prev_text: '«', next_text: '»'})) else +article(page)

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.