Skip to content
Snippets Groups Projects
Commit 88ff0a5f authored by Julien Schmidt's avatar Julien Schmidt
Browse files

make office hours a shortcode

parent 96f7f1dc
No related branches found
No related tags found
No related merge requests found
......@@ -39,14 +39,7 @@
{{ block "main" . }}{{.Content}}{{ end }}
</div>
</main>
<aside>
<h3>Next Office Hours</h3><!-- TODO: translate -->
<ul>
{{ range getJSON "https://sprechstunden.stusta.mhn.de/appointments.json"}}
<li>{{ dateFormat "Monday, Jan 2, 2006 15:04" (int .start) }}-{{ dateFormat "15:04" (int .end) }}</li>
{{ end }}
</ul>
</aside>
<footer>
<div class="container">
<div class="editPage">
......
<ul>
{{ range getJSON "https://sprechstunden.stusta.de/appointments.json"}}
<li>{{ dateFormat "Monday, Jan 2, 2006 15:04" (int .start) }}-{{ dateFormat "15:04" (int .end) }}</li>
{{ end }}
</ul>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment