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

children shortcode display as a list on the index page #254

Closed
vufa opened this issue Mar 14, 2019 · 3 comments
Closed

children shortcode display as a list on the index page #254

vufa opened this issue Mar 14, 2019 · 3 comments
Labels

Comments

@vufa
Copy link

vufa commented Mar 14, 2019

Hello, thank you for your awesome work!

The children shortcode very useful, it is possible use it display all pages on index page as a list? like:

  • 1.first chapter page(weight=1)
    • 1.1 first content page(weight=1)
  • 2.second chapter page(weight=2)
    • 2.1 second content page(weight=1)

I try to use

{{% children sort="weight" %}}

or

{{% children sort="name" %}}

It will display:

  • 1.first chapter chapter(weight=1)
  • 2.second chapter chapter(weight=2)
  • 1.1 first content page(weight=1)
  • 2.1 second content page(weight=1)
@worthlutz
Copy link

@countstarlight

See PR #252. It works with this change.

@vufa
Copy link
Author

vufa commented Mar 14, 2019

@worthlutz 😃Thank you, I will check it.

@vufa
Copy link
Author

vufa commented Mar 15, 2019

@worthlutz Thanks, the lates PR works!

@vufa vufa closed this as completed Mar 15, 2019
maxatome pushed a commit to maxatome/hugo-theme-learn that referenced this issue Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants