Skip to content

Commit

Permalink
feat: hide go-ipfs, show only new name
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Jun 19, 2022
1 parent 9d1c875 commit 75aae60
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions site/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ title = "IPFS Distributions"
taxonomies = {}

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

[params.targetMap]
386 = "32-bit"
amd64 = "64-bit"
Expand Down
11 changes: 6 additions & 5 deletions site/layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,22 @@
<li class="d-sidebar-item nav-item">
<a class="d-sidebar-link nav-link" href="#about">About</a>
</li>
{{ range $key, $value := $.Site.Data.releases }}
{{ range $key, $value := $.Site.Data.releases }}{{ if not (in $.Site.Params.hiddenDists $key) }}
<li class="d-sidebar-item nav-item">
<a class="d-sidebar-link nav-link" href="#{{ $key }}">{{ $key }}</a>
</li>
{{ end }}
{{ end }}{{ end }}
</ul>
</div>
</div>
<div class="col-md-9">
{{ range $key, $value := $.Site.Data.releases }}
{{ range $key, $value := $.Site.Data.releases }}{{ if not (in $.Site.Params.hiddenDists $key) }}
{{ $data := $value.data }}
{{ 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">{{ $key }}</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 Expand Up @@ -115,7 +116,7 @@ <h4 class="d-component-release-date">{{ $data.date }}</h4>
</div>
</div>
</div>
{{ end }}
{{ end }}{{ end }}
</div>
</div>
</div>
Expand Down

0 comments on commit 75aae60

Please sign in to comment.