I'm a four years working full stack engineer who enjoys building wheels and playing with some fun stuff.
Blogger, Lifelong learner.
Languages
Technologies
Tools
Hexo博客主题,功能强大,美观
Home Page: https://hexo-theme-bamboo.netlify.app/
License: MIT License
Hi,
I like your site. Been studying your theme for HEXO and after reading your blog on the tags, I’m finding issues. What plugins are you using for your site? Did you build a custom module for all the tags you document here: https://yuang01.gitee.io/2021/02/08/hexo-theme-bamboo-new/#%E4%B8%8B%E8%BD%BD ?
I’m using the latest version of HEXO v5.4. When I attempt to use the progress tag, HEXO errors with: Unhandled rejection Nunjucks Error: _posts/Markup-manual-2.md [Line 2, Column 206] unknown block tag: progress
Any suggestions?
當 root config 下的 "post_asset_folder" 為 true 時,hexo 會將每篇文章生成獨立的 directory。
因此可以將該文章的圖檔放至文章所對應的 directory 中,但該主題似乎並未支持文章直接引入專屬目錄的圖檔。
建议参考hexo-theme-matery在Front-matter中增加一个 summary 摘要选项,然后首页浏览文章时显示文章摘要而不是文章内容。
如题
hexo5.0开始,hexo内置了prismjs代码高亮支持,希望主题能升级适配。
作者您好,我想请教一下如何在自定义的.ejs文件里获取到index.ejs(首页)中的全量page信息
I encountered the following problem:
`ERROR TypeError: D:\blog\themes\hexo-theme-bamboo\layout\index.ejs:21
19|
20|
21| <%- partial('_partial/side') %>
22|
23|
24| <%- partial('_partial/scripts/falling') %>
D:\blog\themes\hexo-theme-bamboo\layout_partial\side.ejs:6
4| <% if (theme.sidebar.widget_library) { %>
5| <% if (theme.sidebar.widget_library.side_blogger.on) { %>
6| <%- partial('side/side_blogger', { item: theme.sidebar.widget_library.side_blogger }) %>
7| <% } %>
8| <% } %>
9| <% } %>
D:\blog\themes\hexo-theme-bamboo\layout_partial\side\side_blogger.ejs:31
29|
31| <% if (value.url && (value.icon || value.img || value.avatar)) { %>
32| <a href="<%= url_for(value.url) %>"
33| class="social <%- value.icon %> flat-btn"
34| target="_blank"
Cannot read properties of null (reading 'url')`
Because I was busy reporting during deployment, I didn't watch it.
In order to make it work, simply delete ``value.url'' so that it does not report an error.
<% if (value && (value.icon || value.img || value.avatar)) { %>
So I want to know about the error handling method of /side/
Your theme is very beautiful, I have sent you a star
跪求大佬继续更新,太爱了
你好,请问我使用这个主题时发现导航栏中没有首页、归档、标签等东西,这些怎么设置才会出现?
能否可以自己添加一个html页面,然后显示到首页的导航栏呢
疑似是那个菜单控件虽然消失了但还是置顶了,需要手动打开菜单栏,再点侧边收起菜单栏,然后才能滚动页面。
This code is not only WET, but does not handle text with a comma ,
...
hexo-theme-bamboo/scripts/tag/link.js
Lines 5 to 33 in 6b383a8
Unfortunately, can't use the double-quote "
mark as it's stripped before the args is populated. Propose using the back-tick `
mark instead. See my solution to this problem:
'use strict';
// {% link title, url %}
// {% link `title`, url, img %}
hexo.extend.tag.register('link', function(args) {
let text = '';
let url = '';
let img = '';
let result = '';
//args are defaulted to space ` ` delimited...
args = args.join(' ');
// console.info("{% link {{args}} %}: ", args);
//check for encapsulating back-tick (`) marks, if exist pull out title
if (args.indexOf("`", 1) > 1 ) {
//extract title from args
text = args.split('`')[1];
// console.log(" {% link {{text}} %}: ", text);
// grab URL (& img)
args = args.split('`')[2].split(",");
} else {
// console.info(" text not back-ticked encapsulated...");
args = args.split(',');
text = args[0].trim();
}
//check for URL
if (args.length >= 2) {
url = args[1].trim();
// console.log(" {% link {{url}} %}: ", url);
}
//check for img
if (args.length == 3) {
img = args[2].trim();
// console.log(" {% link {{img}} %}: ", img);
}
if (url !== '') {
// 发现如果不套一层 div 在其它可渲染 md 的容器中容易被分解
result += '<div class="tagLink"><a class="link-card" title="' + text + '" href="' + url + '">';
// left
result += '<div class="left">';
result += '<img src="' + (img || hexo.theme.config.tag_plugins.linkImg) + '"/>';
result += '</div>';
// right
result += '<div class="right"><p class="text">' + text + '</p><p class="url">' + url + '</p></div>';
result += '</a></div>';
}
return result;
});
hexo.extend.tag.register('linkgroup', function(args, content) {
let ret = '';
ret += '<div class="link-group">';
ret += content;
ret += '</div>';
return ret;
}, {ends: true});
The comma is often used in languages with the alphabet and is required in certain cases. Please consider updating this function. My version is backwards compatible with existing link tags that don't use a back-tick to denote a title.
网页配置好之后测试时输入网址显示Cannot GET /
上传GitHub托管之后输入网址就是404页面
不得不承认这是一个非常牛逼和漂亮的主题,大佬辛苦了,希望可以继续优化下去。我这几天在研究该主题,遇到了几点问题:
我替换了默认的hexo-renderer-marked,改为hexo-renderer-multi-markdown-it以实现更多的渲染功能,不知道是否会影响到bamboo的正常运行。希望大佬抽空瞅瞅,谢谢!
TypeError: \themes\hexo-theme-bamboo\layout\post.ejs:17
15| <% } %>
16|
17| <% if (page.tags.length > 0) { %>
18|
19|
20| <% page.tags.map(function(tag) { %>
Cannot read property 'length' of undefined
是我哪里配置错了吗
请问博主可以有偿帮我开发一个hexo主题嘛?
hexo-theme-bamboo/languages/default.yml
Line 52 in c89a5e7
"Policy" is misspelled.
如题
已经更换自己的用户名,使用你的用户名能够正常显示,使用我的用户名显示不出来,依旧一片空白
能集成下utteranc吗
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.