Code Monkey home page Code Monkey logo

Comments (7)

jerryc127 avatar jerryc127 commented on May 29, 2024

1和6,我引入了cover参数,设置cover参数后,封面就能显示了,至于文章的顶部图片,会优先显示top_img(除非你有设置),不然会显示cover的图片,如果你两种都没有,就会显示默认图片(_CONFIG 文件里可以设置)
2 如果有设置显示toc,因为sidebar打开会占一部分画面,menu的item过多的话,会不好看,所以隐藏掉了(原主题就有的功能)

from hexo-theme-butterfly.

jerryc127 avatar jerryc127 commented on May 29, 2024

3 不清楚是不是说网址的生成,我用的是https://github.com/rozbo/hexo-abbrlink这个插件

from hexo-theme-butterfly.

jerryc127 avatar jerryc127 commented on May 29, 2024
  1. 你可以在aside.pug修改,后续更新会加上
  2. friendlink 你可以根据我的友情链接界面 进行修改, 也可以直接在flink.pug自己修改
    友情链接的格式_config文档里有例子,你可以参考修改

from hexo-theme-butterfly.

gorkys avatar gorkys commented on May 29, 2024

关于问题6的碎图截屏,当没有设置cover的时候,在相关文章中是没有默认图片的

其它位置比如首页或者是文章顶部是有默认图片的。唯独相关文章里面的图片地址是undefined

我想这应该是一个小bug吧。

emmm,友情链接的index.md还是不知道如何编写,达到你博客里那种列表的效果,我想应该是有一种>特别的书写方式,就像是音乐页面,单单是靠markdown语法是不够的吧。

方便时候,可以提供一个例子参考一下。

from hexo-theme-butterfly.

jerryc127 avatar jerryc127 commented on May 29, 2024

的确是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.

jerryc127 avatar jerryc127 commented on May 29, 2024

友情链接界面md不用书写内容
在_CONFIG里进行修改就行
如果需要其他样式,自己在flink.pug修改

from hexo-theme-butterfly.

gorkys avatar gorkys commented on May 29, 2024

@jerryc127 好的,emmm,是我之前友链里的type属性是friends,现在改成link就有了。

from hexo-theme-butterfly.

Related Issues (20)

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.