File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -117,14 +117,17 @@ function handleFamilySelection() {
117
117
document . querySelectorAll (
118
118
'#product-families-list input[type="checkbox"]:checked' ,
119
119
) ,
120
- ) . map ( ( checkbox ) => checkbox . id . replace ( "family-" , "" ) . toLowerCase ( ) ) ;
120
+ ) . map ( ( checkbox ) =>
121
+ checkbox . id . replace ( "family-" , "" ) . replace ( "\\ " , "-" ) . toLowerCase ( ) ,
122
+ ) ;
121
123
122
124
console . log ( "Selected families:" , selectedFamilies ) ;
123
125
124
126
const projectCards = document . querySelectorAll ( ".project-card" ) ;
125
127
126
128
projectCards . forEach ( ( card ) => {
127
129
const family = card . getAttribute ( "data-family" ) . toLowerCase ( ) ;
130
+ console . log ( "Family:" , family ) ;
128
131
card . style . display =
129
132
selectedFamilies . length === 0 || selectedFamilies . includes ( family )
130
133
? "flex"
@@ -137,7 +140,9 @@ function handleTagSelection() {
137
140
document . querySelectorAll (
138
141
'#product-tags-list input[type="checkbox"]:checked' ,
139
142
) ,
140
- ) . map ( ( checkbox ) => checkbox . id . replace ( "tag-" , "" ) . toLowerCase ( ) ) ;
143
+ ) . map ( ( checkbox ) =>
144
+ checkbox . id . replace ( "tag-" , "" ) . replace ( "\\ " , "-" ) . toLowerCase ( ) ,
145
+ ) ;
141
146
142
147
console . log ( "Selected tags:" , selectedTags ) ;
143
148
Original file line number Diff line number Diff line change @@ -27,10 +27,12 @@ it is now a collection of many Python packages for using Ansys products through
27
27
{% set family = metadata.get('family', 'other') | lower | replace(' ', '-') %}
28
28
{% set tags = metadata.get('tags', 'other') | lower %}
29
29
30
- <div class =" project-card sd-shadow-sm sd-card-hover" data-family =" {{ family }}" data-tags =" {{ tags }}" >
30
+ <div class =" project-card sd-card sd- shadow-sm sd-card-hover" data-family =" {{ family }}" data-tags =" {{ tags }}" >
31
31
<img class =" project-thumbnail" src =" {{ metadata['thumbnail'] }}" />
32
- <p class =" project-title" > {{ metadata['name'] }} </p >
33
- <p class =" project-description" > {{ metadata['description'] }} </p >
32
+ <div class =" sd-card-body" >
33
+ <p class =" sd-card-title sd-font-weight-bold" > {{ metadata['name'] }} </p >
34
+ <p class =" sd-card-body-text" > {{ metadata['description'] }} </p >
35
+ </div >
34
36
</div >
35
37
36
38
{% endfor %}
You can’t perform that action at this time.
0 commit comments