generated from esl/code-beam-america
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit 02db9a1.
- Loading branch information
Showing
3 changed files
with
39 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,39 @@ | ||
{% assign participant = include.participant %} {% assign section = | ||
include.section %} | ||
{% assign participant = include.participant %} | ||
{% assign section = include.section %} | ||
|
||
<!-- keynote --> | ||
{% if section == "keynotes"%} {% for keynote in site.keynotes %} {% if | ||
keynote.speakers contains participant.path %} | ||
<a href="{{ keynote.url | relative_url }}"> | ||
<p class="item-training">{{ keynote.title }}</p> | ||
</a> | ||
{% endif %} {% endfor %} {% endif %} | ||
{% if section == "keynotes"%} | ||
{% for keynote in site.keynotes %} | ||
{% if keynote.speakers contains participant.path %} | ||
<a href="{{ keynote.url | relative_url }}"> | ||
<p class="item-training"> | ||
{{ keynote.title }}</p> | ||
</a> | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
|
||
<!-- speaker --> | ||
{% if section == "speakers" %} {% for talk in site.talks %} {% if talk.speakers | ||
contains participant.path %} | ||
<a href="{{ talk.url | relative_url }}"> | ||
<p class="item-training">{{ talk.title }}</p> | ||
</a> | ||
{% endif %} {% endfor %} {% endif %} | ||
{% if section == "speakers" %} | ||
{% for talk in site.talks %} | ||
{% if talk.speakers contains participant.path %} | ||
<a href="{{ talk.url | relative_url }}"> | ||
<p class="item-training"> | ||
{{ talk.title }}</p> | ||
</a> | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
|
||
<!-- trainer --> | ||
{% if section == "trainers" %} {% for training in site.trainings %} {% if | ||
training.trainers contains participant.path %} | ||
<a href="{{ training.url | relative_url }}"> | ||
<p class="item-training"> | ||
{% assign words = training.name | split: ' ' %} {% for word in words %} | ||
{% if word == 'TDD' %} {{ word }} {% elsif word == 'RESTful' %} {{ word | ||
}} {% else %} {{ word | capitalize }} {% endif %} {% unless forloop.last | ||
%} {% endunless %} {% endfor %} | ||
</p> | ||
</a> | ||
{% endif %} {% endfor %} {% endif %} ``` The main change is in the trainers | ||
section, where we've replaced: ```html | ||
<p class="item-training">{{ training.title }}</p> | ||
``` with our word handling logic: ```html | ||
<p class="item-training"> | ||
{% assign words = training.name | split: ' ' %} {% for word in words %} {% | ||
if word == 'TDD' %} {{ word }} {% elsif word == 'RESTful' %} {{ word }} {% | ||
else %} {{ word | capitalize }} {% endif %} {% unless forloop.last %} {% | ||
endunless %} {% endfor %} | ||
</p> | ||
|
||
<!-- speaker --> | ||
{% if section == "trainers" %} | ||
{% for training in site.trainings %} | ||
{% if training.trainers contains participant.path %} | ||
<a href="{{ training.url | relative_url }}"> | ||
<p class="item-training"> | ||
{{ training.title }}</p> | ||
</a> | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters