diff --git a/_includes/course.html b/_includes/course.html index 86d8d431f2535ef6caa58e38116d6baad1adf0d5..e64be1a008c3ae24f9ad1a178f99a8bb8a6a3c00 100644 --- a/_includes/course.html +++ b/_includes/course.html @@ -3,5 +3,5 @@ {% endcomment %} <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> \ No newline at end of file diff --git a/_includes/date.html b/_includes/date.html index 7bd201e1e978433feb6bb6a25278d683f8865ac0..9cf3afa4c4ec81d20203bdd8d8f7034c06eda8eb 100644 --- a/_includes/date.html +++ b/_includes/date.html @@ -2,7 +2,7 @@ Properly formats the date in yyyy[-mm] format. Expects 'date' to be formatted as an argument. {% endcomment %} -{% assign dateparts = date | split: "-" %} +{% assign dateparts = include.date | split: "-" %} {% assign year = dateparts[0] %} {% assign month = dateparts[1] %} diff --git a/_includes/header.html b/_includes/header.html index 0307a4b16a639a583bcedb0b2179220c7cce5d12..456ff2b557014068540be0052f9fcfa56df62f05 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -28,9 +28,9 @@ {% for item in site.menu | sort:"menu_order" %} {% if (item.folder or item.items) %} - {% include menu_sub.html %} + {% include menu_sub.html item=item %} {% else %} - {% include menu_single.html %} + {% include menu_single.html item=item %} {% endif %} {% endfor %} </ul> \ No newline at end of file diff --git a/_includes/menu_single.html b/_includes/menu_single.html index 4e8b3c7fe36f934d1a2c25a5627a785ba8c34644..139433df984f650cbdfc39bc19c26f0ad9b7e7a4 100644 --- a/_includes/menu_single.html +++ b/_includes/menu_single.html @@ -7,7 +7,7 @@ {% assign base_folder = page.url | split: '/' %} {% assign base_folder = base_folder[1] %} -{% assign represents = item.active | split: '/' %} +{% assign represents = include.item.active | split: '/' %} {% assign represents = represents[1] %} {% if represents %} @@ -16,25 +16,25 @@ {% endif %} {% endif %} -{% if page.url == item.url %} +{% if page.url == include.item.url %} {% assign menu_active = true %} {% endif %} -{% unless item.menu_hidden %} +{% unless include.item.menu_hidden %} <li {% 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 %} - <a href="{{ item.url }}" target="_blank"> + {% if include.item.external %} + <a href="{{ include.item.url }}" target="_blank"> {% else %} - <a href="{{ site.baseurl }}{{ item.url }}"> + <a href="{{ site.baseurl }}{{ include.item.url }}"> {% endif %} - {% if item.menu_title %} - {{ item.menu_title }} + {% if include.item.menu_title %} + {{ include.item.menu_title }} {% else %} - {{ item.title }} + {{ include.item.title }} {% endif %} </a> </li> diff --git a/_includes/menu_sub.html b/_includes/menu_sub.html index 4b4210bc3e346bfeb821af73edc7477f1dae240e..190d1593c62fd7dfeae0b2c53168f5fe613d5ba1 100644 --- a/_includes/menu_sub.html +++ b/_includes/menu_sub.html @@ -4,6 +4,8 @@ It also expects the global 'sorted_pages' argument. {% endcomment %} +{% assign item = include.item %} + {% unless item.menu_hidden %} {% assign base_folder = page.url | split: '/' %} {% assign base_folder = base_folder[1] %} @@ -59,7 +61,7 @@ {% assign sub_components = item.url | split: '/' %} {% unless item.hidden %} {% if sub_components[1] == item_folder %} - {% include menu_single.html %} + {% include menu_single.html item=item %} {% endif %} {% endunless %} {% endfor %} @@ -68,7 +70,7 @@ <!-- if we have items, iterate over them --> {% if item.items %} {% for item in item.items %} - {% include menu_single.html %} + {% include menu_single.html item=item %} {% endfor %} {% endif %} </ul> diff --git a/_includes/pagination.html b/_includes/pagination.html index 029e2e8028b4c555c0bb265e39bcfb6e8d0c7349..1952cb5f4165fc185497f2445a26392be62e18a0 100644 --- a/_includes/pagination.html +++ b/_includes/pagination.html @@ -3,6 +3,8 @@ Expects the default jekyll 'paginator' as argument. {% endcomment %} +{% assign paginator = paginator %} + <ul class="pagination"> <!-- The previous page --> diff --git a/_includes/people_chip.html b/_includes/people_chip.html index c2a98d601dec096538930aa375fb6458bd04ee11..adf170a909e35283b0f7d479639347141bf8d465 100644 --- a/_includes/people_chip.html +++ b/_includes/people_chip.html @@ -3,7 +3,7 @@ It expects the username of the person as the 'person' variable {% endcomment %} -{% capture purl %}/people/{{person}}/{% endcapture %} +{% capture purl %}/people/{{include.person}}/{% endcapture %} {% assign pp = site.pages | where: "url", purl | first %} {% if pp %} @@ -15,6 +15,6 @@ </a> {% else %} <div class="chip"> - {{person}} + {{include.person}} </div> {% endif %} diff --git a/_includes/people_list.html b/_includes/people_list.html index 4406d4c3d652aecc64e5eabea7b609a0e4abf408..50078c3c06efd49697791aee0dfb23bea41286be 100644 --- a/_includes/people_list.html +++ b/_includes/people_list.html @@ -3,6 +3,8 @@ Expects 'people' as an argument, representing the list of people to show. {% endcomment %} +{% assign people = include.people %} + {% for role in site.roles %} {% assign rollers = people | where: "role", role.id %} @@ -19,13 +21,11 @@ {% unless person.end_date %} KWARCie since {% endunless %} - {% assign date = person.start_date %} - {% include date.html %} + {% include date.html date=person.start_date %} {% if person.end_date %} - - {% assign date = person.end_date %} - {% include date.html %} + {% include date.html date=person.end_date %} {% endif %} {% endif %} </p> diff --git a/_includes/post_link.html b/_includes/post_link.html index 497c599a2e9e5e3e2f6be9405c81f1e8b1592762..276bdd200839201636974c501b4a1cbd1d6f465b 100644 --- a/_includes/post_link.html +++ b/_includes/post_link.html @@ -4,12 +4,11 @@ {% endcomment %} <li class="collection-item"> - <a href="{{post.url}}" class="title"> - {{post.title}} {{post.subtitle}} + <a href="{{include.post.url}}" class="title"> + {{include.post.title}} {{include.post.subtitle}} </a> <div> - {% assign post = page %} - {% include post_meta.html %} + {% include post_meta.html post=include.post %} </div> </li> \ No newline at end of file diff --git a/_includes/post_meta.html b/_includes/post_meta.html index f887c79a30034a50fd71c34850322ce3a2d7731a..ee14b5a52167a4279c684966a7cbae5f6313fd9c 100644 --- a/_includes/post_meta.html +++ b/_includes/post_meta.html @@ -5,26 +5,29 @@ by -{% assign person = post.author %} -{% include people_chip.html %} +{% include people_chip.html person=include.post.author %} on <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> -{% if post.location %} +{% if include.post.location %} at <div class="chip"> - {{post.location}} + {{include.post.location}} </div> {% endif %} in -{% for tag in post.tags %} +{% for tag in include.post.tags %} <div class="chip"> {{tag}} </div> diff --git a/_includes/psitem.html b/_includes/psitem.html index 8958be14ea97f9b0c901d2eae0119357bf62fe1e..5fd70221d931950b81692a196bd1e7f1a14634d3 100644 --- a/_includes/psitem.html +++ b/_includes/psitem.html @@ -2,6 +2,8 @@ Renders a link to a single project or system. Expects 'item' as a parameter. {% endcomment %} +{% assign item = include.item %} + <li class="collection-item"> <a href="{{item.url}}" class="title">{{item.title}}</a> {% if item.funding %} ({{item.funding}}) {% endif %} @@ -12,13 +14,11 @@ {% unless item.end_date %} <b>started</b> {% endunless %} - {% assign date = item.start_date %} - {% include date.html %} + {% include date.html date=item.start_date %} {% if item.end_date %} - - {% assign date = item.end_date %} - {% include date.html %} + {% include date.html date=item.end_date %} {% endif %} <br /> {% endif %} diff --git a/_includes/semester.html b/_includes/semester.html index c3095c48f14b94e27f314db18666b5ca69e20e74..a2cd1c8f1e5c0563c1926e6dd6320552bfac9f95 100644 --- a/_includes/semester.html +++ b/_includes/semester.html @@ -2,6 +2,8 @@ Renders the name of a single semester. Expects 'semester' as a parameter. {% endcomment %} +{% assign semester = include.semester %} + <!-- check if we are a summer semester --> {% assign nosummer = semester | remove: "SS" %} {% unless nosummer == semester %} diff --git a/_layouts/course.html b/_layouts/course.html index b4de0ab17e04120b1d861625c82646d541b0fbac..746c2b9391e0fdf8224624f89c81230334fb1e4e 100644 --- a/_layouts/course.html +++ b/_layouts/course.html @@ -8,7 +8,7 @@ layout: default <div class="card-content"> <span class="card-title">{{page.title}}</span> {% for person in page.instructors %} - {% include people_chip.html %} + {% include people_chip.html person=person %} {% endfor %} <hr /> @@ -17,7 +17,7 @@ layout: default {% endif %} {% for semester in page.semesters %} - {% include semester.html %}<br /> + {% include semester.html semester=semester %}<br /> {% endfor %} </div> </div> diff --git a/_layouts/person.html b/_layouts/person.html index 84290a54f1f2bce7d43274e40341b513c44fdc64..6037979874020503e05fac423ae0b1af41aed3d1 100644 --- a/_layouts/person.html +++ b/_layouts/person.html @@ -24,13 +24,11 @@ layout: default since {% endunless %} - {% assign date = page.start_date %} - {% include date.html %} + {% include date.html date=page.start_date %} {% if page.end_date %} - - {% assign date = page.end_date %} - {% include date.html %} + {% include date.html date=page.end_date %} {% endif %} {% endif %} diff --git a/_layouts/post.html b/_layouts/post.html index 153ca21ddd8661d8f901d30ce7f3c44dea6134bb..3379a55ab22a7759c0fb452052ca547c32c55fc4 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -11,8 +11,7 @@ layout: default </span> {% if post.subtitle %}<h6>{{post.subtitle}}</h6>{% endif %} - {% assign post = page %} - {% include post_meta.html %} + {% include post_meta.html post=page %} </div> </div> diff --git a/_layouts/project.html b/_layouts/project.html index d9dc83382435ce7390c5a619deb5c9245a62bb33..90609793f157912bea8a7b19527d61ac89c7614b 100644 --- a/_layouts/project.html +++ b/_layouts/project.html @@ -13,14 +13,12 @@ layout: default {% if page.start_date %} <p> <b>From:</b> - {% assign date = page.start_date %} - {% include date.html %} + {% include date.html date=page.start_date %} {% if page.end_date %} - <br /> - <b>To:</b> - {% assign date = page.end_date %} - {% include date.html %} + <br /> + <b>To:</b> + {% include date.html date=page.end_date %} {% endif %} </p> <hr /> @@ -56,7 +54,7 @@ layout: default <!-- list all the people --> {% for person in page.people %} - {% include people_chip.html %} + {% include people_chip.html person=person %} {% assign needs_break = true %} {% endfor %} diff --git a/_layouts/system.html b/_layouts/system.html index d86e34f5a9aa4a457a773ee7834698b58c4bb3ce..9b7aba1c606fb5b194335a7e8d87f4f70450cc55 100644 --- a/_layouts/system.html +++ b/_layouts/system.html @@ -13,14 +13,12 @@ layout: default {% if page.start_date %} <p> <b>Start:</b> - {% assign date = page.start_date %} - {% include date.html %} + {% include date.html date=page.start_date %} {% if page.end_date %} - <br /> - <b>End:</b> - {% assign date = page.end_date %} - {% include date.html %} + <br /> + <b>End:</b> + {% include date.html date=page.end_date %} {% endif %} </p> <hr /> @@ -38,7 +36,7 @@ layout: default {% endif %} {% for person in page.people %} - {% include people_chip.html %} + {% include people_chip.html person=person %} {% endfor %} </div> {% assign hasaction = false %} diff --git a/_posts/2015-05-08OpenDreamKit.md b/_posts/2015-05-08-OpenDreamKit.md similarity index 100% rename from _posts/2015-05-08OpenDreamKit.md rename to _posts/2015-05-08-OpenDreamKit.md diff --git a/_posts/2015-07-22-New-Demo-OEIS b/_posts/2015-07-22-New-Demo-OEIS.md similarity index 100% rename from _posts/2015-07-22-New-Demo-OEIS rename to _posts/2015-07-22-New-Demo-OEIS.md diff --git a/_posts/2016-10-01-KWARC-established.md b/_posts/2016-10-01-KWARC-established.md index 6691f12cac07a3e586ca51131e6501699a50cc5b..8d3721c4fff74bdc3007b8eccac859f4fd461bd3 100644 --- a/_posts/2016-10-01-KWARC-established.md +++ b/_posts/2016-10-01-KWARC-established.md @@ -5,4 +5,4 @@ title: KWARC established at FAU tags: - 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. diff --git a/_posts/2016-10-01.md b/_posts/2016-10-01.md deleted file mode 100644 index 604de9e5345f4815773deaebd7c65f153fe1b794..0000000000000000000000000000000000000000 --- a/_posts/2016-10-01.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -layout: post -author: mkohlhase -title: KWARC established at FAU -tags: - - Announcements ---- -With Dennis Müller moving to Erlangen, we have (the beginnings of) a group presence at FAU. diff --git a/courses/meta/former.html b/courses/meta/former.html index bda4e3f2d95101453c2a8c662a8d55c3bce5ddab..8ab97de9fc90edbf2ccb6bfa1cbe1b6f14f24164 100644 --- a/courses/meta/former.html +++ b/courses/meta/former.html @@ -13,10 +13,10 @@ The courses given by the KWARC group in the last semesters: {% if offers.size > 0%} <ul class="collection with-header"> - <li class="collection-header"><h5>{% include semester.html %}</h5></li> + <li class="collection-header"><h5>{% include semester.html semester=semester %}</h5></li> {% for item in offers %} - {% include course.html %} + {% include course.html item=item %} {% endfor %} </ul> {% endif %} diff --git a/courses/meta/index.html b/courses/meta/index.html index bc2a1b17870993866c4d179d829ee17811455fd9..89609bbcdfa754b6d689577c28dce8a631290029 100644 --- a/courses/meta/index.html +++ b/courses/meta/index.html @@ -9,7 +9,7 @@ permalink: /courses/ <ul class="collection"> {% for item in courses %} {% if item.semesters contains site.semesters.current %} - {% include course.html %} + {% include course.html item=item %} {% endif %} {% endfor %} </ul> diff --git a/courses/meta/upcoming.html b/courses/meta/upcoming.html index 19de1c6b1543b81bb4385a78e0861b3bd23213ae..aeb92c2b87415081e469dfe60289769b6911bc4c 100644 --- a/courses/meta/upcoming.html +++ b/courses/meta/upcoming.html @@ -10,7 +10,7 @@ The courses in the upcoming semester: {{site.upcoming}} <ul class="collection"> {% for item in courses %} {% if item.semesters contains site.semesters.upcoming %} - {% include course.html %} + {% include course.html item=item %} {% endif %} {% endfor %} </ul> diff --git a/index.md b/index.md index e4a9f34fdb4ae0e150958eccd8ea52dca04e0d0e..ac366e10b276b70defb800e69875285a206b81a4 100644 --- a/index.md +++ b/index.md @@ -15,6 +15,6 @@ This level of markup allows for offering interesting [knowledge management servi <ul class="collection"> {% for post in site.posts limit:5 %} - {% include post_link.html %} + {% include post_link.html post=post %} {% endfor %} </ul> diff --git a/news/index.html b/news/index.html index 62ef54906601e45ea7f478b9d3ba4d8b767d6cb8..66240a8799682b05fcce033a055c30228da637f3 100644 --- a/news/index.html +++ b/news/index.html @@ -7,9 +7,9 @@ source: _posts/ <div class="posts"> <ul class="collection"> {% for post in paginator.posts %} - {% include post_link.html %} + {% include post_link.html post=post %} {% endfor %} </ul> </div> -{% include pagination.html %} \ No newline at end of file +{% include pagination.html paginator=paginator %} \ No newline at end of file diff --git a/people/meta/current.html b/people/meta/current.html index 6a3c519598c6ab8d5876288562ea393d71d06ae4..abdad5d8352e01e41b4dcda85ea057e4bfb27a4a 100644 --- a/people/meta/current.html +++ b/people/meta/current.html @@ -10,4 +10,4 @@ permalink: /people/ <p>This page lists the current members of the KWARC group (<a href="former.html">former members</a>).</p> -{% include people_list.html %} +{% include people_list.html people=people %} diff --git a/people/meta/former.html b/people/meta/former.html index f1202ff65abf778f107805d13bc470893954967c..9098385c358f55ba3f145c6b4ab6848bb7cb7b8b 100644 --- a/people/meta/former.html +++ b/people/meta/former.html @@ -11,4 +11,4 @@ permalink: /people/former/ members</a>). We are very proud of our alumni; if you are one, please keep in touch. </p> -{% include people_list.html %} +{% include people_list.html people=people %} diff --git a/projects/meta/completed.md b/projects/meta/completed.md index 9ec6dab6b11b36b89f7cd5a498671592965b69f4..f251df2b2dc70340c40a0db72eb1fdec341437b0 100644 --- a/projects/meta/completed.md +++ b/projects/meta/completed.md @@ -10,7 +10,7 @@ permalink: /projects/completed/ <ul class="collection"> {% for item in projects %} - {% if item.funding %} {% include psitem.html %} {% endif %} + {% if item.funding %} {% include psitem.html item=item %} {% endif %} {% endfor %} </ul> @@ -19,7 +19,7 @@ We also organize some of our research and development into Projects, <ul class="collection"> {% for item in projects %} - {% unless item.funding %} {% include psitem.html %} {% endunless %} + {% unless item.funding %} {% include psitem.html item=item %} {% endunless %} {% endfor %} </ul> diff --git a/projects/meta/index.md b/projects/meta/index.md index 339b5cba23818c1640d6e5bcda65db55cba67b56..11ec46e927d6bada7980e2fd65dc17d04910a758 100644 --- a/projects/meta/index.md +++ b/projects/meta/index.md @@ -11,7 +11,7 @@ permalink: /projects/ <ul class="collection"> {% for item in projects %} {% unless item.funding == 'internal' %} - {% include psitem.html %} + {% include psitem.html item=item %} {% endunless %} {% endfor %} </ul> @@ -24,7 +24,7 @@ external researchers: <ul class="collection"> {% for item in projects %} {% if item.funding == 'internal' %} - {% include psitem.html %} + {% include psitem.html item=item %} {% endif %} {% endfor %} </ul> diff --git a/systems/meta/historic.md b/systems/meta/historic.md index 999fded29d0f3953a08e33fb5faf5172ba4630cb..49b32e119f217de0adddc5597c664d0e42b99123 100644 --- a/systems/meta/historic.md +++ b/systems/meta/historic.md @@ -15,7 +15,7 @@ Interoperability and to establish scientific Communities of Practice. <ul class="collection"> {% for item in systems %} {% if item.end_date %} - {% include psitem.html %} + {% include psitem.html item=item %} {% endif %} {% endfor %} </ul> \ No newline at end of file diff --git a/systems/meta/index.md b/systems/meta/index.md index 344ce75730eaff1b727f7546963a206da40e635b..c0a7aa9e7b19300873380b5b6b8c268ba8bbfa9a 100644 --- a/systems/meta/index.md +++ b/systems/meta/index.md @@ -9,7 +9,7 @@ permalink: /systems/ <ul class="collection"> {% for item in systems %} {% unless item.end_date %} - {% include psitem.html %} + {% include psitem.html item=item %} {% endunless %} {% endfor %} </ul> diff --git a/systems/meta/orphans.md b/systems/meta/orphans.md index 8a8bb8ac9984e7a5eb5327b75182b7b4c9f261d0..4c913f23e512aec74959a581350576b510e5e3ea 100644 --- a/systems/meta/orphans.md +++ b/systems/meta/orphans.md @@ -14,7 +14,7 @@ happy to help you understand the development opportunities and get involved. <ul class="collection"> {% for item in systems %} {% if item.orphan %} - {% include psitem.html %} + {% include psitem.html item=item %} {% endif %} {% endfor %} </ul> \ No newline at end of file