generated from inherentlee/11ty
This commit is contained in:
+1
-1
@@ -61,7 +61,7 @@ export default function (eleventyConfig) {
|
||||
|
||||
/* Filter out structural tags */
|
||||
eleventyConfig.addFilter("removeBasicTags", (tags) => {
|
||||
return tags.filter((tag) => ["all", "doublePagination"].indexOf(tag) === -1);
|
||||
return tags.filter((tag) => ["all", "providers", "doublePagination"].indexOf(tag) === -1);
|
||||
});
|
||||
|
||||
/* What it says on the tin */
|
||||
|
||||
@@ -33,10 +33,10 @@ layout: base.njk
|
||||
</article>
|
||||
|
||||
<section class="related-providers">
|
||||
{%- set relevantTags = tags | removeBasicTags %}
|
||||
{%- set providerlist = collections.posts | filterByTags(relevantTags) | excludeFromCollection(page.url) | randomize | head(3) %}
|
||||
{%- if providerlist.length %}
|
||||
{% set relevantTags = tags | removeBasicTags %}
|
||||
{% set providerlist = collections.providers | filterByTags(relevantTags) | excludeFromCollection(page.url) | randomize | head(3) %}
|
||||
{% if providerlist.length %}
|
||||
<h2>related providers</h2>
|
||||
{% include "providerlist.njk" %}
|
||||
{%- endif %}
|
||||
{% endif %}
|
||||
</section>
|
||||
|
||||
@@ -6,14 +6,6 @@ title: accessibility
|
||||
|
||||
<section>
|
||||
|
||||
## program accessibility statement
|
||||
|
||||
tbd
|
||||
|
||||
</section>
|
||||
|
||||
<section>
|
||||
|
||||
## site accessibility statement
|
||||
|
||||
This is an accessibility statement from <span class="brand">Spoonfairies</span>.
|
||||
|
||||
Reference in New Issue
Block a user