mirror of
https://github.com/ivabus/www
synced 2024-11-22 13:45: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,13 +14,15 @@
|
||||||
<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 "#")}}
|
||||||
<button class="detail-btn-large me-3" id="purple-bg-btn"><i class="icon-enter-arrow"></i>View on GitHub</button>
|
<a target="_blank" href="{{- .package_yml_url -}}">
|
||||||
</a>
|
<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 "") }}
|
{{ 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>
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue