Skip to content

Commit ce102ca

Browse files
committed
Bug fix, a bunch of generators were showing up in results because they didn’t have any templates assigned.
1 parent 05ec9d4 commit ce102ca

File tree

14 files changed

+14
-10
lines changed

14 files changed

+14
-10
lines changed

src/js/filter-container.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class FilterContainer extends HTMLElement {
8080
}
8181

8282
elementIsValid(element, attributeName, value, delimiter) {
83-
if(!value) {
83+
if(!value && element.hasAttribute(attributeName)) {
8484
return true;
8585
}
8686
let attrValue = element.getAttribute(attributeName);

src/site/_includes/components/cards.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{%- if githubData[item.data.repo].stars !== "" %} data-sort-githubstars-numeric-descending="{{ githubData[item.data.repo].stars }}"{% endif %}
55
{%- if item.data.typeofcms %} data-filter-typeofcms="{{ item.data.typeofcms | lower }}"{% endif %}
66
{%- if item.data.opensource %} data-filter-opensource="{{ item.data.opensource | lower }}"{% endif %}
7-
{%- if item.data.templates %} data-filter-template="{{ item.data.templates | join(",") | lower }}"{% endif %}
7+
data-filter-template="{{ (item.data.templates or []) | join(",") | lower }}"
88
{%- if item.data.language %} data-filter-language="{{ item.data.language | join(",") | lower }}"{% endif %}
99
{%- if item.data.license %} data-filter-license="{{ item.data.license | join(",") | lower }}"{% endif %}>
1010
<a href="{{ item.url }}" class="flex-grow block border-0 bg-white text-gray-700 rounded-t-lg last:rounded-b-lg">

src/site/generators/ago.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ language:
66
- Go
77
license:
88
- MIT
9-
templates:
9+
templates: []
1010
description: A static blog generator script without any fuzz
1111
---
1212

src/site/generators/bashblog-ng.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ language:
66
- Bash
77
license:
88
- GPL-3.0-only
9-
templates:
9+
templates: []
1010
description: Bash script to create and manage blogs.
1111
---
1212

src/site/generators/bashblog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ language:
66
- Bash
77
license:
88
- GPL-3.0-only
9-
templates:
9+
templates: []
1010
description: A single Bash script to create blogs.
1111
---
1212

src/site/generators/franklin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ language:
66
- Julia
77
license:
88
- MIT
9-
templates:
9+
templates: []
1010
description: A simple, customisable static site generator oriented towards technical blogging and light, fast-loading pages.
1111
---
1212

src/site/generators/pollen.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ language:
66
- Racket
77
license:
88
- LGPL-3.0-only
9+
templates: []
910
description: A web book-publishing system written in Racket with static html as default output target.
1011
---
1112

src/site/generators/qpage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ language:
66
- Python
77
license:
88
- MIT
9-
templates:
9+
templates: []
1010
description: 'QPage or QuickPage is a free project for creating academic homepage without any code'
1111
---
1212

src/site/generators/sblg.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ language:
66
- C
77
license:
88
- ISC
9-
templates:
9+
templates: []
1010
description: simple off-line blog utility
1111
---
1212

src/site/generators/scalatic.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ language:
66
- Scala
77
license:
88
- MIT
9+
templates: []
910
description: Dead simple static blog generator written in Scala.
1011
---
1112

0 commit comments

Comments
 (0)