mirror of
https://github.com/ivabus/www
synced 2024-11-22 19:15:05 +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,9 +14,11 @@
|
||||||
<h3>{{- .Title -}}</h3>
|
<h3>{{- .Title -}}</h3>
|
||||||
{{ range where $.Site.Data.packages "name" .Title }}
|
{{ range where $.Site.Data.packages "name" .Title }}
|
||||||
<p class="one-box-down">{{- .desc -}}</p>
|
<p class="one-box-down">{{- .desc -}}</p>
|
||||||
<a target="_blank" href="{{- .homepage -}}">
|
{{ 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>
|
<button class="detail-btn-large me-3" id="purple-bg-btn"><i class="icon-enter-arrow"></i>View on GitHub</button>
|
||||||
</a>
|
</a>
|
||||||
|
{{end}}
|
||||||
{{ if not (eq .homepage "") }}
|
{{ if not (eq .homepage "") }}
|
||||||
<a target="_blank" href="{{- .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>
|
<button class="detail-btn-large" id="standard-detail-btn"><i class="icon-enter-arrow"></i>Visit package home</button>
|
||||||
|
|
Loading…
Reference in a new issue