Commit 32c5a62
committed
Merge torrust/torrust-website#147: fix svelte check warnings
7caf368 fix svelte check warnings (MacBook air)
Pull request description:
* Added a date property to a `BlogPostCard`. The modification is made to include an optional `date` property with an empty string as its default value. This change is reflected in two different places in the codebase.
* Updated the `ProjectCard` component by renaming the `repo` prop to `repoURL` for clarity. The modification is made to improve the readability and understanding of the prop, aligning it with a more descriptive name.
* Introduced the `id` prop in the `ContentSection` component, initialising it with an empty string. This modification aims to provide more flexibility and control over the identification of content sections while retaining the existing properties such as title, description, and align.
* Updated usage of the `Hero` component within the story file. The change replaces the initial usage without explicit features and posts properties with an updated usage specifying the `hasFeatures` and `hasPosts` properties: This modification ensures that the `Hero` component is utilised with specific feature and post properties for more accurate representation and testing in the story.
* Modified the instantiation of the `BlogPostCard` component within a loop, adding the date property.
```
<BlogPostCard
title={post.title}
coverImage={post.coverImage}
excerpt={post.excerpt}
readingTime={post.readingTime}
slug={post.slug}
tags={post.tags}
date={post.date}
/>
```
ACKs for top commit:
josecelano:
ACK 7caf368
Tree-SHA512: 36cc925c98f7b75cc9b969ebd475e7d07763108ca9eaaf134cc0cf3197026c59da563e2bc59b91b4c27b8dd528aa6dccca9a2406bdc0f13a6452c6f2c69cd96fFile tree
7 files changed
+11
-4
lines changed- src
- lib/components
- molecules
- organisms
- routes/(waves)/blog
7 files changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments