Skip to content

Commit

Permalink
Fix bug with version switcher plug-in displaying too much data
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Vigilante committed Sep 29, 2023
1 parent a132122 commit 10702a4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/current/_plugins/versions/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ def generate
page.data['canonical'] ||= canonical.sub('/index.html', '').sub('.html', '').downcase

page.data['versions'] = versions.map do |v|
{ 'version' => v, 'url' => vps_with_key(vp.key)[v]&.url }
{
'version' => {
'version' => v.version,
'name' => v.name,
'tag' => v.tag
},
'url' => vps_with_key(vp.key)[v]&.url
}
end
end

Expand Down

0 comments on commit 10702a4

Please sign in to comment.