Skip to content

Commit 2488bc7

Browse files
authored
Merge pull request #16 from SEACrowd/mychiffonn/social
Mychiffonn/social
2 parents 5efb44c + ddabf9e commit 2488bc7

14 files changed

Lines changed: 143 additions & 158 deletions

.github/workflows/pages.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ name: Build and deploy Jekyll site to GitHub Pages
22

33
on:
44
push:
5-
branches: ["main"] # Run on pushes to main
6-
workflow_dispatch: # Allow manual runs from Actions tab
5+
branches: ["main"] # Run on pushes to main
6+
workflow_dispatch: # Allow manual runs from Actions tab
77

88
permissions:
9-
contents: read # Read repo contents
10-
pages: write # Deploy to Pages
11-
id-token: write # Verify the deployment
9+
contents: read # Read repo contents
10+
pages: write # Deploy to Pages
11+
id-token: write # Verify the deployment
1212

1313
concurrency:
1414
group: "pages"
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Ruby
2626
uses: ruby/setup-ruby@v1
2727
with:
28-
ruby-version: '3.2'
28+
ruby-version: "3.2"
2929
bundler-cache: true
3030

3131
- name: Install dependencies

_data/navbar.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1+
- name: "About"
2+
href: "/about"
3+
- name: "Apprenticeship"
4+
href: "/apprenticeship"
5+
- name: "Projects"
6+
href: "/projects/"
17
- name: "Research"
28
children:
3-
- name: "Projects"
4-
href: "/projects/"
59
- name: "Publications"
610
href: "/publications"
711
- name: "Resources"
812
href: "/resources/"
9-
- name: "Events"
10-
href: "/events/"
13+
1114
- name: "Blog"
1215
href: "/posts/"
13-
- name: "Apprenticeship"
14-
href: "/apprenticeship"
15-
- name: "Volunteer"
16+
17+
- name: "Get Involved"
1618
href: "/contribute"
17-
- name: "Support Us"
19+
20+
- name: "Donate"
1821
href: "/donate"
19-
- name: "About"
20-
href: "/about"
22+
cta: true

_data/ways_to_contribute.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

_includes/contribution-cards.html

Lines changed: 0 additions & 18 deletions
This file was deleted.

_includes/navbar.html

Lines changed: 47 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,44 +24,79 @@
2424
<div class="collapse navbar-collapse" id="navbarNav">
2525
<ul class="navbar-nav ms-auto">
2626
{% for nav in site.data.navbar %}
27+
{% assign is_active = false %}
28+
{% if nav.href %}
29+
{% assign clean_nav_href = nav.href
30+
| remove: '.html'
31+
| remove: '/'
32+
%}
33+
{% if page.url == nav.href
34+
or page.permalink == nav.href
35+
or clean_page_url == clean_nav_href
36+
or page.url contains nav.href
37+
%}
38+
{% assign is_active = true %}
39+
{% endif %}
40+
{% endif %}
41+
2742
{% if nav.children %}
43+
{% comment %} Check if any child is active {% endcomment %}
44+
{% for child in nav.children %}
45+
{% assign clean_child_href = child.href
46+
| remove: '.html'
47+
| remove: '/'
48+
%}
49+
{% if page.url == child.href
50+
or page.permalink == child.href
51+
or clean_page_url == clean_child_href
52+
or page.url contains child.href
53+
%}
54+
{% assign is_active = true %}
55+
{% endif %}
56+
{% endfor %}
2857
<li class="nav-item dropdown">
2958
<a
30-
class="nav-link dropdown-toggle"
59+
class="nav-link dropdown-toggle {% if is_active %}active{% endif %}"
3160
href="#"
32-
id="dropdown{{ forloop.index }}"
3361
role="button"
3462
data-bs-toggle="dropdown"
3563
aria-expanded="false"
3664
>
3765
{{ nav.name }}
3866
</a>
39-
<ul
40-
class="dropdown-menu"
41-
aria-labelledby="dropdown{{ forloop.index }}"
42-
>
67+
<ul class="dropdown-menu">
4368
{% for child in nav.children %}
69+
{% assign clean_child_href = child.href
70+
| remove: '.html'
71+
| remove: '/'
72+
%}
4473
<li>
4574
<a
46-
class="dropdown-item {% assign clean_child_href = child.href | remove: '.html' | remove: '/' %}{% if page.url == child.href or page.permalink == child.href or clean_page_url == clean_child_href or page.url contains child.href %}active{% endif %}"
75+
class="dropdown-item {% if page.url == child.href or page.permalink == child.href or clean_page_url == clean_child_href or page.url contains child.href %}active{% endif %}"
4776
href="{{ child.href }}"
4877
>
4978
{{ child.name }}
50-
{% if child.href == '/apprenticeship.html' %}
51-
{% include apprenticeship-badge.html %}
52-
{% endif %}
79+
{% if child.href == '/apprenticeship' -%}
80+
{%- include apprenticeship-badge.html -%}
81+
{%- endif %}
5382
</a>
5483
</li>
5584
{% endfor %}
5685
</ul>
5786
</li>
87+
{% elsif nav.cta %}
88+
<li class="nav-item ms-lg-2">
89+
<a class="btn btn-primary btn-sm px-3" href="{{ nav.href }}">
90+
{{- nav.name -}}
91+
</a>
92+
</li>
5893
{% else %}
5994
<li class="nav-item">
6095
<a
61-
class="nav-link {% assign clean_nav_href = nav.href | remove: '.html' | remove: '/' %}{% if page.url == nav.href or page.permalink == nav.href or clean_page_url == clean_nav_href or page.url contains nav.href %}active{% endif %}"
96+
class="nav-link {% if is_active %}active{% endif %}"
6297
href="{{ nav.href }}"
6398
>
64-
{{ nav.name }}
99+
{{- nav.name -}}
65100
</a>
66101
</li>
67102
{% endif %}

