Skip to content

Commit

Permalink
Added param for navTitle to be used in the menu of the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan G authored and Dan G committed Sep 19, 2024
1 parent 6ae02d4 commit ea69219
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions site/content/docs/traces-open-telemetry/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ menu:
platform:
parent: "Traces (beta)"
identifier: getting-started-traces-otel
navTitle: Getting started
beta: true
aliases:
- "/docs/open-telemetry/"
Expand Down
5 changes: 3 additions & 2 deletions site/layouts/partials/docs-title.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{{ $title := "" }}

{{ if .Page.Params.displayTitle}}
{{ if .Page.Params.navTitle}}
{{ $title = .Page.Params.navTitle}}
{{ else if .Page.Params.displayTitle}}
{{ $title = .Page.Params.displayTitle}}
{{ else if .Title }}
{{ $title = .Title }}
Expand Down

0 comments on commit ea69219

Please sign in to comment.