jysperm / hexo-theme-simpleblock Goto Github PK
View Code? Open in Web Editor NEWHexo theme of jysperm's blog.
Home Page: https://jysperm.me
License: MIT License
Hexo theme of jysperm's blog.
Home Page: https://jysperm.me
License: MIT License
去掉之后就会报错
https://hexo.io/docs/configuration.html#Alternate-Theme-Config
# FILE: my-blog/_config.yml
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: simpleblock
theme_config:
banners:
jade: a(#) this is a banner
# FILE: my-blog/themes/simpleblock/_config.yml
## Banners && Widgets
banners:
jade: a(#) 与精子同款的博客主题 simpleblock 现已发布!
已知的问题包括微信可能无法正确地抽取文章标题。
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)
因为 simpleblock 没有使用 highlight.js, 三个尖引号的代码块会被 hexo 显示为没有样式的表格。
目前的安装方法在较新版本的 npm 上工作不是很正常。
你好,我的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
请问其他人没有遇到这个问题吗?
现在的code 样式 好像没有代码高亮,代码可读性不是很高
您好,我正在修改一个Hexo的模板,见这里Maupassant-hexo,我想把侧边栏的widgets像您的主题一样可以在配置文件中进行添加和选择,但是大概仿照着试了一下没能成功,主要是hexo server的时候会报错for item in formatArray(theme.widgets)
这一行"undefined is not a function",我搜索了一下也没能找到这个formatArray的具体用法,还请不吝赐教!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.