Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Organize Posts By Year in Subdirectory #699

Open
warren5236 opened this issue Feb 16, 2024 · 0 comments
Open

Organize Posts By Year in Subdirectory #699

warren5236 opened this issue Feb 16, 2024 · 0 comments

Comments

@warren5236
Copy link

I'm working on converting an existing website with hundreds of posts over to Jigsaw and I'm trying to figure out how to organize the posts into directories by year like so:

_posts
    2023
         post1.md
    2024
         post2.md
    ...

If I just try doing this I get an error in source/_components/post-as-rss-item.blade.php:12.

 Spatie\LaravelIgnition\Exceptions\ViewException

  None of the views in the given array exist.

  at source/_components/post-as-rss-item.blade.php:12
      8▕         <name>{{ $entry->author }}</name>
      9▕     </author>
     10▕     <summary type="html">{{ $entry->getExcerpt() }}...</summary>
     11▕     <content type="html"><![CDATA[
  ➜  12▕         @includeFirst(['_posts.' . $entry->getFilename(), '_posts._tmp.' . $entry->getFilename()])
     13▕     ]]></content>
     14▕ </entry>
     15▕

  1   cache/c7a975f2dc1937a60845a901d4ebb5f2ddd3e572.blade.php:5
      Illuminate\View\View::render()

  2   [internal]:0
      TightenCo\Jigsaw\SiteBuilder::TightenCo\Jigsaw\{closure}(Object(TightenCo\Jigsaw\File\InputFile))

Is this something you would like a patch for and if so how would you like it done?

Thank you all so much for providing this for the community.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant