Skip to content

Rendering of index pages looks off and is fully aligned in center #1231

Answered by h-enk
Skarlso asked this question in Guides
Discussion options

You must be logged in to vote

You'll need to make some customizations to make the docs list template behave like the docs single template.

First, copy node_modules/@hyas/doks-core/layouts/_default/baseof.html to layouts/_default/baseof.html and update the logic to display the container (remove (.IsNode)) — new contents:

<!doctype html>
<html lang="{{ .Site.LanguageCode | default "en" }}" data-bs-theme="{{ site.Params.doks.colorMode | default "auto" }}">
  {{ partial "head/head" . }}
  {{ partial "head/body-class" . }}
  <body class="{{ delimit (.Scratch.Get "class") " " }}"{{ if eq site.Params.doks.scrollSpy true }} data-bs-spy="scroll" data-bs-target="#toc" data-bs-root-margin="0px 0px -60%" data-bs-smooth-scroll="true

Replies: 3 comments 2 replies

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
2 replies
@Skarlso
Comment options

@Skarlso
Comment options

Answer selected by Skarlso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Guides
Labels
None yet
2 participants