Code Monkey home page Code Monkey logo

Comments (1)

FromEndWorld avatar FromEndWorld commented on July 27, 2024

因为Jekyll的自动excerpt截取有时候不明原因失效,本来应该是第一个p,结果经常全文都是excerpt,所以我添加了truncate和手动截取的标记,在Config里可以修改,默认为<!-- more -->

根据自己的博文特点可以选择:

  • 去掉truncate(在index.html里 line 40),自动,有时候会发生全文变成摘要的情况,导致首页巨丑
  • 去掉truncate,手动,每篇文章自己加截取标记,效果完美,就是麻烦
  • 我的目前的做法,truncate配合手动,写以普通文字为主的po的时候就随它去,格式多代码多,有需要的时候手动添加<!-- more -->

欢迎提供更完美的解决方案!

from loffer.

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.