mirror of
https://github.com/ivabus/www
synced 2024-11-22 13:15:06 +03:00
conditionally show link if github package.yml exists
This commit is contained in:
parent
d7461ba8ca
commit
7cef557065
1 changed files with 8 additions and 6 deletions
|
@ -14,13 +14,15 @@
|
|||
<h3>{{- .Title -}}</h3>
|
||||
{{ range where $.Site.Data.packages "name" .Title }}
|
||||
<p class="one-box-down">{{- .desc -}}</p>
|
||||
<a target="_blank" href="{{- .homepage -}}">
|
||||
<button class="detail-btn-large me-3" id="purple-bg-btn"><i class="icon-enter-arrow"></i>View on GitHub</button>
|
||||
</a>
|
||||
{{ if not (eq .package_yml_url "#")}}
|
||||
<a target="_blank" href="{{- .package_yml_url -}}">
|
||||
<button class="detail-btn-large me-3" id="purple-bg-btn"><i class="icon-enter-arrow"></i>View on GitHub</button>
|
||||
</a>
|
||||
{{end}}
|
||||
{{ if not (eq .homepage "") }}
|
||||
<a target="_blank" href="{{- .homepage -}}">
|
||||
<button class="detail-btn-large" id="standard-detail-btn"><i class="icon-enter-arrow"></i>Visit package home</button>
|
||||
</a>
|
||||
<a target="_blank" href="{{- .homepage -}}">
|
||||
<button class="detail-btn-large" id="standard-detail-btn"><i class="icon-enter-arrow"></i>Visit package home</button>
|
||||
</a>
|
||||
{{end}}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue