Comments (7)
1和6,我引入了cover
参数,设置cover参数后,封面就能显示了,至于文章的顶部图片,会优先显示top_img(除非你有设置),不然会显示cover的图片,如果你两种都没有,就会显示默认图片(_CONFIG 文件里可以设置)
2 如果有设置显示toc,因为sidebar打开会占一部分画面,menu的item过多的话,会不好看,所以隐藏掉了(原主题就有的功能)
from hexo-theme-butterfly.
3 不清楚是不是说网址的生成,我用的是https://github.com/rozbo/hexo-abbrlink这个插件
from hexo-theme-butterfly.
- 你可以在aside.pug修改,后续更新会加上
- friendlink 你可以根据我的友情链接界面 进行修改, 也可以直接在flink.pug自己修改
友情链接的格式_config文档里有例子,你可以参考修改
from hexo-theme-butterfly.
关于问题6的碎图截屏,当没有设置cover
的时候,在相关文章中是没有默认图片的
其它位置比如首页或者是文章顶部是有默认图片的。唯独相关文章里面的图片地址是
undefined
emmm,友情链接的
index.md
还是不知道如何编写,达到你博客里那种列表的效果,我想应该是有一种>特别的书写方式,就像是音乐页面,单单是靠markdown语法是不够的吧。
方便时候,可以提供一个例子参考一下。
from hexo-theme-butterfly.
的确是bug,后续会修复
你可以自己替换scripts文件夹的related_post.js
改为
for (var i = 0; i < Math.min(relatedPosts.length, 6); i++) {
var cover = relatedPosts[i].cover || hexo.theme.config.default_cover || data.melody.default_cover
result += '<div class="relatedPosts_item"><a href="/' + relatedPosts[i].path + '">';
result += '<img class="relatedPosts_cover lozad" data-src="' + cover + '">';
result += '<div class="relatedPosts_title">' + relatedPosts[i].title + '</div>';
result += '</a></div>'
};
from hexo-theme-butterfly.
友情链接界面md不用书写内容
在_CONFIG里进行修改就行
如果需要其他样式,自己在flink.pug修改
from hexo-theme-butterfly.
@jerryc127 好的,emmm,是我之前友链里的type
属性是friends
,现在改成link
就有了。
from hexo-theme-butterfly.
Related Issues (20)
- [Bug]: 侧边栏邮箱联系,本地正常,部署之后会自动加上域名导致404 HOT 2
- [Bug]: 有关于左上角图标跳转的bug的问题 HOT 4
- [Feature]: 仅针对特定文章的侧边栏
- [Feature]: 添加多语言支持或配置教程 HOT 4
- [Bug]: [后续][另辟蹊径的解决办法]关于左上角图标跳转bug的问题续篇 HOT 1
- [Feature]: Apply `blur` effect to images in `{% gallery %}` HOT 1
- [Bug]: tabs 渲染不太对 HOT 4
- [Bug]: 最新评论正在加载中 HOT 6
- [Bug]: Waline 评论无法展示 HOT 1
- [Bug]: Artalk无法正常获取评论 HOT 2
- [Bug]: 文章页面无法加载twikoo评论的数量 HOT 2
- [Bug]: butterfly对于 无序列表中的代码块渲染出错 HOT 3
- [Bug]: 卜算子失效 HOT 1
- [Feature]: 音乐播放器设置隐藏 HOT 1
- [Feature]: 添加专栏功能 HOT 5
- [Bug]: hidetoggle 和 code blocks 嵌套导致渲染出错(已解决) HOT 1
- [Feature]: 增加草稿flag HOT 1
- [Bug]: 直接点代码框复制按钮复制代码,复制到bash上会多一个换行符 HOT 7
- [Feature]: 可否增加 ![[1.png]] 格式Markdown图片链接语法支持 HOT 1
- [Bug]: 背景图片无法显示,设置了背景颜色也依旧无法显示 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-theme-butterfly.