Giter VIP home page Giter VIP logo

Comments (3)

imathis avatar imathis commented on July 26, 2024

I'm not sure I understand what you're trying to do. Why do you need the path for a layout? If you can explain a bit more about what you're doing I may be able to try it out and see what's going wrong with my code or suggest something for you to change.

from ink.

drallgood avatar drallgood commented on July 26, 2024

What I was trying to do was create a page based on a layout.
I got the layout from the site using site.layouts["categories:category_index"] and then tried to get its path so I can instantiate a new page.

I've worked around it by just copying the content and data of the template to a newly created page object instead of letting the page load its content (like it's usually done).

from ink.

imathis avatar imathis commented on July 26, 2024

I've added page templates assets to Octopress Ink which makes this much cleaner now. You can see an example of how to get them to work here: fd13edd#diff-3d2be8f58875d685ff747d4d6811e6eeR3

I still need to add docs (for so many things) but I think this replaces the need for this issue to be fixed.

from ink.

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.