forked from waynedpj/Assemble-releases
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
volume: 1 | ||
|
||
layout: release.html | ||
tracks: A/tracks/**/*.html | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
volume: 2 | ||
|
||
layout: release.html | ||
tracks: B/tracks/**/*.html | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9f30fe2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you very much for the quick help. it works as expected with both releases.
i played with this in my project and was able to get it a little more generic by placing a
release.yaml
file in thereleases
folder aboveA
andB
and in that file i placed:which sets the
tracksPath
property to the current release's title + the standard tracks glob which works. one odd thing: i tried to usedirname
instead oftitle
butdirname
was always undefined?so in my layout for releases i now have
{{compose src=release.tracksPath}}
and for each release it pulls in the correct subdirectory. basically thisrelease.yaml
acts like a default value fortracksPath
that all releases can use. come to think of it, i guess i could also puttracksPath
in the collection config? that does not seem to work either.anyway, i have a few follow ups that i will post in the original thread once i get my head around this a bit more. thanks again to you and @jonschlinkert for the help. your solution in particular inspired some "a ha!" moments in me once i figured out how it worked.
peace
9f30fe2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, of course. I didn't see this earlier but I made a comment about doing this somewhere a little while (long after @doowb pushed this up). looks like we're at least headed in the right direction