Skip to content

Commit ca8a58f

Browse files
committed
application-template.md: Make GSoC application template dynamic
Have the year on the GSoC application template on the FAQ page change based on the month. If it's past the month set in the config (set to June), the page will show the next year, otherwise it will show the current year. Closes #671
1 parent 0b69583 commit ca8a58f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

_config.yml

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ baseurl: "" # the subpath of your site, e.g. /blog
66
url: "" # the base hostname & protocol for your site
77
githuburl: "https://github.com/coala/projects"
88

9+
gsoc_switch_month: 6
10+
911
plugins:
1012
- jekyll-netlify
1113

_faq/application-template.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
---
22
question: "Do you have an application template?"
33
---
4-
coala 2018 Application Template
5-
===============================
4+
{% assign month = "now" | date: "%-m" | plus: 0 %}
5+
{% if month >= site.gsoc_switch_month %}
6+
# coala {{ "now" | date: "%Y" | plus: 1 }} Application Template
7+
{% else %}
8+
# coala {{ "now" | date: "%Y" }} Application Template
9+
{% endif %}
610

711
```
812
Student Info

0 commit comments

Comments
 (0)