Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/community.md → content/community/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title = "Community"
description = "Join the Valkey community"
template = "community.html"

page_template = "community.html"
[extra]
cards = [
{ icon = "icon-question.svg", title = "Ask Questions", description = "If you have any inquiries about Valkey, feel free to join the conversation on our GitHub discussions or chat with us on Slack.", links = [
Expand Down
16 changes: 14 additions & 2 deletions templates/community.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,23 @@

<div class="community-section">
<div class="community-header">
{% if section %}
{{ section.content | markdown | safe }}
{% else %}
{{ page.content | markdown | safe }}
{% endif %}
</div>
{% if page.extra.cards %}
{% set cards_meta = get_section(path="community/_index.md", metadata_only=true) %}
{% if (page and page.extra and page.extra.cards) %}
{% set page_cards = page.extra.cards %}
{% else %}
{% set page_cards = [] %}
{% endif %}
{% set cards = page_cards | concat(with= cards_meta.extra.cards) %}

{% if cards %}
<div class="community-card-grid">
{% for card in page.extra.cards %}
{% for card in cards%}
<div class="community-card">
<img src="/img/{{ card.icon }}" alt="{{ card.title }}" class="community-card-icon" />
<h3>{{ card.title }}</h3>
Expand Down