From 32d19d34241125c33551e63afc05c8b52ab5bb74 Mon Sep 17 00:00:00 2001 From: ehab-hassan Date: Sun, 18 May 2025 18:17:59 +0300 Subject: [PATCH] update features --- content/_index.md | 18 +++++++++++++++--- templates/shortcodes/feature_card.html | 13 ++++++++++++- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/content/_index.md b/content/_index.md index 1dde929..3ad3dbd 100644 --- a/content/_index.md +++ b/content/_index.md @@ -215,18 +215,30 @@ template = "index.html" feature_card( title="Decentralization", description="Designed to operate in a decentralized manner, it connects nodes and enables efficient data transfer and communication without relying on a single central authority.", - icon="/images/decentralization.svg") }} + icon="/images/decentralization.svg", + link="/about", + link_name="Learn More" +) }} + {{ feature_card( title="Efficiency", description="Mycelium provides an efficient digital communication network where data travels along the most efficient paths, reducing latency and optimizing resource utilization.", - icon="/images/efficiency.svg") }} + icon="/images/efficiency.svg", + link="/about", + link_name="Learn More" + + ) }} {{ feature_card( title="Resilience", description="Inspired by nature's resilience, it creates a network that can adapt and continue to function even in the presence of challenges, ensuring uninterrupted communication.", - icon="/images/resilience.svg") }} + icon="/images/resilience.svg", + link="/about", + link_name="Learn More" + + ) }} diff --git a/templates/shortcodes/feature_card.html b/templates/shortcodes/feature_card.html index 12d9fa1..e189b47 100644 --- a/templates/shortcodes/feature_card.html +++ b/templates/shortcodes/feature_card.html @@ -1,5 +1,6 @@ {% set title = title | default(value="Feature") %} {% set description = description | default(value="") %} +{% set link = link | default(value="") %} {% set icon = icon | default(value="") %} {% set bg_color = bg_color | default(value="bg-white") %} {% set hover_color = hover_color | default(value="hover:bg-gray-50") %} @@ -13,7 +14,10 @@ {% endif %}

{{ title }}

{% if description %} -

{{ description }}

+

{{ description }}

+ {% endif %} + {% if link %} + {{ link_name }} {% endif %} {% if caller %}
@@ -21,3 +25,10 @@
{% endif %} + +