|
| 1 | +{% extends "base.html" %} |
| 2 | + |
| 3 | +{% block content %} |
| 4 | +{% set community = page.meta.get("community", {}) %} |
| 5 | +{% set featured = community.get("featured", []) %} |
| 6 | +{% set initiatives = community.get("initiatives", []) %} |
| 7 | +{% set page_title = page.meta.get("title", page.title) %} |
| 8 | +{% set page_description = page.meta.get("description", "Community-led initiatives, resources, courses, mentoring, and events shared by OSL community members.") %} |
| 9 | +{% set section_label = page.meta.get("section_label", "Partnership") %} |
| 10 | +{% set section_slug = page.url.split("/")[0] %} |
| 11 | +{% if not section_slug %}{% set section_slug = "partnership" %}{% endif %} |
| 12 | +{% set page_theme = page.meta.get("page_theme", "partnership") %} |
| 13 | +{% set hero_words = page.meta.get("hero_words", ["Connect", "Amplify", "Collaborate"]) %} |
| 14 | + |
| 15 | +<section class="osl-page osl-page--community osl-page--section-{{ section_slug }} osl-page--theme-{{ page_theme }}"> |
| 16 | + <div class="osl-page-shell"> |
| 17 | + <header class="osl-page-hero"> |
| 18 | + <div class="osl-page-hero__content"> |
| 19 | + <p class="osl-page-kicker">{{ section_label }}</p> |
| 20 | + <h1>{{ page_title }}</h1> |
| 21 | + {% if page_description and page_description != page_title %} |
| 22 | + <p class="osl-page-description">{{ page_description }}</p> |
| 23 | + {% endif %} |
| 24 | + </div> |
| 25 | + <div class="osl-hero-system" aria-hidden="true"> |
| 26 | + <span class="osl-hero-system__ring"></span> |
| 27 | + <span class="osl-hero-system__node osl-hero-system__node--one"></span> |
| 28 | + <span class="osl-hero-system__node osl-hero-system__node--two"></span> |
| 29 | + <span class="osl-hero-system__node osl-hero-system__node--three"></span> |
| 30 | + <span class="osl-hero-system__label osl-hero-system__label--one">{{ hero_words[0] }}</span> |
| 31 | + <span class="osl-hero-system__label osl-hero-system__label--two">{{ hero_words[1] }}</span> |
| 32 | + <span class="osl-hero-system__label osl-hero-system__label--three">{{ hero_words[2] }}</span> |
| 33 | + </div> |
| 34 | + </header> |
| 35 | + |
| 36 | + <article class="osl-markdown"> |
| 37 | + {{ page.content }} |
| 38 | + </article> |
| 39 | + |
| 40 | + <section class="event-section initiative-section" aria-labelledby="featured-community-initiatives"> |
| 41 | + <div class="directory-heading"> |
| 42 | + <p class="directory-eyebrow">Start here</p> |
| 43 | + <h2 id="featured-community-initiatives">Featured Community Partner Opportunity</h2> |
| 44 | + </div> |
| 45 | + |
| 46 | + {% if featured %} |
| 47 | + <div class="event-grid initiative-grid"> |
| 48 | + {% for initiative in featured %} |
| 49 | + <article class="event-card initiative-card initiative-card--featured"> |
| 50 | + <div class="event-card__media initiative-card__media"> |
| 51 | + {% if initiative.url %} |
| 52 | + <a href="{{ initiative.url }}" target="_blank" rel="noopener"> |
| 53 | + <img src="{{ initiative.thumbnail }}" alt="{{ initiative.name }}" loading="lazy" decoding="async" /> |
| 54 | + </a> |
| 55 | + {% else %} |
| 56 | + <img src="{{ initiative.thumbnail }}" alt="{{ initiative.name }}" loading="lazy" decoding="async" /> |
| 57 | + {% endif %} |
| 58 | + </div> |
| 59 | + <div class="event-card__body initiative-card__body"> |
| 60 | + <p class="event-card__date initiative-card__category"> |
| 61 | + {{ initiative.category }}{% if initiative.status %} · {{ initiative.status }}{% endif %} |
| 62 | + </p> |
| 63 | + <h3>{{ initiative.name }}</h3> |
| 64 | + {% if initiative.partner %} |
| 65 | + <p class="initiative-card__partner">By {{ initiative.partner }}</p> |
| 66 | + {% endif %} |
| 67 | + <p>{{ initiative.description }}</p> |
| 68 | + <dl class="initiative-meta"> |
| 69 | + {% if initiative.format %} |
| 70 | + <div> |
| 71 | + <dt>Format</dt> |
| 72 | + <dd>{{ initiative.format }}</dd> |
| 73 | + </div> |
| 74 | + {% endif %} |
| 75 | + {% if initiative.audience %} |
| 76 | + <div> |
| 77 | + <dt>Audience</dt> |
| 78 | + <dd>{{ initiative.audience }}</dd> |
| 79 | + </div> |
| 80 | + {% endif %} |
| 81 | + </dl> |
| 82 | + {% if initiative.url %} |
| 83 | + <a href="{{ initiative.url }}" class="osl-inline-button" target="_blank" rel="noopener"> |
| 84 | + {{ initiative.action or "Learn more" }} |
| 85 | + </a> |
| 86 | + {% endif %} |
| 87 | + </div> |
| 88 | + </article> |
| 89 | + {% endfor %} |
| 90 | + </div> |
| 91 | + {% else %} |
| 92 | + <div class="empty-state"> |
| 93 | + <h3>TBA</h3> |
| 94 | + </div> |
| 95 | + {% endif %} |
| 96 | + </section> |
| 97 | + |
| 98 | + <section class="event-section initiative-section" aria-labelledby="community-initiatives"> |
| 99 | + <div class="directory-heading"> |
| 100 | + <p class="directory-eyebrow">Community initiatives</p> |
| 101 | + <h2 id="community-initiatives">Community Partner Initiatives</h2> |
| 102 | + </div> |
| 103 | + |
| 104 | + {% if initiatives %} |
| 105 | + <div class="event-grid initiative-grid"> |
| 106 | + {% for initiative in initiatives %} |
| 107 | + <article class="event-card initiative-card"> |
| 108 | + <div class="event-card__media initiative-card__media"> |
| 109 | + {% if initiative.url %} |
| 110 | + <a href="{{ initiative.url }}" target="_blank" rel="noopener"> |
| 111 | + <img src="{{ initiative.thumbnail }}" alt="{{ initiative.name }}" loading="lazy" decoding="async" /> |
| 112 | + </a> |
| 113 | + {% else %} |
| 114 | + <img src="{{ initiative.thumbnail }}" alt="{{ initiative.name }}" loading="lazy" decoding="async" /> |
| 115 | + {% endif %} |
| 116 | + </div> |
| 117 | + <div class="event-card__body initiative-card__body"> |
| 118 | + <p class="event-card__date initiative-card__category"> |
| 119 | + {{ initiative.category }}{% if initiative.status %} · {{ initiative.status }}{% endif %} |
| 120 | + </p> |
| 121 | + <h3>{{ initiative.name }}</h3> |
| 122 | + {% if initiative.partner %} |
| 123 | + <p class="initiative-card__partner">By {{ initiative.partner }}</p> |
| 124 | + {% endif %} |
| 125 | + <p>{{ initiative.description }}</p> |
| 126 | + <dl class="initiative-meta"> |
| 127 | + {% if initiative.format %} |
| 128 | + <div> |
| 129 | + <dt>Format</dt> |
| 130 | + <dd>{{ initiative.format }}</dd> |
| 131 | + </div> |
| 132 | + {% endif %} |
| 133 | + {% if initiative.audience %} |
| 134 | + <div> |
| 135 | + <dt>Audience</dt> |
| 136 | + <dd>{{ initiative.audience }}</dd> |
| 137 | + </div> |
| 138 | + {% endif %} |
| 139 | + </dl> |
| 140 | + {% if initiative.url %} |
| 141 | + <a href="{{ initiative.url }}" class="osl-inline-button osl-inline-button--subtle" target="_blank" rel="noopener"> |
| 142 | + {{ initiative.action or "Learn more" }} |
| 143 | + </a> |
| 144 | + {% endif %} |
| 145 | + </div> |
| 146 | + </article> |
| 147 | + {% endfor %} |
| 148 | + </div> |
| 149 | + {% else %} |
| 150 | + <div class="empty-state"> |
| 151 | + <h3>TBA</h3> |
| 152 | + </div> |
| 153 | + {% endif %} |
| 154 | + </section> |
| 155 | + </div> |
| 156 | +</section> |
| 157 | +{% endblock content %} |
0 commit comments