Not have Section Landing Pages #899
Replies: 6 comments
-
@1000camels Originally, this was supposed to work by creating the Markdown page but not giving it a The first step in fixing this would be to define a new YAML value to use other than The next step would be to remove the page from the project's pagination so that it doesn't show up in the Back/Next links in the top navbar or in the bottom buttons on the page, and the pagination: ({ collections, page }) => {
if (!page || !collections.navigation.length) return {}
const currentPageIndex = collections.navigation
.findIndex(({ url }) => url === page.url)
if (currentPageIndex === -1) return {}
return {
currentPage: collections.navigation[currentPageIndex],
currentPageIndex,
percentProgress: 100 * (currentPageIndex + 1) / collections.navigation.length,
nextPage: collections.navigation[currentPageIndex + 1],
previousPage: collections.navigation[currentPageIndex - 1]
}
} It seems like we'd want to set the nextPage or previousPage to skip over any pages with |
Beta Was this translation helpful? Give feedback.
-
Thank you for this. I started to implement this and ran into this error: [11ty] Problem writing Eleventy templates: (more in DEBUG output) Also, once I tried to use linked_page in an index.md, I started to get the following error: [quire] INFO Figures Processing complete I wonder if there is a better approach, to just define an alternative for layout: |
Beta Was this translation helpful? Give feedback.
-
I also am thinking about your advice on overriding content. I definition think it would be good to get version numbers into some of these key files, so we can at least know when a file has been customised and is out of date. Systems like WooCommerce do this well. |
Beta Was this translation helpful? Give feedback.
-
I got this to work. I had forgotten to add Layout and Presentation. Still trying to adjust the other templates to exclude it, but at least my pages are throwing an error |
Beta Was this translation helpful? Give feedback.
-
Hi @1000camels were you able to get this working in a satisfactory way? |
Beta Was this translation helpful? Give feedback.
-
Unfortunately not. I had to use an exception to match against the title in the menu and toc templates. It was working but seems to have broken so I need to dive deeper into the templates to understand what is happening |
Beta Was this translation helpful? Give feedback.
-
I am looking for a way to not have Section Landing Pages, but for them to appear in the TOC and Menu
I do understand I can control whether it part of the flow of pages by setting the output to none.
Ultimately I want to make either the section title in the toc and menu not clickable or have it redirect to the first page.
Is there a way in Quire to do this?
Or if I wanted to try to implement this with .htaccess file, how would I get that file into _site?
Beta Was this translation helpful? Give feedback.
All reactions