Skip to content

Commit

Permalink
Merge pull request #819 from ashdavies/gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
cortinico authored Aug 9, 2024
2 parents 884e6f1 + 00b7a32 commit 203253f
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h3 class="text-muted">Android Conferences</h3>
{{ content }}

<footer class="footer">
<p><a href="conferences.ics">iCalendar</a> &middot; <a href="https://creativecommons.org/publicdomain/zero/1.0/">CC0</a> &middot; <a href="https://github.com/AndroidStudyGroup/conferences/">GitHub</a></p>
<p><a href="conferences.ics">iCalendar</a> &middot; <a href="upcoming.json">JSON</a> &middot; <a href="https://creativecommons.org/publicdomain/zero/1.0/">CC0</a> &middot; <a href="https://github.com/AndroidStudyGroup/conferences/">GitHub</a></p>
</footer>
</div>
</body>
Expand Down
32 changes: 32 additions & 0 deletions past.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
layout: none
---
[
{%- assign sorted_conferences = site.conferences | sort: 'date_start' | reverse -%}
{%- assign today = site.time | date: "%s" -%}
{%- for conference in sorted_conferences -%}
{%- assign date_end = conference.date_end | date: "%s" -%}
{%- if today >= date_end %}
{
"name": "{{ conference.name }}",
"website": "{{ conference.website }}",
"location": "{{ conference.location }}",
{%- if conference.status %}
"status": "{{ conference.status }}",
{%- endif -%}
{%- if conference.online %}
"online": true,
{%- endif %}
"dateStart": "{{ conference.date_start | date: "%Y-%m-%d" }}",
"dateEnd": "{{ conference.date_end | date: "%Y-%m-%d" }}"
{%- if conference.cfp.start -%},
"cfp": {
"start": "{{ conference.cfp.start | date: "%Y-%m-%d" }}",
"end": "{{ conference.cfp.end | date: "%Y-%m-%d" }}",
"site": "{% if conference.cfp.site %}{{ conference.cfp.site }}{% else %}{{ conference.website }}{% endif %}"
}
{%- endif %}
}{% unless forloop.last %}, {% endunless %}
{%- endif -%}
{%- endfor %}
]
32 changes: 32 additions & 0 deletions upcoming.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
layout: none
---
[
{%- assign sorted_conferences = site.conferences | sort: 'date_start' -%}
{%- assign today = site.time | date: "%s" -%}
{%- for conference in sorted_conferences -%}
{%- assign date_end = conference.date_end | date: "%s" -%}
{%- if today < date_end %}
{
"name": "{{ conference.name }}",
"website": "{{ conference.website }}",
"location": "{{ conference.location }}",
{%- if conference.status %}
"status": "{{ conference.status }}",
{%- endif -%}
{%- if conference.online %}
"online": true,
{%- endif %}
"dateStart": "{{ conference.date_start | date: "%Y-%m-%d" }}",
"dateEnd": "{{ conference.date_end | date: "%Y-%m-%d" }}"
{%- if conference.cfp.start -%},
"cfp": {
"start": "{{ conference.cfp.start | date: "%Y-%m-%d" }}",
"end": "{{ conference.cfp.end | date: "%Y-%m-%d" }}",
"site": "{% if conference.cfp.site %}{{ conference.cfp.site }}{% else %}{{ conference.website }}{% endif %}"
}
{%- endif %}
}{% unless forloop.last %}, {% endunless %}
{%- endif -%}
{%- endfor %}
]

0 comments on commit 203253f

Please sign in to comment.