Coder Social home page Coder Social logo

Comments (2)

michitux avatar michitux commented on August 16, 2024

The include flags for sorting are in fact not supported, they are only for the include modes where multiple pages are included in the include plugin. What you could do, however, is using the include plugin directly instead of the blog plugin. Pagination and the add new entry form will be missing but apart from that it should be pretty much the same.

I agree that the blog plugin should also support flags for the sorting key and order. Maybe the _get_included_pages()-function of the include plugin could be used by the blog plugin, too, in order to avoid code duplication - though the getBlog()-function includes a lot more metadata in the output. Maybe the getBlog()-function could also use the include plugin's function in order to get the (sorted) list of pages and then load the additional metadata and do the additional checks only for the first X pages that are really needed.

from plugin-blog.

ndarilek avatar ndarilek commented on August 16, 2024

OK, for my use case I suppose I can just drop to the Include plugin for the situation where I need a custom page order, only I don't see that the include plugin lets me limit the number of pages retrieved from a namespace. Am I just missing this functionality? If not then it isn't an equivalent solution unfortunately.

Thanks.

from plugin-blog.

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.