Skip to content

Commit

Permalink
feat: hide go-ipfs, show kubo
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Jun 25, 2022
1 parent 43e417d commit 7c7991e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion site/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title = "IPFS Distributions"
taxonomies = {}

[params]
hiddenDists = ['gx', 'gx-go']
hiddenDists = ['go-ipfs', 'gx', 'gx-go']
newGoIpfsName = 'kubo'

[params.targetMap]
Expand Down
4 changes: 2 additions & 2 deletions site/layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
<div class="col-md-9">
{{ range $key, $value := $.Site.Data.releases }}{{ if not (in $.Site.Params.hiddenDists $key) }}
{{ $data := $value.data }}
{{ if eq "go-ipfs" $key }}<div id="{{ $.Site.Params.newGoIpfsName }}"></div>{{ end }}
{{ if eq $.Site.Params.newGoIpfsName $key }}<div id="go-ipfs"></div>{{ end }}
<div class="d-component" id="{{ $key }}">
<div class="d-component-desc row">
<div class="col-md-7">
<h1 class="d-component-desc-title">{{ if eq "go-ipfs" $key }}{{ $.Site.Params.newGoIpfsName }} (old name: {{ $key }}){{ else }}{{ $key }}{{ end }}</h1>
<h1 class="d-component-desc-title">{{ $key }}{{ if eq $.Site.Params.newGoIpfsName $key }}<small>(old name: go-ipfs)</small>{{ end }}</h1>
<h2 class="d-component-desc-sub-title">{{ $data.tagline }}</h2>
<div class="d-component-desc-body">{{ $data.description | markdownify }}</div>
</div>
Expand Down

0 comments on commit 7c7991e

Please sign in to comment.