diff --git a/README.md b/README.md
index ea16b74e..a2e13932 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,9 @@
# Labs
+
Labs is the monorepo codebase for Leaning Technologies developer sites. It contains technical writing (documentation and blog posts) for Cheerp, CheerpJ, CheerpX and other projects.
Visit our sites:
+
- [Labs](https://labs.leaningtech.com/)
- [Cheerp.io](https://cheerp.io/)
- [CheerpX.io](https://cheerpx.io/)
@@ -10,25 +12,31 @@ Visit our sites:
# Running locally
## Setup
+
Make sure you have [Node.js](https://nodejs.org/en/download/package-manager) and [pnpm](https://pnpm.io/installation) installed.
## Clone this repository
+
```shell
git clone https://github.com/leaningtech/labs.git
```
## Install dependencies
+
```shell
cd labs
pnpm install
```
## Run a site
+
The sites under this repository must be run individually. Pick a site you want to run, for example [Cheerp.io](Cheerp.io):
+
```shell
cd /sites/cheerp
pnpm start
```
# Contributing
-For more information about contributing, please [visit this page](https://labs.leaningtech.com/docs/contributing)
\ No newline at end of file
+
+For more information about contributing, please [visit this page](https://labs.leaningtech.com/docs/contributing)
diff --git a/packages/astro-theme/components/BlogPostCard.astro b/packages/astro-theme/components/BlogPostCard.astro
index 99044ef8..71707fe6 100644
--- a/packages/astro-theme/components/BlogPostCard.astro
+++ b/packages/astro-theme/components/BlogPostCard.astro
@@ -21,8 +21,7 @@ const post =
const authors = await resolveAuthors(post.data.authors);
//choose hover link color based on product
-const productName = typeof product === "undefined"? "Labs": product.name;
-
+const productName = typeof product === "undefined" ? "Labs" : product.name;
---
): number {
let relevancy =
@@ -31,13 +28,15 @@ function sortCalc(post: CollectionEntry<"blog">): number {
const posts = (
await getCollection("blog", (post) => {
- if (post.data.draft || exclude?.includes(post.id) || !(post.data?.tags?.includes(productName) || productName === "Labs")) {
+ if (
+ post.data.draft ||
+ exclude?.includes(post.id) ||
+ !(post.data?.tags?.includes(productName) || productName === "Labs")
+ ) {
return false;
-
} else {
return true;
}
-
})
)
.sort((a, b) => sortCalc(b) - sortCalc(a))
diff --git a/sites/cheerp/src/pages/index.astro b/sites/cheerp/src/pages/index.astro
index ee948fb2..80408268 100644
--- a/sites/cheerp/src/pages/index.astro
+++ b/sites/cheerp/src/pages/index.astro
@@ -188,7 +188,7 @@ import BlogPostCardSet from "@leaningtech/astro-theme/components/BlogPostCardSet
Cheerp blogLatest news
-