Skip to content
Snippets Groups Projects
Unverified Commit 283368c5 authored by Tom Wiesing's avatar Tom Wiesing
Browse files

Cleanup include tags

parent dcd18cb9
No related branches found
No related tags found
No related merge requests found
Showing
with 60 additions and 59 deletions
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
{% endcomment %} {% endcomment %}
<li class="collection-item"> <li class="collection-item">
<a href="{{item.url}}" class="title">{{item.title}}</a> <a href="{{include.item.url}}" class="title">{{include.item.title}}</a>
</li> </li>
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
Properly formats the date in yyyy[-mm] format. Properly formats the date in yyyy[-mm] format.
Expects 'date' to be formatted as an argument. Expects 'date' to be formatted as an argument.
{% endcomment %} {% endcomment %}
{% assign dateparts = date | split: "-" %} {% assign dateparts = include.date | split: "-" %}
{% assign year = dateparts[0] %} {% assign year = dateparts[0] %}
{% assign month = dateparts[1] %} {% assign month = dateparts[1] %}
......
...@@ -28,9 +28,9 @@ ...@@ -28,9 +28,9 @@
{% for item in site.menu | sort:"menu_order" %} {% for item in site.menu | sort:"menu_order" %}
{% if (item.folder or item.items) %} {% if (item.folder or item.items) %}
{% include menu_sub.html %} {% include menu_sub.html item=item %}
{% else %} {% else %}
{% include menu_single.html %} {% include menu_single.html item=item %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
\ No newline at end of file
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{% assign base_folder = page.url | split: '/' %} {% assign base_folder = page.url | split: '/' %}
{% assign base_folder = base_folder[1] %} {% assign base_folder = base_folder[1] %}
{% assign represents = item.active | split: '/' %} {% assign represents = include.item.active | split: '/' %}
{% assign represents = represents[1] %} {% assign represents = represents[1] %}
{% if represents %} {% if represents %}
...@@ -16,25 +16,25 @@ ...@@ -16,25 +16,25 @@
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if page.url == item.url %} {% if page.url == include.item.url %}
{% assign menu_active = true %} {% assign menu_active = true %}
{% endif %} {% endif %}
{% unless item.menu_hidden %} {% unless include.item.menu_hidden %}
<li <li
{% if menu_active %}class="active"{% endif %} {% if menu_active %}class="active"{% endif %}
{% if page.url == item.url %}class="active"{% endif %} {% if page.url == include.item.url %}class="active"{% endif %}
> >
{% if item.external %} {% if include.item.external %}
<a href="{{ item.url }}" target="_blank"> <a href="{{ include.item.url }}" target="_blank">
{% else %} {% else %}
<a href="{{ site.baseurl }}{{ item.url }}"> <a href="{{ site.baseurl }}{{ include.item.url }}">
{% endif %} {% endif %}
{% if item.menu_title %} {% if include.item.menu_title %}
{{ item.menu_title }} {{ include.item.menu_title }}
{% else %} {% else %}
{{ item.title }} {{ include.item.title }}
{% endif %} {% endif %}
</a> </a>
</li> </li>
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
It also expects the global 'sorted_pages' argument. It also expects the global 'sorted_pages' argument.
{% endcomment %} {% endcomment %}
{% assign item = include.item %}
{% unless item.menu_hidden %} {% unless item.menu_hidden %}
{% assign base_folder = page.url | split: '/' %} {% assign base_folder = page.url | split: '/' %}
{% assign base_folder = base_folder[1] %} {% assign base_folder = base_folder[1] %}
...@@ -59,7 +61,7 @@ ...@@ -59,7 +61,7 @@
{% assign sub_components = item.url | split: '/' %} {% assign sub_components = item.url | split: '/' %}
{% unless item.hidden %} {% unless item.hidden %}
{% if sub_components[1] == item_folder %} {% if sub_components[1] == item_folder %}
{% include menu_single.html %} {% include menu_single.html item=item %}
{% endif %} {% endif %}
{% endunless %} {% endunless %}
{% endfor %} {% endfor %}
...@@ -68,7 +70,7 @@ ...@@ -68,7 +70,7 @@
<!-- if we have items, iterate over them --> <!-- if we have items, iterate over them -->
{% if item.items %} {% if item.items %}
{% for item in item.items %} {% for item in item.items %}
{% include menu_single.html %} {% include menu_single.html item=item %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</ul> </ul>
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
Expects the default jekyll 'paginator' as argument. Expects the default jekyll 'paginator' as argument.
{% endcomment %} {% endcomment %}
{% assign paginator = paginator %}
<ul class="pagination"> <ul class="pagination">
<!-- The previous page --> <!-- The previous page -->
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
It expects the username of the person as the 'person' variable It expects the username of the person as the 'person' variable
{% endcomment %} {% endcomment %}
{% capture purl %}/people/{{person}}/{% endcapture %} {% capture purl %}/people/{{include.person}}/{% endcapture %}
{% assign pp = site.pages | where: "url", purl | first %} {% assign pp = site.pages | where: "url", purl | first %}
{% if pp %} {% if pp %}
...@@ -15,6 +15,6 @@ ...@@ -15,6 +15,6 @@
</a> </a>
{% else %} {% else %}
<div class="chip"> <div class="chip">
{{person}} {{include.person}}
</div> </div>
{% endif %} {% endif %}
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
Expects 'people' as an argument, representing the list of people to show. Expects 'people' as an argument, representing the list of people to show.
{% endcomment %} {% endcomment %}
{% assign people = include.people %}
{% for role in site.roles %} {% for role in site.roles %}
{% assign rollers = people | where: "role", role.id %} {% assign rollers = people | where: "role", role.id %}
...@@ -19,13 +21,11 @@ ...@@ -19,13 +21,11 @@
{% unless person.end_date %} {% unless person.end_date %}
KWARCie since KWARCie since
{% endunless %} {% endunless %}
{% assign date = person.start_date %} {% include date.html date=person.start_date %}
{% include date.html %}
{% if person.end_date %} {% if person.end_date %}
&nbsp;-&nbsp; &nbsp;-&nbsp;
{% assign date = person.end_date %} {% include date.html date=person.end_date %}
{% include date.html %}
{% endif %} {% endif %}
{% endif %} {% endif %}
</p> </p>
......
...@@ -4,12 +4,11 @@ ...@@ -4,12 +4,11 @@
{% endcomment %} {% endcomment %}
<li class="collection-item"> <li class="collection-item">
<a href="{{post.url}}" class="title"> <a href="{{include.post.url}}" class="title">
{{post.title}} {{post.subtitle}} {{include.post.title}} {{include.post.subtitle}}
</a> </a>
<div> <div>
{% assign post = page %} {% include post_meta.html post=include.post %}
{% include post_meta.html %}
</div> </div>
</li> </li>
\ No newline at end of file
...@@ -5,26 +5,29 @@ ...@@ -5,26 +5,29 @@
by by
{% assign person = post.author %} {% include people_chip.html person=include.post.author %}
{% include people_chip.html %}
on on
<div class="chip"> <div class="chip">
{{ post.date | date_to_string }} {% if include.post.date %}
{{ include.post.date | date_to_string }}
{% else %}
There is no date
{% endif %}
</div> </div>
{% if post.location %} {% if include.post.location %}
at at
<div class="chip"> <div class="chip">
{{post.location}} {{include.post.location}}
</div> </div>
{% endif %} {% endif %}
in in
{% for tag in post.tags %} {% for tag in include.post.tags %}
<div class="chip"> <div class="chip">
{{tag}} {{tag}}
</div> </div>
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
Renders a link to a single project or system. Expects 'item' as a parameter. Renders a link to a single project or system. Expects 'item' as a parameter.
{% endcomment %} {% endcomment %}
{% assign item = include.item %}
<li class="collection-item"> <li class="collection-item">
<a href="{{item.url}}" class="title">{{item.title}}</a> <a href="{{item.url}}" class="title">{{item.title}}</a>
{% if item.funding %} ({{item.funding}}) {% endif %} {% if item.funding %} ({{item.funding}}) {% endif %}
...@@ -12,13 +14,11 @@ ...@@ -12,13 +14,11 @@
{% unless item.end_date %} {% unless item.end_date %}
<b>started</b> <b>started</b>
{% endunless %} {% endunless %}
{% assign date = item.start_date %} {% include date.html date=item.start_date %}
{% include date.html %}
{% if item.end_date %} {% if item.end_date %}
&nbsp;-&nbsp; &nbsp;-&nbsp;
{% assign date = item.end_date %} {% include date.html date=item.end_date %}
{% include date.html %}
{% endif %} {% endif %}
<br /> <br />
{% endif %} {% endif %}
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
Renders the name of a single semester. Expects 'semester' as a parameter. Renders the name of a single semester. Expects 'semester' as a parameter.
{% endcomment %} {% endcomment %}
{% assign semester = include.semester %}
<!-- check if we are a summer semester --> <!-- check if we are a summer semester -->
{% assign nosummer = semester | remove: "SS" %} {% assign nosummer = semester | remove: "SS" %}
{% unless nosummer == semester %} {% unless nosummer == semester %}
......
...@@ -8,7 +8,7 @@ layout: default ...@@ -8,7 +8,7 @@ layout: default
<div class="card-content"> <div class="card-content">
<span class="card-title">{{page.title}}</span> <span class="card-title">{{page.title}}</span>
{% for person in page.instructors %} {% for person in page.instructors %}
{% include people_chip.html %} {% include people_chip.html person=person %}
{% endfor %} {% endfor %}
<hr /> <hr />
...@@ -17,7 +17,7 @@ layout: default ...@@ -17,7 +17,7 @@ layout: default
{% endif %} {% endif %}
{% for semester in page.semesters %} {% for semester in page.semesters %}
{% include semester.html %}<br /> {% include semester.html semester=semester %}<br />
{% endfor %} {% endfor %}
</div> </div>
</div> </div>
......
...@@ -24,13 +24,11 @@ layout: default ...@@ -24,13 +24,11 @@ layout: default
since since
{% endunless %} {% endunless %}
{% assign date = page.start_date %} {% include date.html date=page.start_date %}
{% include date.html %}
{% if page.end_date %} {% if page.end_date %}
&nbsp;-&nbsp; &nbsp;-&nbsp;
{% assign date = page.end_date %} {% include date.html date=page.end_date %}
{% include date.html %}
{% endif %} {% endif %}
{% endif %} {% endif %}
......
...@@ -11,8 +11,7 @@ layout: default ...@@ -11,8 +11,7 @@ layout: default
</span> </span>
{% if post.subtitle %}<h6>{{post.subtitle}}</h6>{% endif %} {% if post.subtitle %}<h6>{{post.subtitle}}</h6>{% endif %}
{% assign post = page %} {% include post_meta.html post=page %}
{% include post_meta.html %}
</div> </div>
</div> </div>
......
...@@ -13,14 +13,12 @@ layout: default ...@@ -13,14 +13,12 @@ layout: default
{% if page.start_date %} {% if page.start_date %}
<p> <p>
<b>From:</b> <b>From:</b>
{% assign date = page.start_date %} {% include date.html date=page.start_date %}
{% include date.html %}
{% if page.end_date %} {% if page.end_date %}
<br /> <br />
<b>To:</b> <b>To:</b>
{% assign date = page.end_date %} {% include date.html date=page.end_date %}
{% include date.html %}
{% endif %} {% endif %}
</p> </p>
<hr /> <hr />
...@@ -56,7 +54,7 @@ layout: default ...@@ -56,7 +54,7 @@ layout: default
<!-- list all the people --> <!-- list all the people -->
{% for person in page.people %} {% for person in page.people %}
{% include people_chip.html %} {% include people_chip.html person=person %}
{% assign needs_break = true %} {% assign needs_break = true %}
{% endfor %} {% endfor %}
......
...@@ -13,14 +13,12 @@ layout: default ...@@ -13,14 +13,12 @@ layout: default
{% if page.start_date %} {% if page.start_date %}
<p> <p>
<b>Start:</b> <b>Start:</b>
{% assign date = page.start_date %} {% include date.html date=page.start_date %}
{% include date.html %}
{% if page.end_date %} {% if page.end_date %}
<br /> <br />
<b>End:</b> <b>End:</b>
{% assign date = page.end_date %} {% include date.html date=page.end_date %}
{% include date.html %}
{% endif %} {% endif %}
</p> </p>
<hr /> <hr />
...@@ -38,7 +36,7 @@ layout: default ...@@ -38,7 +36,7 @@ layout: default
{% endif %} {% endif %}
{% for person in page.people %} {% for person in page.people %}
{% include people_chip.html %} {% include people_chip.html person=person %}
{% endfor %} {% endfor %}
</div> </div>
{% assign hasaction = false %} {% assign hasaction = false %}
......
...@@ -5,4 +5,4 @@ title: KWARC established at FAU ...@@ -5,4 +5,4 @@ title: KWARC established at FAU
tags: tags:
- Announcements - Announcements
--- ---
With Dennis Müller movint to Erlangen, we have (the beginnings of) a group presence at FAU. The Winter semester begins later this month with an AI course. With Dennis Müller moving to Erlangen, we have (the beginnings of) a group presence at FAU. The Winter semester begins later this month with an AI course.
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