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]: 代码块行号不显示了 HOT 1
- [Bug]: inject 任何代码都会报错 HOT 1
- [Bug]: 公式出现重复 HOT 3
- [Feature]: 友情链接界面图标显示不全
- 提問的智慧
- [Feature]: blur lazyload样式应用于background-image HOT 1
- [Bug]: Artalk评论组件在使用pjax情况下无法正常加载 HOT 5
- [Feature]: Rendering pseudocode in math blocks HOT 3
- [Bug]Pjax导致自定义aplayer无法正常加载js HOT 3
- [Feature]: 新增文章默认布局配置选项: horizontalOrVertical HOT 2
- [Bug]: 表格中无法显示公式 HOT 2
- [Feature]: 希望可以兼容一下tags为空的情况 HOT 1
- [Feature]: 是否可以支持多层子菜单 HOT 2
- [Bug]: 文章标题未居中,需要修改head.styl 文件才能解决 HOT 1
- [Bug]: 代码块高度限制在display: none时失效 HOT 3
- [Bug]: 使用代码块渲染mermaid时,需要在代码块外额外加上一句{% mermaid %} {% endmermaid %}才能正常渲染 HOT 3
- [Bug]: 搜索框内容清空,搜索内容没有被清空
- [Bug]: 自 dev 4.10 7923a15 升级到 v4.13,超多行代码不再自动收起 HOT 5
- [Bug]: MathJax 不能正确显示使用 AMS 扩展的数学公式 HOT 7
- homepage页面显示Series卡片 HOT 2
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.