These are the three posts that I have. The folder structure is as follows:
content/posts/first.md
content/posts/second.md
content/posts/tab.md
I want to have a new layout when I click the third post “tab”. The layout should have an iframed dashboard while the layout for other posts should be completely different.
I was able to get an iframed dashboard in the third post “tab.md” by putting the file inside content/posts/dashboard/tab.md and creating a new layout /layout/dashboard/single.html. But when I did this the third post “tab.md” disappeared from the first screenshot. However, I can access it by doing localhost:1313/tab
Also I tried setting the type:“dashboard”. But this forces all the posts to have the iframed dashboard.
So, how do I create a new layout just for this post.
Thankyou for the reply @ju52 . It still does not work.Things I did:
Added tab.md in content/posts/dashboard/tab.md
Changed filename and added it to layout/dashboard/tab.html
In tab.md set the layout: tab (in frontmatter)
The link localhost:1313/tab redirects to the new layout with the iframed dashboard. But it does not show in the list of posts (as shown in the screenshot)