Skip to content

Commit b620d0e

Browse files
committed
Removed filter categories as they're no longer required.
All the project ideas filter shifted to frontend - jQuery
1 parent 37f9c70 commit b620d0e

File tree

10 files changed

+25
-100
lines changed

10 files changed

+25
-100
lines changed

content/internships/project-ideas/all/contents.lr

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
_model: redirect
2-
---
3-
target: /internships/project-ideas/all/
4-
---
5-
_discoverable: no
1+
_model: project-ideas

content/internships/project-ideas/difficulty-easy/contents.lr

Lines changed: 0 additions & 11 deletions
This file was deleted.

content/internships/project-ideas/difficulty-hard/contents.lr

Lines changed: 0 additions & 11 deletions
This file was deleted.

content/internships/project-ideas/difficulty-medium/contents.lr

Lines changed: 0 additions & 11 deletions
This file was deleted.

content/internships/project-ideas/skill-javascript/contents.lr

Lines changed: 0 additions & 11 deletions
This file was deleted.

content/internships/project-ideas/skill-python/contents.lr

Lines changed: 0 additions & 11 deletions
This file was deleted.

content/internships/project-ideas/skill-wordpress/contents.lr

Lines changed: 0 additions & 11 deletions
This file was deleted.

content/internships/project-ideas/skill-writing/contents.lr

Lines changed: 0 additions & 11 deletions
This file was deleted.

templates/project-ideas.html

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,32 @@
88
<hr/>
99
<!-- We display all ideas by default. -->
1010
{% set ideas = site.query('/internships/project-ideas-collection').include_undiscoverable(true) %}
11-
{% set filters = site.query('/internships/project-ideas').include_undiscoverable(true).order_by('order') %}
12-
{% set current_filter = filters.filter(F._slug == this._slug).first() %}
1311
<div class="mt-4">
1412
<div>
15-
{% for filter in filters %}
16-
<button type="button" class="m-1 btn btn-sm btn-primary filter-btn" data-filter="{{ filter.filter_label }}">
17-
{{ filter.nav_label }}
18-
</button>
19-
{% endfor %}
13+
<button type="button" class="m-1 btn btn-sm btn-dark filter-btn" data-filter="all">
14+
All Projects
15+
</button>
16+
<button type="button" class="m-1 btn btn-sm btn-primary filter-btn" data-filter="difficulty-easy">
17+
Difficulty: Easy
18+
</button>
19+
<button type="button" class="m-1 btn btn-sm btn-primary filter-btn" data-filter="difficulty-medium">
20+
Difficulty: Medium
21+
</button>
22+
<button type="button" class="m-1 btn btn-sm btn-primary filter-btn" data-filter="difficulty-hard">
23+
Difficulty: Hard
24+
</button>
25+
<button type="button" class="m-1 btn btn-sm btn-primary filter-btn" data-filter="skill-javascript">
26+
Skill: JavaScript
27+
</button>
28+
<button type="button" class="m-1 btn btn-sm btn-primary filter-btn" data-filter="skill-python">
29+
Skill: Python
30+
</button>
31+
<button type="button" class="m-1 btn btn-sm btn-primary filter-btn" data-filter="skill-wordpress">
32+
Skill: WordPress
33+
</button>
34+
<button type="button" class="m-1 btn btn-sm btn-primary filter-btn" data-filter="skill-writing">
35+
Skill: Writing
36+
</button>
2037
<ul class="list-unstyled m-3">
2138
{% for idea in ideas %}
2239
<li class="my-2 filter filter-label {{ idea.filter_value }}"><a href="#{{ idea._slug }}">{{ idea.title }}</a></li>

0 commit comments

Comments
 (0)