|
1 |
| -<section class="governance"> |
| 1 | +<section class="governance table-of-content"> |
2 | 2 | <div class="wrap">
|
3 | 3 | <div class="inner-box">
|
4 | 4 | <div class="heading-box">
|
5 | 5 | <h2 id="governance">Governance</h2>
|
6 |
| - <p>{{site.data.governance.introText}}</p> |
7 | 6 | </div>
|
8 | 7 | <div class="community">
|
9 |
| - <div class="scala-items-list"> |
| 8 | + <div class="scala-items-grid"> |
10 | 9 | <div class="items-menu">
|
11 | 10 | {% for scalaItem in site.data.governance.cards %}
|
12 |
| - {% assign loopIndexMod = forloop.index | minus: 1 | modulo: 3 %} |
13 |
| - |
14 |
| - {% if loopIndexMod == 0 %} |
15 |
| - {% assign codeSnippets = '' | split: ',' %} |
16 |
| - <div class="wrap"> |
17 |
| - {% endif %} |
18 |
| - |
19 | 11 | <!-- Show the below content only if the scalaItem.expandable either doesn't exist or is false -->
|
20 |
| - {% unless scalaItem.dontExpand %} |
21 |
| - {% capture box_content %} |
22 |
| - <div class="wrap"> |
23 |
| - <ul class="vertical-buttons-list"> |
24 |
| - {% for link in scalaItem.links %} |
25 |
| - {% if link.text %} |
26 |
| - <li><p>{{ link.text }}</p></li> |
27 |
| - {% else %} |
28 |
| - <li><a href="{{ link.url }}" class="button button-expand" target="_blank" rel="none">{{ link.name }}</a></li> |
29 |
| - {% endif %} |
30 |
| - {% endfor %} |
31 |
| - </ul> |
32 |
| - </div> |
33 |
| - {% endcapture %} |
34 |
| - {% assign codeSnippets = codeSnippets | push: box_content %} |
35 |
| - {% endunless %} |
36 | 12 | <div class="scala-item scala-item__governance">
|
37 |
| - <div class="top"> |
38 |
| - <h4>{{scalaItem.title}}</h4> |
39 |
| - <p>{{scalaItem.description}}</p> |
40 |
| - </div> |
| 13 | + <div class="top"> |
| 14 | + <h4>{{scalaItem.title}}</h4> |
| 15 | + <p>{{scalaItem.description}}</p> |
| 16 | + </div> |
41 | 17 | {% unless scalaItem.dontExpand %}
|
42 |
| - <div class="button button-more">{{scalaItem.expandText}}</div> |
| 18 | + <a href="#{{scalaItem.anchorTarget}}" class="button button-more">{{scalaItem.expandText}}</a> |
43 | 19 | {% endunless %}
|
44 | 20 | </div>
|
45 |
| - {% if loopIndexMod == 2 or forloop.last %} |
| 21 | + <div id="{{scalaItem.anchorTarget}}" class="items-content"> |
| 22 | + {% unless scalaItem.dontExpand %} |
| 23 | + <div class="wrap"> |
| 24 | + <a id="{{scalaItem.anchorTarget}}-close" class="items-content_close" href="#{{scalaItem.anchorTarget}}-close"><i |
| 25 | + class="fa fa-close"></i></a> |
46 | 26 | </div>
|
47 |
| - <div class="items-content"> |
48 |
| - {% for snippet in codeSnippets %} |
49 |
| - <div class="items-code">{{snippet}}</div> |
50 |
| - {% endfor %} |
| 27 | + <div class="items-code"> |
| 28 | + <div class="wrap"> |
| 29 | + <ul class="vertical-buttons-list"> |
| 30 | + {% for link in scalaItem.links %} |
| 31 | + {% if link.text %} |
| 32 | + <li> |
| 33 | + {{ link.text | markdownify }} |
| 34 | + </li> |
| 35 | + {% elsif link.fancy %} |
| 36 | + <li><div class="button button-announce">{{ link.fancy }}</div></li> |
| 37 | + {% else %} |
| 38 | + <li><a href="{{ link.url }}" class="button button-expand" target="_blank" rel="none">{{ link.name }}</a></li> |
| 39 | + {% endif %} |
| 40 | + {% endfor %} |
| 41 | + </ul> |
| 42 | + </div> |
51 | 43 | </div>
|
52 |
| - {% endif %} |
| 44 | + {% endunless %} |
| 45 | + </div> |
53 | 46 | {% endfor %}
|
54 | 47 | </div>
|
55 | 48 | </div>
|
56 | 49 | </div>
|
| 50 | + <div class="community"> |
| 51 | + <div class="summary">{{site.data.governance.introText | markdownify}}</div> |
| 52 | + </div> |
57 | 53 | </div>
|
58 | 54 | </div>
|
59 | 55 | </section>
|
60 | 56 |
|
61 | 57 | <section class="table-of-content">
|
62 |
| - <div class="wrap"> |
63 |
| - <div class="inner-box"> |
64 |
| - <div class="community"> |
65 |
| - <div class="discourse"> |
66 |
| - <h2>Discourse</h2> |
67 |
| - <span>Forums</span> |
68 |
| - <ul> |
69 |
| - {% for forum in site.data.chats-forums.discourseForums %} |
70 |
| - <li> |
71 |
| - <img src="/resources/img/frontpage/discourse-logo.png" alt="{{forum.title}}"> |
72 |
| - <div> |
73 |
| - <h4><a href="{{forum.url}}">{{forum.title}}</a></h4> |
74 |
| - <p>{{forum.subtitle}}</p> |
75 |
| - </div> |
76 |
| - </li> |
77 |
| - {% endfor %} |
78 |
| - </ul> |
79 |
| - </div> |
80 |
| - <div class="discord"> |
81 |
| - <h2>Discord</h2> |
82 |
| - <span>Real-time chat</span> |
83 |
| - <ul> |
84 |
| - {% for server in site.data.chats-forums.discordServers %} |
85 |
| - <li> |
86 |
| - <a href="{{server.url}}"> |
87 |
| - <img src="/resources/img/frontpage/discord-logo.png" alt="{{channel.name}}"> |
88 |
| - <h4>{{server.name}}</h4> |
89 |
| - </a> |
90 |
| - </li> |
91 |
| - {% endfor %} |
92 |
| - </ul> |
93 |
| - <span>More chat venues are listed below.</span> |
94 |
| - </div> |
95 |
| - </div> |
96 |
| - </div> |
97 |
| - </div> |
| 58 | + <div class="wrap"> |
| 59 | + <div class="inner-box"> |
| 60 | + <div class="community"> |
| 61 | + <div class="discourse"> |
| 62 | + <h2>Discourse</h2> |
| 63 | + <span>Forums</span> |
| 64 | + <ul> |
| 65 | + {% for forum in site.data.chats-forums.discourseForums %} |
| 66 | + <li> |
| 67 | + <img src="/resources/img/frontpage/discourse-logo.png" alt="{{forum.title}}"> |
| 68 | + <div> |
| 69 | + <h4><a href="{{forum.url}}">{{forum.title}}</a></h4> |
| 70 | + <p>{{forum.subtitle}}</p> |
| 71 | + </div> |
| 72 | + </li> |
| 73 | + {% endfor %} |
| 74 | + </ul> |
| 75 | + </div> |
| 76 | + <div class="discord"> |
| 77 | + <h2>Discord</h2> |
| 78 | + <span>Real-time chat</span> |
| 79 | + <ul> |
| 80 | + {% for server in site.data.chats-forums.discordServers %} |
| 81 | + <li> |
| 82 | + <a href="{{server.url}}"> |
| 83 | + <img src="/resources/img/frontpage/discord-logo.png" alt="{{channel.name}}"> |
| 84 | + <h4>{{server.name}}</h4> |
| 85 | + </a> |
| 86 | + </li> |
| 87 | + {% endfor %} |
| 88 | + </ul> |
| 89 | + <span>More chat venues are listed below.</span> |
| 90 | + </div> |
| 91 | + </div> |
| 92 | + </div> |
| 93 | + </div> |
98 | 94 | </section>
|
99 | 95 | <section class="upcoming-events">
|
100 |
| - <div class="wrap"> |
101 |
| - <div class="inner-box"> |
102 |
| - <div class="heading-box"> |
103 |
| - <h2>Upcoming Events and Trainings</h2> |
104 |
| - </div> |
105 |
| - <div class="events-items-list"> |
106 |
| - {% assign upcomingEvents = '' | split: ',' %} |
107 |
| - {% capture now %}{{site.time | date: '%s' | plus: 0}}{% endcapture %} |
108 |
| - {% for event in site.events %} |
109 |
| - {% capture date %}{{event.end|date: '%s'|plus: 86400}}{% endcapture %} |
110 |
| - {% if now <= date %} {% assign upcomingEvents=upcomingEvents | push: event %} {% endif %} {% endfor %} {% for event in |
111 |
| - upcomingEvents limit:6 %} <div href="#" class="event-item"> |
112 |
| - <a href="{{event.link-out}}" class="card"> |
113 |
| - <img src="{{event.logo}}" alt="{{event.title}}"> |
114 |
| - <div class="card-text"> |
115 |
| - <h4>{{event.title}}</h4> |
116 |
| - <ul> |
117 |
| - <li class="event-location">{{event.location}}</li> |
118 |
| - </ul> |
119 |
| - <ul> |
120 |
| - <li class="date-event">{{event.start | date_to_string}} {% if event.start != event.end %}- {{event.end | |
121 |
| - date_to_string}}{% endif %}</li> |
122 |
| - </ul> |
123 |
| - </div> |
124 |
| - </a> |
125 |
| - </div> |
126 |
| - {% endfor %} |
127 |
| - </div> |
128 |
| - <div class="call-to-action action-medium"> |
129 |
| - <p class="align-top">See <a href="/events/">more events</a> or <a |
130 |
| - href="https://github.com/scala/scala-lang/tree/master/events">add one to our events feed</a></p> |
131 |
| - </div> |
132 |
| - {% include upcoming-training.html %} |
133 |
| - </div> |
134 |
| - </div> |
| 96 | + <div class="wrap"> |
| 97 | + <div class="inner-box"> |
| 98 | + <div class="heading-box"> |
| 99 | + <h2>Upcoming Events and Trainings</h2> |
| 100 | + </div> |
| 101 | + <div class="events-items-list"> |
| 102 | + {% assign upcomingEvents = '' | split: ',' %} |
| 103 | + {% capture now %}{{site.time | date: '%s' | plus: 0}}{% endcapture %} |
| 104 | + {% for event in site.events %} |
| 105 | + {% capture date %}{{event.end|date: '%s'|plus: 86400}}{% endcapture %} |
| 106 | + {% if now <= date %} {% assign upcomingEvents=upcomingEvents | push: event %} {% endif %} {% endfor %} {% for event in |
| 107 | + upcomingEvents limit:6 %} <div href="#" class="event-item"> |
| 108 | + <a href="{{event.link-out}}" class="card"> |
| 109 | + <img src="{{event.logo}}" alt="{{event.title}}"> |
| 110 | + <div class="card-text"> |
| 111 | + <h4>{{event.title}}</h4> |
| 112 | + <ul> |
| 113 | + <li class="event-location">{{event.location}}</li> |
| 114 | + </ul> |
| 115 | + <ul> |
| 116 | + <li class="date-event">{{event.start | date_to_string}} {% if event.start != event.end %}- {{event.end | |
| 117 | + date_to_string}}{% endif %}</li> |
| 118 | + </ul> |
| 119 | + </div> |
| 120 | + </a> |
| 121 | + </div> |
| 122 | + {% endfor %} |
| 123 | + </div> |
| 124 | + <div class="call-to-action action-medium"> |
| 125 | + <p class="align-top">See <a href="/events/">more events</a> or <a |
| 126 | + href="https://github.com/scala/scala-lang/tree/master/events">add one to our events feed</a></p> |
| 127 | + </div> |
| 128 | + {% include upcoming-training.html %} |
| 129 | + </div> |
| 130 | + </div> |
135 | 131 | </section>
|
0 commit comments