Question regarding starter-blog + separating posts by tag #4313
Replies: 3 comments 1 reply
|
Hi Theodora, https://www.11ty.dev/docs/collections/ has some notes on how tags create collections (as well as what to keep in mind with the dash). The „all” collection is special and should provide you the link for each tag-collection in the navbar: The separate feeds should appear by duplicating the plugin code in (You would need to think about the content folder, i.e. the URL you want them to have). The all collection should populate the archive. The documentation on collections also show how to exclude a page from it if this should come up. Otherwise you can filter in Nunjucks (which makes the build a little bit slower over time). |
|
That was so prompt! Thanks!! I will check these links out later today when I have some time. |
|
Alright, I think I'm on the right track now! Thanks for helping out! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi all!
I apologize if my ignorance makes this question irritating! I went through a few basic tutorials, then went back to the starter-blog layout and am working from that again, just because it's so close to what I want. There's just one main thing I can't quite figure out how to do:
I currently have two blogs on separate websites: a general-interest blog (on Ghost) and a personal blog (on Mataroa). I'd like to migrate both of these over to Eleventy (with RSS/Buttondown newsletter functionality), keep them in the same folders, host them on the same server, etc. But I'd also like to keep them running in parallel, so that people who just want to subscribe to/read the general-interest blog don't have to deal with posts from my personal life.
This is how I'm conceiving of the final product:
(1) When I'm publishing a post, I tag it "personal" or "general-interest."
(2) Instead of a single "blog" link in the navbar, there are two links, one to each collection.
(3) Each collection has a separate RSS feed. (In Buttondown I will add the option to subscribe to both.)
(4) The archive, however, contains all posts, regardless of tag, in order of publication.
If this is too involved or complex a question to give me the whole answer on, any hints in the right direction would be great! I don't have much of a web development background but I'm starting to understand some of the basics of Nunjucks, so any lead would probably be enough to go on.
Thanks again! I'm really enjoying using Eleventy so far.
Theodora
All reactions