mirror of
https://github.com/ivabus/www
synced 2024-11-23 00:35:07 +03:00
add slug to packages.json
This commit is contained in:
parent
f609869f9c
commit
9ede3cd6ad
4 changed files with 5 additions and 5 deletions
4
.github/build-package-pages.sh
vendored
4
.github/build-package-pages.sh
vendored
|
@ -6,12 +6,12 @@ for row in $(cat $1 | jq -r '.[] | @base64'); do
|
|||
_jq() {
|
||||
echo ${row} | base64 --decode | jq -r ${1}
|
||||
}
|
||||
touch $2/$(_jq '.name').md
|
||||
touch $2/$(_jq '.slug').md
|
||||
content="---
|
||||
type: page
|
||||
title: \"$(_jq '.name')\"
|
||||
Description: \"$(_jq '.desc')\"
|
||||
layout: \"package-detail\"
|
||||
---"
|
||||
echo "$content" > $2/$(_jq '.name').md
|
||||
echo "$content" > $2/$(_jq '.slug').md
|
||||
done
|
2
.github/workflows/staging.yml
vendored
2
.github/workflows/staging.yml
vendored
|
@ -38,7 +38,7 @@ jobs:
|
|||
with:
|
||||
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
source: 's3://dist.tea.xyz/packages.json'
|
||||
source: 's3://dist.tea.xyz/mock_packages.json'
|
||||
dest: './src/data/packages.json'
|
||||
|
||||
- name: Create Package Detail Pages from packages.json
|
||||
|
|
|
@ -36,6 +36,6 @@
|
|||
</style>
|
||||
|
||||
|
||||
<a href="/packages/{{- .name -}}/">
|
||||
<a href="/packages/{{- .slug -}}/">
|
||||
<button class="detail-btn"><i class="icon-enter-arrow"></i>details</button>
|
||||
</a>
|
|
@ -22,7 +22,7 @@
|
|||
{{- partial "detail-btn.html" . -}}
|
||||
</div>
|
||||
<div class="card-body thumbnail-body-mobile">
|
||||
<a href="/packages/{{- .name -}}/">
|
||||
<a href="/packages/{{- .slug -}}/">
|
||||
<button class="detail-btn-mobile"><i class="icon-enter-arrow"></i>details</button>
|
||||
</a>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue