Skip to content

Commit

Permalink
Update chapter sections with the ions
Browse files Browse the repository at this point in the history
  • Loading branch information
lukefretwell committed Nov 8, 2024
1 parent 4628a0b commit dc9d738
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 37 deletions.
4 changes: 2 additions & 2 deletions _contents/call-to-action.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ author:
icon: fa fa-solid fa-bullhorn
intro: true
chapters: #true
section:
section-order:
section: Get started
section-order: 2
about: #true
feedback: #true
feedback-link:
Expand Down
16 changes: 16 additions & 0 deletions _contents/purpose.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: Purpose
description: Proudly Serving purpose.
author:
img-feat:
icon: fa-solid fa-asterisk
#intro: true
chapters: true
section: Get started
section-order: 1
#about: true
feedback:
feedback-link:
#launched: true
---

16 changes: 16 additions & 0 deletions _contents/swear-yourself-in.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: Swear yourself in
description: Take the Proudly Serving pledge.
author:
img-feat:
icon: fa-solid fa-hand
#intro: true
chapters: true
section: Get started
section-order: 3
#about: true
feedback:
feedback-link:
#launched: true
---

43 changes: 39 additions & 4 deletions _data/contents.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,39 @@
- Contemplation
- Preparation
- Implementation
- Inspiration
docs_list_title: contents
docs:

- name: Initiation
chapters:
- Purpose
- Call to action
- Swear yourself in
- name: Contemplation
chapters:
- Default to open
- Get digital
- Have a strategy
- Think exponential
- Innovate with intention
- Be participatory
- name: Preparation
chapters:
- Set guiding principles
- Appoint an owner
- Empower the team
- Go official
- Buy better
- name: Implementation
chapters:
- Show the work
- Speak plainly
- Say what matters
- Stay accessible
- Design for everyone
- Secure yourself
- Protect privacy
- Manage data rights
- Upskill always
- Hack with the people
- Spark community joy
- name: Inspiration
chapters:
- Remember why you do this
25 changes: 10 additions & 15 deletions _layouts/contents.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,16 @@
---

<div class="col-12">
{% for section in site.sections %}
{% assign chapters = "" | split: '' %}
{% for chapter in site.contents %}
{% if chapter[section] == true %}
{% assign chapters = chapters | push: chapter %}
{% endif %}
{% endfor %}
{% assign size = chapters | size %}
{% if size > 0 %}
<h2>{{ section | capitalize }}</h2>
<div class="card-group mt-4 mb-5">
{% for item in chapters %}
{% include card-contents.html %}
{% for section in site.data.contents.docs %}
<h2>{{ section.name | capitalize }}</h2>
<div class="card-group mt-4 mb-5">
{% for chapter in section.chapters %}
{% for item in site.contents %}
{% if item.title == chapter %}
{% include card-contents.html %}
{% endif %}
{% endfor %}
</div>
{% endif %}
{% endfor %}
</div>
{% endfor %}
</div>
27 changes: 11 additions & 16 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,22 @@ <h2 class="mb-3">What they say</h2>
<div class="container border-top pt-5 mt-4">
<div class="row">
<div class="col-12">
<h2 class="mb-3">Contents</h2>
<h2 class="mb-4">Contents</h2>
</div>
</div>
<div class="row">
<div class="col-12">
{% for section in site.sections %}
{% assign chapters = "" | split: '' %}
{% for chapter in site.contents %}
{% if chapter[section] == true %}
{% assign chapters = chapters | push: chapter %}
{% endif %}
{% endfor %}
{% assign size = chapters | size %}
{% if size > 0 %}
<h3>{{ section | capitalize }}</h3>
<div class="card-group mt-4 mb-5">
{% for item in chapters %}
{% include card-contents.html %}
{% for section in site.data.contents.docs %}
<h3>{{ section.name | capitalize }}</h3>
<div class="card-group mt-4 mb-5">
{% for chapter in section.chapters %}
{% for item in site.contents %}
{% if item.title == chapter %}
{% include card-contents.html %}
{% endif %}
{% endfor %}
</div>
{% endif %}
{% endfor %}
</div>
{% endfor %}
</div>
</div>
Expand Down

0 comments on commit dc9d738

Please sign in to comment.