Coder Social home page Coder Social logo

RSS Feed about jigsaw HOT 8 CLOSED

tighten avatar tighten commented on July 25, 2024
RSS Feed

from jigsaw.

Comments (8)

paslandau avatar paslandau commented on July 25, 2024

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.

mattstauffer avatar mattstauffer commented on July 25, 2024

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.

mattstauffer avatar mattstauffer commented on July 25, 2024

If I understand correctly, there are a few issues here:

  1. Generating files that don't have .html as the extension (#56)
  2. Adding collections (like #3) so we can have a "collection of blog posts" that the RSS feed may be exposing
  3. 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
  4. 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.

appkr avatar appkr commented on July 25, 2024

@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.

mattstauffer avatar mattstauffer commented on July 25, 2024

@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.

colinmac17 avatar colinmac17 commented on July 25, 2024

@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.

mattstauffer avatar mattstauffer commented on July 25, 2024

@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.

colinmac17 avatar colinmac17 commented on July 25, 2024

@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)

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.