Skip to content

How do I make the current /docs/prologue/introduction/ page show up at the root? #343

Answered by mroswell
mroswell asked this question in Q&A
Discussion options

You must be logged in to vote

Pulling solutions together in one comment:

  1. In config/_default/config.toml, set the docs permalink structure (see also Permalink Configuration Values):
[permalinks]
  blog = "/blog/:title/"
  docs = "/:sections[1:]/:title/"
  1. In the frontmatter of ./content/docs/prologue/introduction.md, add url:
..
menu:
  docs:
    parent: "prologue"
weight: 100
toc: true
url: "/"
  1. In menus.toml, remove or comment out
[[main]]
  name = "Docs"
  url = "/"
  weight = 10
  1. Delete or rename layouts/index.html

  2. Delete or rename./layouts/_default/list.html to ./layouts/_default/list.bak.html

  3. if this effort causes the "zombie" home page effect, in config.toml, comment out:
    [[module.mounts]]
    source = "nod…

Replies: 19 comments 23 replies

Comment options

You must be logged in to vote
1 reply
@mroswell
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@mroswell
Comment options

@mroswell
Comment options

Comment options

You must be logged in to vote
1 reply
@mroswell
Comment options

Comment options

You must be logged in to vote
1 reply
@mroswell
Comment options

Comment options

You must be logged in to vote
4 replies
@h-enk
Comment options

@epogrebnyak
Comment options

@epogrebnyak
Comment options

@mroswell
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@mroswell
Comment options

@mroswell
Comment options

@mroswell
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@mroswell
Comment options

@epogrebnyak
Comment options

@mroswell
Comment options

@mroswell
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@mroswell
Comment options

@mroswell
Comment options

Comment options

You must be logged in to vote
1 reply
@epogrebnyak
Comment options

Answer selected by mroswell
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@smythp
Comment options

@IdiosApps
Comment options

Comment options

You must be logged in to vote
1 reply
@h-enk
Comment options

Comment options

You must be logged in to vote
1 reply
@h-enk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants