Skip to content

Commit bed8b13

Browse files
authored
Merge pull request #506 from TonioGela/main
Change the projects listed on the homepage
2 parents 4e1d42f + 08ad52d commit bed8b13

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

_data/projects.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
description: "A library intended to provide abstractions for functional programming in Scala, leveraging its unique features. Design goals are approachability, modularity, documentation and efficiency."
3131
permalink: "https://typelevel.org/cats/"
3232
github: "https://github.com/typelevel/cats"
33-
core: true
3433
platforms: [js, jvm, native]
3534
- title: "Cats Collections"
3635
description: "Data structures that facilitate pure functional programming with cats"
@@ -314,7 +313,6 @@
314313
description: "Shapeless is a generic programming library. Starting with implementations of Scrap your boilerplate and higher rank polymorphism in Scala, it quickly grew to provide advanced abstract tools like heterogenous lists and automatic instance derivation for type classes."
315314
github: "https://github.com/milessabin/shapeless"
316315
affiliate: true
317-
core: true
318316
platforms: [js, jvm, native]
319317
- title: "simulacrum"
320318
description: "First-class syntax for type classes"
@@ -347,7 +345,6 @@
347345
- title: "spire"
348346
description: "Spire is a numeric library for Scala which is intended to be generic, fast, and precise. Using features such as specialization, macros, type classes, and implicits, Spire works hard to defy conventional wisdom around performance and precision trade-offs."
349347
github: "https://github.com/typelevel/spire"
350-
core: true
351348
platforms: [js, jvm, native]
352349
- title: "Squants"
353350
description: "The Scala API for Quantities, Units of Measure and Dimensional Analysis"

_includes/_section-projects.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
<h2><span>{{site.data.description.projectsTitle}}</span></h2>
55
<p>{{site.data.description.projectsDescription}}</p>
66
</div>
7-
<div class="projects-list">
8-
{% assign projects = site.data.projects | where:'core', true %}
9-
{% for project in projects limit:3 %}
7+
<div id="homeProjects" class="projects-list">
8+
{% assign names = "Cats|Cats-Effect|fs2|http4s" | split: "|" %}
9+
{% assign projects = site.data.projects | where_exp: "project", "names contains project.title" %}
10+
{% for project in projects %}
1011
{% include _project_card.html %}
1112
{% endfor %}
1213
</div>

_sass/components/_projects.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// =====================================================================
44

55
#section-projects {}
6+
#homeProjects {
7+
@include col-2;
8+
}
69
.projects-list {
710
@include grid;
811
@include col-3;

0 commit comments

Comments
 (0)