Skip to content

Commit

Permalink
make index page links dynamic (#67)
Browse files Browse the repository at this point in the history
* make index page links dynamic

* fix md lint
  • Loading branch information
alidevjimmy authored Dec 9, 2024
1 parent b623ebe commit 3181617
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 53 deletions.
6 changes: 1 addition & 5 deletions content/api/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,4 @@ prev: /tutorials/linux-systemd
next: /grpc
---

{{< cards >}}
{{< card link="grpc" title="gRPC API Reference">}}
{{< card link="http" title="HTTP API Reference">}}
{{< card link="json-rpc" title="JSON-RPC API Reference">}}
{{< /cards >}}
{{< items >}}
8 changes: 1 addition & 7 deletions content/get-started/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,4 @@ prev: /
next: /get-started/become-a-validator
---

{{< cards >}}
{{< card link="become-a-validator" title="Become a validator">}}
{{< card link="pactus-gui" title="How to run Pactus in Graphic Mode?">}}
{{< card link="pactus-daemon" title="How to run Pactus in Command Line Mode?">}}
{{< card link="pactus-docker" title="How to run Pactus using Docker?">}}
{{< card link="troubleshooting" title="Troubleshooting Pactus Node">}}
{{< /cards >}}
{{< items >}}
12 changes: 1 addition & 11 deletions content/protocol/blockchain/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,4 @@ prev: /protocol
next: /protocol/blockchain/block
---

{{< cards >}}
{{< card link="block" title="Block" >}}
{{< card link="account" title="Account" >}}
{{< card link="validator" title="Validator" >}}
{{< card link="state-hash" title="State Hash" >}}
{{< card link="genesis" title="Genesis" >}}
{{< card link="incentive" title="Incentive" >}}
{{< card link="cryptography" title="Cryptography" >}}
{{< card link="address" title="Address" >}}
{{< card link="serialization" title="Data Serialization" >}}
{{< /cards >}}
{{< items >}}
9 changes: 1 addition & 8 deletions content/protocol/consensus/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,4 @@ prev: /protocol/blockchain/serialization
next: /protocol/consensus/proof-of-stake
---

{{< cards >}}
{{< card link="proof-of-stake" title="Solid State Proof of Stake">}}
{{< card link="protocol" title="Consensus Protocol">}}
{{< card link="specification" title="Consensus Specification">}}
{{< card link="sortition" title="Sortition Algorithm">}}
{{< card link="committee" title="Committee">}}
{{< card link="parameters" title="Parameters">}}
{{< /cards >}}
{{< items >}}
9 changes: 1 addition & 8 deletions content/protocol/transaction/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,4 @@ prev: /protocol/consensus/parameters
next: /protocol/transaction/format
---

{{< cards >}}
{{< card link="format" title="Transaction Format">}}
{{< card link="transfer" title="Transfer Transaction">}}
{{< card link="bond" title="Bond Transaction">}}
{{< card link="sortition" title="Sortition Transaction">}}
{{< card link="unbond" title="Unbond Transaction">}}
{{< card link="withdraw" title="Withdraw Transaction">}}
{{< /cards >}}
{{< items >}}
16 changes: 2 additions & 14 deletions content/tutorials/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,7 @@
title: 📚 Tutorials
weight: 3
prev: /protocol/transaction/withdraw
next: /tutorials/pactus-wallet
next: /tutorials/send-transaction-gui
---

{{< cards >}}
{{< card link="send-transaction-gui" title="How to send transactions in Graphic Mode?">}}
{{< card link="pactus-wallet" title="How to use wallet in Command Line Mode?">}}
{{< card link="pactus-shell" title="How to use Pactus Shell?">}}
{{< card link="grpc-sign-transactions" title="How to sign transaction using gRPC?">}}
{{< card link="grpc-basic-auth" title="How to secure gRPC using basic authentication?">}}
{{< card link="reduce-network" title="How to reduce the network usage?">}}
{{< card link="pactus-metrics" title="How to run Pactus Metrics?">}}
{{< card link="linux-systemd" title="How to run Pactus with systemd linux?">}}
{{< card link="linux-systemd" title="How to Prune Node?">}}
{{< card link="software-verification" title="How to Verify That Pactus Software Is Safe?">}}
{{< card link="zero-fee-transactios" title="How to Send Zero-Fee Transactions?">}}
{{< /cards >}}
{{< items >}}
10 changes: 10 additions & 0 deletions layouts/shortcodes/items.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<div class="hextra-cards hx-mt-4 hx-gap-4 hx-grid not-prose" style="--hextra-cards-grid-cols: 3;">
{{ range .Page.RegularPages }}
{{- partial "shortcodes/card" (dict
"page" .Page
"link" .RelPermalink
"title" .Title
)
-}}
{{ end }}
</div>

0 comments on commit 3181617

Please sign in to comment.