Skip to content

Commit

Permalink
refactor: move lesson tag to course directory data file
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesx00 committed Dec 18, 2024
1 parent 33ee31c commit 3e901aa
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions public/css/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -1444,10 +1444,6 @@ h4 {
z-index: 50;
}

.order-1 {
order: 1;
}

.order-2 {
order: 2;
}
Expand Down Expand Up @@ -3739,10 +3735,6 @@ code {
order: 1;
}

.md\:order-2 {
order: 2;
}

.md\:mb-0 {
margin-bottom: 0px;
}
Expand Down
1 change: 0 additions & 1 deletion src/courses/basic-python/basic-python.11tydata.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ module.exports = {
course_id: "basic-python",
course_name: "Basic Python for Beginners",
course_slug: "basic-python",
tags: ["lesson"], // This is set so that all subdirectories are tagged as lesson
eleventyComputed: {
title: (data) => {
if (data.tags.indexOf("lesson") !== -1) {
Expand Down
1 change: 1 addition & 0 deletions src/courses/courses.11tydata.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module.exports = {
layout: "layouts/lesson.njk",
tags: ["lesson"], // This is set so that all subdirectories are tagged as lesson
};

0 comments on commit 3e901aa

Please sign in to comment.