Hello,
im' new to grav and don't have specific skills in html or css so i used the SoraArticle skeleton for my vps hosted website.
I would like the "menu item" to display all pages with tag 'Linux', and i have read taxonomy related documentation and found this :
In your theme, you can easily display a list of pages that are written by ksmith by using taxonomy.findTaxonomy() to find them and iterate over them:
<h2>Kevin Smith's Posts</h2>
<ul>
{% for post in taxonomy.findTaxonomy({'author':'ksmith'}) %}
<li>{{ post.title|e }}</li>
{% endfor %}
</ul>
i also found in page collections the following
By setting @taxonomy.tag: foo, Grav will find all the published pages in the /user/pages folder that have themselves set tag: foo in their taxonomy variable:
content:
items:
'@taxonomy.tag': foo
My question is which code should be used? and where do i have to put this code for menu item1 to display all pages related to tag Linux? should i have to create a yaml file or modify site.yaml in /user/config ?
I created a page called collection1 as the url for "menu item" and tried to paste that code in frontmatter but it displays syntax errors.