Skip to content

Commit

Permalink
Merge pull request #32 from solo-io/versionbanner-fix
Browse files Browse the repository at this point in the history
Fix version banner
  • Loading branch information
Nadine2016 authored Nov 13, 2024
2 parents 3e1a967 + de303d7 commit e110348
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions layouts/partials/docs/versionbanner.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
{{- $path := .Page.RelPermalink -}}
{{ $version := .Page.FirstSection.RelPermalink }}
{{ $newPath := strings.Replace $path $version "" -1 }}
{{ $baseurl := .Site.BaseURL }}

{{/* If current version uses a subversion, strip it from the path */}}
{{ $versionTrimmed := trim $version "/" }}
{{- printf $versionTrimmed }}
{{ if eq $versionTrimmed "main" }}
<div class="alert alert-info d-flex">
<div class="w-100">
<p>{{ .Site.Params.versionBannerText | markdownify }}</p>
</div>
</div>
{{ end }}

0 comments on commit e110348

Please sign in to comment.