Comments (6)
Try downloading https://github.com/assemble/assemble-contrib-permalinks and have a look at the tests. In particular these tests. Be sure to open the compiled pages in the browser to see the result, it really helps to see them functioning (at least it did for me)
from assemble.io.
thx a lot for the quick response! :)
However I still don't get it. For example, the article in https://github.com/assemble/assemble-contrib-permalinks/blob/master/test/fixtures/pages/articles/bar.hbs has a bbb tag, but a bbb folder is nowhere to be found in https://github.com/assemble/assemble-contrib-permalinks/tree/master/test/actual. Which is contrary to saying "For each category and tag, Assemble will generate a page in the dest directory." and to what the example
<ul>
{{#tags}}
<li><a href="/tag/{{tag}}.html">{{tag}}</a></li>
{{/tags}}
</ul>
is suggesting at http://assemble.io/docs/options-collections.html#usage-examples.
But probably I'm just misunderstanding something here.
from assemble.io.
@manofewords I don't think the docs are completely correct on this (at this time). We had been planning a feature to be be able to create an "index" page for each tag, but that hasn't been implemented yet. I think @jonschlinkert has been able to create a similar effect using the permalinks plugin and specifying tags in the url structure, but I don't think it gets all the way to the "index" page.
Also, I think the example would work in that it would generate the markup, but there wouldn't be a {{tag}}.html
page to point to.
Sorry for the confusion, there's a lot of things we talking about with features and sometimes the docs get left behind. Thanks for pointing this out because it's something that I need get better at keeping on top of.
from assemble.io.
excellent. Thanks for the clarifications! :)
from assemble.io.
I don't think the docs are completely correct on this (at this time)
Thanks @doowb, agreed. I think if you just follow the real-world examples you'll be better off. I am very, very close to having a refactor of docs done, after which it will be much easier for others to do PRs to add to them or fix them.
from assemble.io.
Closing since this seems to have been resolved. please reopen if necessary
from assemble.io.
Related Issues (20)
- Please fix Collection documentation
- Possible Typo on Numbers Page
- Possible Typo on Strings Page
- beard aware? HOT 2
- page collections page typo
- handlebars does not support render HOT 4
- Dead link on http://assemble.io/plugins/ HOT 1
- Fix the documentation -- Quick Start -- it's not grunt anymore, it's gulp HOT 4
- http://assemble.io/helpers/helpers-dates.html Doc structure broken HOT 2
- reword joke so that it makes fun of everyone HOT 4
- {{capitalizeFirst}} has been renamed to {{capitalize}} HOT 2
- no relative url example HOT 1
- How to use custom option in loop HOT 4
- How to use Parameter in partial
- Images as working links HOT 2
- assemble doc please remove extra space HOT 1
- Markdown Fences - syntax highlighting doing nothing HOT 3
- Example in Blockquotes is incorrect HOT 1
- options.pages HOT 3
- use built-in variables HOT 2
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 assemble.io.