Repository navigation
|
Hi! Thanks for this plugin. I'm trying to make a simple linkable dynamic list of a folders content, to embed in a page. I'm trying this script: But the list only displays the subpage file name, not the title. Using frontmatter didn't make a difference from simply starting the .md with I also tried different variants of child.page, but that didn't work either. I'm quite sure I'm in the wrong here, and it might be wrong of me to use the "issues" feature. If so, I apologize.. how can I get the subpage title? |
Replies: 2 comments 5 replies
|
Welcome to this project and thank you! |
|
@tourbino Thank you for your question! If you want to use the title, you might use the <ul>
{% for subpage in page.children %}
<li><a href="{{ subpage.file.name }}/">{{ subpage.meta.title or subpage.file.name }}</a></li>
{% endfor %}
</ul>
I think we can convert this to a discussion. 🙂 |

@tourbino Thank you for your question!
If you want to use the title, you might use the
meta.titleattribute:metaallows you access explicitly what is in the frontmatter.I think we can convert this to a discussion. 🙂