Comments (8)
I have excatly the same issue. My first attempt was to reegineer the jigsaw
command and make the componentes (Jigsaw, the DI-Containert, ...) available in my Blade template but then I realized that they don't expose the meta data from my mark down posts via public methods.
At that point it occured to me that I might not be the only one with that problem and before it got even messier I decided to check github :)
I would actually be nice to have the Jigsaw intance have available in the blade template and be able to call something like $jigsaw->parseMetaData()
- although this might be really spceific to markdown for now, I feel like it's the most common format for static site generators.
Before I write up a pull request I wanted to get your opinion on that approach.
Cheers
Pascal
from jigsaw.
I think the need here is really #3. It's a big missing piece of Jigsaw, and once we have it, we'll need to expose the ability to get and loop through collections anywhere in the app--including RSS feeds.
from jigsaw.
If I understand correctly, there are a few issues here:
- Generating files that don't have
.html
as the extension (#56) - Adding collections (like #3) so we can have a "collection of blog posts" that the RSS feed may be exposing
- Adding the ability for any page (like this template) to iterate over a collection and spit out specific information for each item of the collection - Will be part of #3
- Adding the ability for a Blade template to get the metadata about a Markdown post rendered within it (currently YAML frontmatter is accessible, but it sounds like y'all want other data like filename, URL, etc.?) - #57
Does this sum up the requests you are making, @appkr and @paslandau? Thanks!
from jigsaw.
@mattstauffer Thanks for the progress.
It's not clear that you are saying those are already added on new version. Anyway I'll try the new version.
For no.4 obviously YES. I'd like to pass any arbitrary variable to blade through yaml frontmatter(or any other mean). And by combining that variable and collections(like you mentioned in #3), I think people can build anything. One of them is RSS feed.
from jigsaw.
@appkr these changes are not made. I'm rather trying to clarify whether this is what y'all are wanting.
With regard to your request, you already can pass arbitrary variables to Blade through Yaml frontmatter.
Sounds like these are the features y'all would like. I'll make sure they all exist as issues and then close this one. Thanks!
from jigsaw.
@mattstauffer or team, is this still something that is missing or was determined not necessary to include? I am about to add a blog to my jigsaw site and would love an rss feed. Thanks for any help!
from jigsaw.
@colinmac17 It's totally included now! If you want to add a blog or a template, the simplest place to start is the Blog Template: https://github.com/tightenco/jigsaw-blog-template
You can see our RSS feed here: https://github.com/tightenco/jigsaw-blog-template/blob/master/source/blog/feed.blade.atom
from jigsaw.
@mattstauffer thanks! I will be implementing this into my site which is not using a template, but this should be very helpful.
from jigsaw.
Related Issues (20)
- Refactor container and bootstrapping
- Browsersync does not appear to be working by default HOT 1
- permalink doesn't update the path in $page->getUrl() HOT 1
- feature request: allow output extension to be changed from .html HOT 4
- Setting collection item data through config.php HOT 1
- `*.blade.php` files in collection folders break stuff HOT 7
- Unknown error being thrown after webpack compiling successfully HOT 3
- Collection items can't have same basename HOT 1
- Using starter template. HOT 3
- Allow formatting of pretty URL with trailing slash HOT 8
- Docs build process not working HOT 1
- Fresh install, error mix: command not found HOT 1
- Remote collection nested array returning null in page object HOT 6
- @include dynamic template from $page method in layout HOT 7
- Build process removes certain directories HOT 1
- Different build environment causing build error using Mix
- No share image defined
- Organize Posts By Year in Subdirectory
- Looping through collection items without site variables
- <x-dynamic-component /> support? HOT 7
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 jigsaw.