We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0ba2be commit e62ddacCopy full SHA for e62ddac
src/components/PostCard.astro
@@ -1,4 +1,6 @@
1
---
2
+import course from '../course.config.ts';
3
+
4
export interface Props {
5
lesson: {
6
slug: string;
@@ -24,7 +26,7 @@ const isExternal = !!lesson.data.externalLink;
24
26
<article class="post on-list">
25
27
<h2 class="post-title">
28
<a href={lessonUrl} target={isExternal ? "_blank" : undefined} rel={isExternal ? "noopener" : undefined}>
- {lesson.data.order}. {lesson.data.title}
29
+ {lesson.data.order === course.currentLesson ? '*': ''} {lesson.data.order}. {lesson.data.title}
30
</a>
31
</h2>
32
<div class="post-meta">
src/course.config.ts
@@ -0,0 +1,3 @@
+export default {
+ currentLesson: 0,
+};
0 commit comments