diff --git a/README.md b/README.md index 7205aa2..6b0890e 100644 --- a/README.md +++ b/README.md @@ -40,8 +40,11 @@ To add a page to discovery: just create it. To exclude one, set ## Adding a vertical -1. Create `src/verticals//index.njk` with `title`, `summary`, - `description`, `order`, and `permalink: //` front matter. +1. Create `src/verticals//index.njk` with `title`, `shortName`, + `summary`, `description`, `order`, `chooserIcon`, and + `permalink: //` front matter. `shortName` is the home-page tile + label; `chooserIcon` names an icon in `src/_data/flowIcons.js` for the + tile (add a new icon there if needed). 2. Add `.json` in that folder setting `layout` and `tags` (copy `education/education.json`). 3. Clone the Layer 2–4 pages, swapping the anchor scenario. diff --git a/src/_data/flowIcons.js b/src/_data/flowIcons.js index 2a669ab..e23b842 100644 --- a/src/_data/flowIcons.js +++ b/src/_data/flowIcons.js @@ -8,19 +8,21 @@ // inside Nunjucks {% set %} blocks. export default { - educationIssue: `

Pick your use case

Each guide answers "would this work for us?" — then shows you how to build it.

    - {% for v in collections.verticals %} + {% for v in collections.verticals | sort(attribute="data.order") %}
  • -
    -

    {{ v.data.cardTitle or v.data.title }}

    -

    {{ v.data.summary or v.data.description }}

    -
    + {% if v.data.chooserIcon and flowIcons[v.data.chooserIcon] %} + + {% endif %} +

    {{ v.data.shortName or v.data.cardTitle or v.data.title }}

  • {% endfor %} diff --git a/src/verticals/education/index.njk b/src/verticals/education/index.njk index 435ab77..74ed00e 100644 --- a/src/verticals/education/index.njk +++ b/src/verticals/education/index.njk @@ -5,6 +5,7 @@ cardTitle: "Academic Credentials" summary: "Issue diplomas, transcripts, and enrollment proofs any wallet can hold and any institution can verify." description: "Issue and verify diplomas, transcripts, and enrollment proofs with W3C Verifiable Credentials over VCALM — no central identity provider." order: 1 +chooserIcon: educationIssue permalink: /education/ --- {# Single-page vertical: SERP magnet, human journey, and technical model on one diff --git a/src/verticals/student-id/index.njk b/src/verticals/student-id/index.njk index 421b067..148df4f 100644 --- a/src/verticals/student-id/index.njk +++ b/src/verticals/student-id/index.njk @@ -5,6 +5,7 @@ cardTitle: "Student IDs & campus credentials" summary: "Issue student IDs students control — verifiable across campus and beyond, with any wallet." description: "Issue digital student IDs with W3C Verifiable Credentials over VCALM — student-controlled, any wallet, no allow-lists, privacy by design. Prove enrollment without revealing identity." order: 3 +chooserIcon: studentIdIssue permalink: /student-id/ --- {# Single-page student-ID vertical. Anchor: digital campus/student ID. diff --git a/src/verticals/supply-chain/index.njk b/src/verticals/supply-chain/index.njk index 4c3d8ca..1efd02d 100644 --- a/src/verticals/supply-chain/index.njk +++ b/src/verticals/supply-chain/index.njk @@ -1,10 +1,11 @@ --- title: "Supply chain traceability & provenance with VCALM" -shortName: "Supply chain & traceability" +shortName: "Supply Chain" cardTitle: "Supply chain traceability" summary: "Issue tamper-evident traceability and provenance credentials buyers, retailers, and auditors can verify." description: "Build supply chain traceability and provenance with W3C Verifiable Credentials over VCALM — prove origin, fight counterfeits, meet DSCSA / FSMA / UFLPA, no central database. EU DPP-ready." order: 2 +chooserIcon: supplyIssue permalink: /supply-chain/ --- {# Single-page supply-chain vertical. US-first: lead with "supply chain