Skip to content

Commit

Permalink
Update template to satisfy Jessica :)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsetiawan authored and JessicaS11 committed Jan 10, 2022
1 parent 8f5e70a commit f30ecf1
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 11 deletions.
15 changes: 10 additions & 5 deletions book/schedule.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
timezone: UTC -7 (Pacific Daylight Time)
tabs:
- timezone: Pacific
- title: Day 1
date: Wed 12, Oct
contents:
Expand All @@ -10,7 +10,9 @@ tabs:
leads:
- Scott Henderson
- Anthony Arendt
video: https://youtu.be/cHQloxZFtOQ
resources:
- title: "SnowEx Hackweek 2021: Introductory Session"
url: https://youtu.be/cHQloxZFtOQ
- time: 9:30 - 10:00
location: Room A5
title: Coffee Break
Expand All @@ -22,9 +24,12 @@ tabs:
contents:
- time: 1:00 - 2:00 PM
title: Coffee Break
description: more refueling, but with a bulleted list (not sure how to get a colon here)
* item 1
* item 2
description: |
more refueling, but with a bulleted list:
- list1
- list2
- title: Day 3
date: Fri 14, Oct
- title: Day 4
Expand Down
2 changes: 2 additions & 0 deletions conda/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ dependencies:
- mamba
- pip
- sphinxcontrib-bibtex
- pip:
- jinja_markdown
4 changes: 3 additions & 1 deletion cookiecutter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@ footer:
icon_pack: fab
link: https://github.com/uwhackweek/
_copy_without_render:
- assets
- assets
_extensions:
- jinja_markdown.MarkdownExtension
27 changes: 22 additions & 5 deletions {{ cookiecutter.repo_directory }}/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,9 @@ <h5>Interests / Expertise</h5>
{%- if cookiecutter.schedule %}
<section id="schedule-section" class="schedule-section section">
<div class="container">
<h3 class="section-heading text-center mb-5">Schedule</h3>
<h3 class="section-heading text-center mb-1">Schedule</h3>
<h4 class="text-center mb-5"> All times listed below are {{ cookiecutter.schedule.timezone }}.
You might want to consult this <a href="https://www.timeanddate.com/time/map/" target="_blank">Time Zone Map</a> to figure out times in your location.</h4>
{%- if cookiecutter.schedule["tabs"] %}
<!-- Nav tabs -->
<ul class="schedule-nav nav nav-pills nav-fill" id="myTab" role="tablist">
Expand Down Expand Up @@ -335,12 +337,19 @@ <h4 class="time mb-3">{{ content['time'] }}</h4>
<!--//meta-->
<div class="content">
<h3 class="title mb-3">{{ content['title'] }}</h3>
<div class="location mb-3"><i class="fas fa-map-marker-alt me-2"></i>{{ content['location']
}}</div>
<div class="desc">{{ content['description'] }}</div>
{% if 'location' in content %}
<div class="location mb-3"><i class="fas fa-map-marker-alt me-2"></i>
{{ content['location'] }}
</div>
{% endif %}
<div class="desc">
{%- markdown -%}
{{ content['description']|safe }}
{%- endmarkdown -%}
</div>
{%- if 'leads' in content and content['leads']|length > 0 %}
<div class="profile">
<h6 class="mb-1 mt-2"> Tutorial Lead(s)</h4>
<h6 class="mb-1 mt-2"> Tutorial Lead(s)</h6>
{%- for lead in content['leads'] %}
{%- set person = cookiecutter.team['people']|selectattr('title', '==', lead)|list|first %}
{%- set modal_name = person['title']|lower|replace(' ', '--') %}
Expand All @@ -351,6 +360,14 @@ <h6 class="mb-1 mt-2"> Tutorial Lead(s)</h4>
{%- endfor %}
</div>
{%- endif %}
{%- if 'resources' in content and content['resources']|length > 0 %}
<div>
<h6 class="mb-1 mt-2"> Resource(s)</h6>
{%- for resource in content['resources'] %}
<a href="{{resource['url']}}" target="_blank">{{resource['title']}}</a>
{%- endfor %}
</div>
{%- endif -%}
</div>
<!--//content-->
</div>
Expand Down

0 comments on commit f30ecf1

Please sign in to comment.