-
I'd like to remove the paging feature from just the front page of my Framework project. I might think that adding
within the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It’s possible to do this with the pager field and the pages config option. The pager field declares the page’s page group, and all pages within the same page group are linked together via the footer. The default page group is export default {
pages: [
{name: "Page one", pager: "alt", path: "/one"},
{name: "Page two", pager: "alt", path: "/two"},
{name: "Page three", pager: "alt", path: "/three"}
]
}; It’s a bit awkward to repeat the If you don’t mind that the first page (above <style type="text/css">
#observablehq-footer nav {
display: none;
}
</style> There was some previous discussion of this in #201, but we could open up a new issue for some front matter control over the page. |
Beta Was this translation helpful? Give feedback.
It’s possible to do this with the pager field and the pages config option. The pager field declares the page’s page group, and all pages within the same page group are linked together via the footer. The default page group is
main
, and the home page/index
is always in themain
page group. Therefore, if you declare a different page group for all your other pages, sayalt
, you’ll effectively disable the pager for the home page since themain
page group will only have a single page in it. That might look like this in yourobservablehq.config.js
: