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

[support] multiple input in range .Site.Pages.Children #67

Open
ghost opened this issue Mar 12, 2016 · 1 comment
Open

[support] multiple input in range .Site.Pages.Children #67

ghost opened this issue Mar 12, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 12, 2016

I have this

<ul reversed class="post-list">
{{ range .Site.Pages.Children "Foo/" }}
  <li>{{ template "date" .Date }} - <a href="{{ $.Rel .Url }}">{{ .Title }}</a></li>
{{ end }}
</ul>

Can I have this?

<ul reversed class="post-list">
{{ range .Site.Pages.Children "Foo/" "Baa/" }}
  <li>{{ template "date" .Date }} - <a href="{{ $.Rel .Url }}">{{ .Title }}</a></li>
{{ end }}
</ul>
@piranha
Copy link
Owner

piranha commented Mar 13, 2016

That's a nice idea! I'll try to free some time to implement it, or would gladly accept a pull request. :)

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