-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from arc42/count-no-directly-related-requirem…
…ents Count no directly related requirements
- Loading branch information
Showing
2 changed files
with
62 additions
and
3 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
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
layout: page | ||
title: Qualities with no directly related requirements | ||
permalink: /no-directly-related/ | ||
hide: true | ||
--- | ||
|
||
{% assign qualities_with_no_directly_related_requirements = 0 %} | ||
|
||
{% assign qualities_unsorted = site.posts | where: "categories", "qualities" %} | ||
{% assign qualities = qualities_unsorted | sort %} | ||
|
||
{% assign requirements_unsorted = site.posts | where: "categories", "requirements" %} | ||
{% assign requirements = requirements_unsorted | sort %} | ||
|
||
{% for quality in qualities %} | ||
|
||
<ul> | ||
{% assign number = 0 %} | ||
{% for requirement in requirements %} | ||
{% assign check_title = quality.title | downcase %} | ||
{% assign related = requirement.related | split: ", "%} | ||
{% if related contains check_title %} | ||
{% assign number = 1 %} | ||
{% endif %} | ||
{% endfor %} | ||
{% if number == 0 %} | ||
<li> {{quality.title}} </li> | ||
{% assign qualities_with_no_directly_related_requirements = qualities_with_no_directly_related_requirements | plus: 1 %} | ||
{% endif %} | ||
</ul> | ||
|
||
{% endfor %} | ||
|
||
<h2> Number of qualities with no directly related requirements: {{qualities_with_no_directly_related_requirements}} </h2> |