-
Hello. I migrated our website to the latest version from below Everything is super cool except for a single thing where the This was not the case previously. The index pages rendered like regular pages, nicely the same way. Here is an example: Any ideas how to bring back this topic view / index rendering / whatever that is? :D |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
That's hard to tell this way — could you share your repo? |
Beta Was this translation helpful? Give feedback.
-
Sure, no problem. Here is the website: https://ocm.software. And here is the repository: https://github.com/open-component-model/ocm-website/ That particular page comes from https://github.com/open-component-model/ocm-website/tree/main/content/docs/cli-reference/add |
Beta Was this translation helpful? Give feedback.
-
You'll need to make some customizations to make the docs list template behave like the docs single template. First, copy <!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" tabindex="0"{{ end }}>
{{ partial "header/header" . }}
<div class="wrap container-{{ site.Params.doks.containerBreakpoint | default "lg" }}" role="document">
<div class="content">
{{ if and (eq site.Params.doks.containerBreakpoint "fluid") (or (not (in .Site.Params.mainSections .Type))) }}<div class="container p-0">{{ end }}
{{ block "main" . }}{{ end }}
{{ if and (eq site.Params.doks.containerBreakpoint "fluid") (or (not (in .Site.Params.mainSections .Type))) }}</div>{{ end }}
</div>
</div>
{{ block "sidebar-prefooter" . }}{{ end }}
{{ block "sidebar-footer" . }}{{ end }}
{{ partial "footer/footer" . }}
{{ partial "footer/script-footer" . }}
{{ if eq site.Params.doks.toTopButton true -}}
{{ partial "footer/to-top" . }}
{{ end }}
</body>
</html> Next, copy Lastly, add to .list.section.docs .content {
padding-top: 0;
padding-bottom: 0;
} |
Beta Was this translation helpful? Give feedback.
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
tolayouts/_default/baseof.html
and update the logic to display the container (remove(.IsNode)
) — new contents: