diff options
author | weru <fromweru@gmail.com> | 2022-02-01 02:08:34 +0300 |
---|---|---|
committer | weru <fromweru@gmail.com> | 2022-02-01 02:08:34 +0300 |
commit | 1b61f09eea2a67ef791fbbabd6ed738ea2eb4c1f (patch) | |
tree | eb6be76cabb19c30528f33a9d8fb3e0db012388a | |
parent | caae60b67d6ac409623ad43cd358c95fe98daca9 (diff) |
correct homepage regression #73
Signed-off-by: weru <fromweru@gmail.com>
-rw-r--r-- | exampleSite/content/tutorials/example/_index.md | 2 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 14 |
2 files changed, 13 insertions, 3 deletions
diff --git a/exampleSite/content/tutorials/example/_index.md b/exampleSite/content/tutorials/example/_index.md index 7d837d0..af9b5c7 100644 --- a/exampleSite/content/tutorials/example/_index.md +++ b/exampleSite/content/tutorials/example/_index.md @@ -5,4 +5,4 @@ weight: 1 Welcome to the Compose theme user guide! This guide shows you how to get started creating technical documentation sites using Compose, including site customization and how to use Compose's blocks and templates. -{{< button "./install-theme/" "Get started now" >}} +{{< button "../../docs/compose/install-theme/" "Get started now" >}} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 8567a43..7a01207 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -12,10 +12,20 @@ {{- with $docSections }}{{- else }} {{- $docSections = "docs" }} {{- end }} - {{- if or (in $docSections .Section) (and (ne site.Params.uniqueHomepage true) .IsHome) }} + {{ $uniqueHomepage := .IsHome }} + {{ if site.Params.uniqueHomepage }} + {{ if .IsHome }} + {{ $uniqueHomepage = true }} + {{ end }} + {{ else }} + {{ $uniqueHomepage = false }} + {{ end }} + {{- if and (in $docSections .Section) (ne $uniqueHomepage true) }} {{- partial "document" . }} {{- else }} - {{- block "main" . }}{{ end }} + <div class="content"> + {{- block "main" . }}{{ end }} + </div> {{- end -}} </div> {{- partialCached "footer" . -}} |