Unverified Commit 8bb0b8e7 authored by Akshay S Dinesh's avatar Akshay S Dinesh
Browse files

refactor: Move schedule into data files

By doing so, we can make it easier to edit schedule without worrying
about closing all opened tags, etc.

Uses:
- https://gohugo.io/templates/data-templates/
- https://gohugo.io/templates/shortcode-templates/
parent 1a49a285
......@@ -11,12 +11,7 @@ aliases:
<tr>
<th scope="row">Start date</th><th scope="row">Camp Phase</th>
</tr>
<tr><td>Sep 18 to 05 Nov 2021 (extended from October 15) </td><td>Registrations</td></tr>
<tr><td>12 to 19th November 2021 </td><td>Ice Breaking Sessions</td></tr>
<tr><td>20 to 29th November 2021</td><td>Introduction to Free Software phase</td></tr>
<tr><td>30 November to 9th December 2021</td><td>GNU/Linux installation phase</td></tr>
<tr><td>10 to 19th December 2021</td><td>Various ways of contributions</td></tr>
<tr><td>20 December 2021 to 31 March 2022</td><td>Mentoring phase</td></tr>
{{< schedule >}}
</tbody>
</table>
......@@ -30,7 +25,7 @@ aliases:
<tr>
<th scope="row">Date</th><th scope="row">Session</th><th>Location</th>
</tr>
<tr><td>23 November 2021, 3:30 PM - 4:30 PM (IST)</td><td><a href="https://nitter.1d4.us/michael_from_uk">Mike Saunders</a> from <a href="https://www.libreoffice.org">LibreOffice</td><td>https://meet.gnome.org/sof-gpf-pqi-qw7</td></tr>
{{< talks >}}
</tbody>
</table>
......
{
"schedule": [
["Sep 18 to 05 Nov 2021 (extended from October 15) ", "Registrations"],
["12 to 19th November 2021 ", "Ice Breaking Sessions"],
["20 to 29th November 2021", "Introduction to Free Software phase"],
["30 November to 9th December 2021", "GNU/Linux installation phase"],
["10 to 19th December 2021", "Various ways of contributions"],
["20 December 2021 to 31 March 2022", "Mentoring phase"]
],
"talks": [
[
"23 November 2021, 3:30 PM - 4:30 PM (IST)",
"<a href=\"https://nitter.1d4.us/michael_from_uk\">Mike Saunders</a> from <a href=\"https://www.libreoffice.org\">LibreOffice",
"https://meet.gnome.org/sof-gpf-pqi-qw7"
]
]
}
{{ range .Site.Data.schedule.schedule }}
<tr>
{{ range . }}
<td>{{ . }}</td>
{{ end }}
</tr>
{{ end }}
\ No newline at end of file
{{ range .Site.Data.schedule.talks }}
<tr>
<td>{{ index . 0 }}</td>
<td>{{ safeHTML (index . 1) }}</td>
<td><a href="{{ index . 2 }}">{{ index . 2 }}</a></td>
</tr>
{{ end }}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment