Giter Site home page Giter Site logo

Comments (10)

stalkerGH avatar stalkerGH commented on September 26, 2024 1

OK, I got it. I removed paginate_byfrom _index.md in "blog" directory but forgot about _index.md in "content". I removed section_path and "latest posts" dissapears from main page.

Thank you once again for blazing fast commits :)

from tabi.

welpo avatar welpo commented on September 26, 2024

You want to have a blog section but not show it on the main page? Or not have a blog section at all?

from tabi.

stalkerGH avatar stalkerGH commented on September 26, 2024

I don't know what is possible (if any). My page will be not "pure blog" but I like "projects" section idea - every post illustrated with thumbnail.

from tabi.

welpo avatar welpo commented on September 26, 2024

Neither option is possible now. Will look into adding this option later!

from tabi.

stalkerGH avatar stalkerGH commented on September 26, 2024

Thanks for reply. It's not very important feature but would be nice to have an option to enable/disable certain sections by simple key = true/false value in configuration file.

from tabi.

welpo avatar welpo commented on September 26, 2024

Rather than an option to enable/disable, my idea is:

  • Is the path for blog/projects set?
  • If not, don't show that section at all (this is how it works for projects)
  • If yes, show it

So users only need to set one variable, instead of the path to projects/blog as well as the "enable this feature" flag.

I've implemented the base idea, but now I need to fix some CSS issues. Will be ready soon.

from tabi.

welpo avatar welpo commented on September 26, 2024

Just added the feature in #317. Let me know if you encounter any issues!

from tabi.

stalkerGH avatar stalkerGH commented on September 26, 2024

Thank you. It turns off blog posts when I click on "blog" menu entry (I got empty page). But I'd like to turn off "Latest posts" section on main page too. Could you add such option too?

from tabi.

welpo avatar welpo commented on September 26, 2024

That should not happen. What does your _index.md look like?

On tabi's demo, if I remove the section_path, the blog section still works fine.

Are you trying to serve posts from the base url instead of blog/? If so, that will need another change.

from tabi.

welpo avatar welpo commented on September 26, 2024

Happy to hear! 🙌

from tabi.

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.