Comments (3)
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.
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.
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)
- Copy creates doubled full paths under octopress home folder HOT 1
- Support multilingual plugin configurations
- Fonts copied to _site/plugin-slug/fonts/ HOT 1
- Pagination with theme gem HOT 4
- Add new template asset type (for generating pages)
- Missing Dependency - pry-byebug HOT 2
- Make it possible for plugin developers to --watch plugin assets
- Plugin not registering; registered plugin not enabled HOT 2
- List of thirdparty octopress 3 plugins? HOT 5
- Sass debug mode and sourcemap creation
- Ink asset cache is not cleared properly when Jekyll is watching for builds
- figure out how one plugin (theme) can override another plugin's css
- Ink pulling in backup .scss~ files HOT 1
- undefined method `[]' for nil:NilClass HOT 7
- Octopress ink crashes HOT 3
- Define order in the javascript files HOT 4
- Add LESS support for plugin assets
- Jekyll 3 changed site.posts from an Array to a Collection which causes deprecation warning in Ink HOT 2
- Deprecations when calling methods on 'posts' in Jekyll 3.4.3 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ink.