mirror of
https://github.com/ivabus/www
synced 2024-11-14 19:25:06 +03:00
Merge pull request #211 from teaxyz/link-to-package-yml
Link /package-detail/ to package.yml
This commit is contained in:
commit
a021354539
2 changed files with 25 additions and 4 deletions
|
@ -13,9 +13,16 @@
|
||||||
<div class="col-xl-8 col-lg-8 col-md-6 col-sm-12 col-12">
|
<div class="col-xl-8 col-lg-8 col-md-6 col-sm-12 col-12">
|
||||||
<h3>{{- .Title -}}</h3>
|
<h3>{{- .Title -}}</h3>
|
||||||
{{ range where $.Site.Data.packages "name" .Title }}
|
{{ range where $.Site.Data.packages "name" .Title }}
|
||||||
<p>{{- .desc -}}</p>
|
<p class="one-box-down">{{- .desc -}}</p>
|
||||||
|
{{ 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 "") }}
|
{{ if not (eq .homepage "") }}
|
||||||
{{- partial "detail-btn-large.html" .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>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -50,6 +57,20 @@
|
||||||
background-color: gray;
|
background-color: gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a:hover{
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#purple-bg-btn{
|
||||||
|
background-color: #8000FF;
|
||||||
|
border: 2px solid #8000FF;
|
||||||
|
}
|
||||||
|
|
||||||
|
#standard-detail-btn:hover{
|
||||||
|
background-color: #212020 !important;
|
||||||
|
box-shadow: inset 0vw 0vw 0vw 0.335vw #1a1a1a !important;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<a target="_blank" href="{{- . -}}">
|
<a target="_blank" href="{{- . -}}">
|
||||||
<button class="detail-btn-large"><i class="icon-enter-arrow"></i>VIEW ALL DETAILS</button>
|
<button class="detail-btn-large" id="detail-btn-large"><i class="icon-enter-arrow"></i>VIEW ALL DETAILS</button>
|
||||||
</a>
|
</a>
|
Loading…
Reference in a new issue