Skip to content

Commit

Permalink
some adjustments to the lhs menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Worm committed May 27, 2024
1 parent eb10d4a commit 284dab3
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/config.cue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ enableMissingTranslationPlaceholders: false

params: {
ordersectionsby: "weight"
disableSearch: false
disableSearch: true
disableReadmoreNav: false // set true to hide prev/next navigation, default is false
highlightClientSide: false // set true to use highlight.pack.js instead of the default hugo chroma highlighter
menushortcutsnewtab: true // set true to open shortcuts links to a new tab/window
Expand Down
2 changes: 1 addition & 1 deletion docs/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defaultContentLanguageInSubdir: false
enableMissingTranslationPlaceholders: false
params:
ordersectionsby: weight
disableSearch: false
disableSearch: true
disableReadmoreNav: false
highlightClientSide: false
menushortcutsnewtab: true
Expand Down
1 change: 1 addition & 0 deletions docs/content/code-generation/_index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Code Generation
separator: true
weight: 30
---

Expand Down
1 change: 1 addition & 0 deletions docs/content/contributing/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ keywords:
- adding and running tests
- debugging hof

separator: true
type: page
weight: 900
---
Expand Down
1 change: 1 addition & 0 deletions docs/content/getting-started/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "Getting Started"
linkTitle: "Getting Started"
# brief: "with hof and code generation."
separator: true
weight: 5
description: >
These sections will get you up and running and then take you on a tour of __hof__
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions docs/layouts/partials/menu-hugo.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
{{- $isAncestor := .IsAncestor $currentNode -}}
{{- $isCurrent := (eq .RelPermalink $currentNode.RelPermalink) -}}
{{- safeHTML .Params.head -}}

{{ if .Params.separator }}<hr>{{ end }}
<li data-nav-id="{{.RelPermalink}}" class="nav-item my-1
{{- if $isCurrent }} current{{ end }}
{{- if .Params.alwaysopen}} alwaysopen{{end -}}
Expand All @@ -38,6 +40,7 @@
class="me-1 py-0 fas fa-lg {{ if (or $isCurrent $isAncestor)}}fa-caret-down{{ else }}fa-caret-right{{ end }}"
></i>
</span>

{{ end }}
</span>
{{- if $hasChildren }}
Expand Down

0 comments on commit 284dab3

Please sign in to comment.