Landing content
The landing content is your site’s own pages: everything a reader sees that isn’t an article. It is one Curvenote project, written in MyST like any other and pushed to Curvenote as a work. Its table of contents is your site’s navigation.
Setting it¶
Setting a site’s landing content needs a site admin. There are two ways.
From the command line. Push the project as a work, then make that work the site’s
landing content (see curvenote site):
curvenote work push
curvenote site init my-site --set-contentFrom GitHub, on every change. Keep the landing content in a repository, and let the
push workflow push it and
set it as the site’s landing content each time you merge to main. Set landing-content
to your site’s name, and path if the pages are in a subfolder:
jobs:
push:
uses: curvenote/actions/.github/workflows/push.yml@v1
with:
path: landing
landing-content: 'my-site'
secrets:
CURVENOTE: ${{ secrets.CURVENOTE_TOKEN }}The token needs to belong to a site admin. Setting up the repository and its token is in GitHub Actions. This is how this documentation’s own landing page is published.
What belongs in it¶
Keep the landing content to pages about the venue. A typical site has:
A home page (
index.md): what the site is and who it’s for, with the latest articles listed live by thecn:articlesdirective. Because the listing is fetched when the page is served, new articles appear without changing the page.About pages: the venue’s scope, history and policies (open access, licensing, ethics, corrections).
For authors: submission guidelines, formatting requirements, fees and timelines, and how to submit.
People: the editorial board, reviewers, organizers or lab members.
An articles page (
articles.md, at/articles): the full listing, if you want one apart from the home page. Use onecn:articlesper collection to split it up.News or events, for venues that have them.
Articles themselves don’t go here. Each is a work that arrives through a submission, with its own address, authors, DOI and downloads. See Works on your site.
Pages and folders¶
Each page’s address comes from where it sits in the project. Put related pages in folders
and turn on folders: true in the project’s site options, and the folders become
sections of the site:
File | Address |
|---|---|
|
|
|
|
|
|
|
|
A folder’s index.md is the folder’s own page, so /authors opens it. Don’t name a folder
articles or previews: those addresses belong to works and previews, and the folder’s
pages could never be opened (see the order a path is checked in).
Preview the landing content as it will look on your site, with your branding, using
curvenote start and your site linked.
Redirecting landing pages¶
The redirect groups act on the landing content. $landing sends the home
page elsewhere, for a site whose home lives on another website. $info sends single-segment
pages such as /about, but not pages in folders such as /authors/guidelines; use a rule
with :splat for those. $notFound catches addresses where the landing content has no
page, which is handy after reorganizing it.
- DOI
- Digital Object Identifier
- MyST
- Markedly Structured Text