Skip to content

Commit

Permalink
Finish adding Scouting at Home section.
Browse files Browse the repository at this point in the history
  • Loading branch information
petroffc committed Apr 29, 2020
1 parent 6f7d00b commit d86c577
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Ignore built site
_site/
Gemfile
Gemfile.lock
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ url: http://campworkcoeman.org
collections:
sahposts:
output: true
permalink: /scouting-at-home/:year/:month/:day/:title/
1 change: 1 addition & 0 deletions _includes/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
<li><a href="{{ site.url }}/get-involved/campmasters/">Campmasters</a></li>
</ul>
</li>
<li><a href="{{ site.url }}/scouting-at-home/">Scouting at Home</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
Expand Down
7 changes: 7 additions & 0 deletions _layouts/scouting-at-home.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ <h1>{{ page.title }}</h1>
<div class="col-sm-4" id="sidebar" role="navigation">
<h4>Scouting at Home Activities</h4>
<div class="list-group">
{% for p in site.sahposts %}
{% if page.url == p.url %}
<a href="{{ site.url }}{{ p.url }}" class="list-group-item active">{{ p.title }}</a>
{% else %}
<a href="{{ site.url }}{{ p.url }}" class="list-group-item">{{ p.title }} <span class="post-date-home">{{ p.date | date_to_string }}</span></a>
{% endif %}
{% endfor %}
{% for i in (1..scouting-at-home_count) %}
{% for p in site.sahposts %}
{% if p.layout == 'scouting-at-home' and p.number == i %}
Expand Down
4 changes: 2 additions & 2 deletions scouting-at-home/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<div class="jumbotron">
<h1>Scouting at Home</h1>
<p>In light of these unprecedented times with camp closed due to COVID-19 restrictions, Camp Workcoeman presents Scouting at Home activities to stay connected to camp. These activities were originally posted to camp social media channels and reside here in a central repository.</p>
<p>In light of these unprecedented times with camp closed due to COVID-19 restrictions, Camp Workcoeman presents <em>Scouting at Home</em> activities to stay connected to camp. These activities were originally posted to camp social media channels and reside here in a central repository.</p>
<p>
<a class="btn btn-lg btn-primary" href="{{ site.url }}/scouting-at-home/2020/03/22/virtual-hike/" role="button">Start at the beginning &raquo;</a>
</p>
Expand All @@ -33,7 +33,7 @@ <h1>Scouting at Home</h1>
<div class="col-6 col-sm-6 col-lg-4">
<h2>{{ p.title }}</h2>
<div class="post-date">
{{ page.date | date_to_string }}
{{ p.date | date_to_string }}
</div>
{{ p.content | markdownify | strip_html | truncatewords: 40}}</p>
<p><a class="btn btn-default" href="{{ site.url }}{{ p.url }}" role="button">Read more &raquo;</a></p>
Expand Down

0 comments on commit d86c577

Please sign in to comment.