Giter Club home page Giter Club logo

Comments (6)

jonschlinkert avatar jonschlinkert commented on July 16, 2024

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.

manofewords avatar manofewords commented on July 16, 2024

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.

doowb avatar doowb commented on July 16, 2024

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

manofewords avatar manofewords commented on July 16, 2024

excellent. Thanks for the clarifications! :)

from assemble.io.

jonschlinkert avatar jonschlinkert commented on July 16, 2024

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.

jonschlinkert avatar jonschlinkert commented on July 16, 2024

Closing since this seems to have been resolved. please reopen if necessary

from assemble.io.

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.