_layouts/default.html

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -150,26 +150,6 @@
150150
>
151151
{% include navbar.html %}
152152

153-
<div
154-
id="donation-banner"
155-
class="position-fixed w-100 bg-secondary py-2 d-flex align-items-center justify-content-center"
156-
style="top: 55px; z-index: 1020; font-size: 0.8rem"
157-
>
158-
<div class="d-flex align-items-center justify-content-center">
159-
<i class="fas fa-heart me-2 text-white"></i>
160-
<a href="/donate" class="text-white text-decoration-underline">
161-
Support our research and programs by making a donation!
162-
</a>
163-
</div>
164-
<button
165-
type="button"
166-
class="btn-close position-absolute end-0 me-2 ms-2"
167-
data-bs-theme="dark"
168-
onclick="document.getElementById('donation-banner').remove()"
169-
aria-label="Close"
170-
></button>
171-
</div>
172-
173153
<main class="flex-grow-1">
174154
<div class="my-2">{{ content }}</div>
175155
</main>

_layouts/project.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h1 class="page-title">{{ page.title }}</h1>
2323
{%- when 'completed' -%}
2424
{%- assign badge_class = 'bg-dark text-white' -%}
2525
{%- else -%}
26-
{%- assign badge_class = 'bg-secondary text-dark' -%}
26+
{%- assign badge_class = 'bg-secondary text-white' -%}
2727
{%- endcase -%}
2828
<span class="badge {{ badge_class }} me-1">
2929
{{- page.status | capitalize -}}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22
---
33

4-
Our [2026 apprentice program](/apprenticeship) is closed. Thank you to all applicants! Stay tuned for announcements.
4+
Our [2026 apprentice program](/apprenticeship) is closed. Thank you to all applicants! Watch your emails from [{{ site.social.email }}](mailto:{{ site.social.email }}) for updates on the selection process.

_pages/apprenticeship.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ form: https://forms.gle/GCv3cyCRqzj4PqfA9
55
thumbnail: apprenticeship.png
66
---
77

8-
**The application was closed on Dec 17, 2025 at 23:59 (UTC-12). Announcements will be made through emails. Next cohort applications will open in late 2026. Stay tuned!**
8+
**The application was closed on Dec 17, 2025 at 23:59 (UTC-12). Updates will be sent to applicants from our email [{{ site.social.email }}](mailto:{{site.social.email}}).**
9+
10+
If you would like to be notified of future apprentice batches, please join our [Google Group]({{ site.social.google_group }}) or follow us on [X/Twitter]({{ site.social.twitter }}), [Facebook]({{ site.social.facebook }}), or [LinkedIn]({{ site.social.linkedin }}).
11+
12+
---
913

1014
SEACrowd Apprentice Program is a **remote research program** (Feb 1 - Jun 30, 2026) that pairs experienced researchers with early-career researchers across Southeast Asia to build models, datasets, and publishable research. Small, mentored teams work on scoped projects with structured milestones and community support, creating a clear path toward PhD admissions, jobs, and stronger SEA regional capacity.
1115

@@ -60,12 +64,14 @@ Check out [previous batch publications](/apprenticeship#past-apprentice-research
6064

6165
## Application Process
6266

63-
- **[General Application](https://forms.gle/GCv3cyCRqzj4PqfA9):** Nov 17 - Dec 17, 2025 (23:59 UTC-12)
67+
- **General Application:** Nov 17 - Dec 17, 2025 (23:59 UTC-12).
6468
- **Selection:** mid-Dec 2025 - Jan 19, 2026
6569
- Round 1: Application screening
6670
- Round 2: Online interview
6771
- **Team announcement:** mid-Jan 2026
6872

73+
[Apply Here]({{ page.form }}){: .btn .btn-outline-primary .disabled}
74+
6975
## Program Schedule
7076

7177
- **Kickoff:** Feb 1, 2026

0 commit comments

Comments
 (0)