From 3e901aa2c10c76b9e037130f386c35405fe25b63 Mon Sep 17 00:00:00 2001 From: James Tansiri Date: Wed, 18 Dec 2024 09:33:14 +0700 Subject: [PATCH] refactor: move lesson tag to course directory data file --- public/css/tailwind.css | 8 -------- src/courses/basic-python/basic-python.11tydata.js | 1 - src/courses/courses.11tydata.js | 1 + 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/public/css/tailwind.css b/public/css/tailwind.css index 64b44a1..ad51d1f 100644 --- a/public/css/tailwind.css +++ b/public/css/tailwind.css @@ -1444,10 +1444,6 @@ h4 { z-index: 50; } -.order-1 { - order: 1; -} - .order-2 { order: 2; } @@ -3739,10 +3735,6 @@ code { order: 1; } - .md\:order-2 { - order: 2; - } - .md\:mb-0 { margin-bottom: 0px; } diff --git a/src/courses/basic-python/basic-python.11tydata.js b/src/courses/basic-python/basic-python.11tydata.js index dbba80e..70ea5e9 100644 --- a/src/courses/basic-python/basic-python.11tydata.js +++ b/src/courses/basic-python/basic-python.11tydata.js @@ -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) { diff --git a/src/courses/courses.11tydata.js b/src/courses/courses.11tydata.js index ddd9dae..2d8129c 100644 --- a/src/courses/courses.11tydata.js +++ b/src/courses/courses.11tydata.js @@ -1,3 +1,4 @@ module.exports = { layout: "layouts/lesson.njk", + tags: ["lesson"], // This is set so that all subdirectories are tagged as lesson };