From 312eefeb4ff0928178818a963e7845b83216681d Mon Sep 17 00:00:00 2001 From: Nuwan Jaliyagoda Date: Mon, 5 Feb 2024 18:48:32 +0530 Subject: [PATCH] Script correction --- _data/semesters.json | 22 +++++++++---------- .../courses/semesters/general-electives.html | 2 +- pages/courses/semesters/semester1.html | 2 +- pages/courses/semesters/semester2.html | 2 +- pages/courses/semesters/semester3.html | 2 +- pages/courses/semesters/semester4.html | 2 +- pages/courses/semesters/semester5.html | 2 +- pages/courses/semesters/semester6.html | 2 +- pages/courses/semesters/semester7.html | 2 +- pages/courses/semesters/semester8.html | 2 +- pages/courses/semesters/short-semester.html | 2 +- .../semesters/technical-electives.html | 2 +- .../generate_semester_pages.py | 2 +- 13 files changed, 23 insertions(+), 23 deletions(-) diff --git a/_data/semesters.json b/_data/semesters.json index bdaa072..13032a4 100644 --- a/_data/semesters.json +++ b/_data/semesters.json @@ -2,56 +2,56 @@ "semester1": { "title": "Semester 1", "description": "All Engineering students follow the same first semester. These courses are credited towards their general programme (first year).", - "url": "/courses/undergraduate/semester1" + "url": "/courses/undergraduate/semester1/" }, "semester2": { "title": "Semester 2", "description": "All Engineering students follow the same second semester. These courses are credited towards their general programme (first year).", - "url": "/courses/undergraduate/semester2" + "url": "/courses/undergraduate/semester2/" }, "semester3": { "title": "Semester 3", "description": "", - "url": "/courses/undergraduate/semester3" + "url": "/courses/undergraduate/semester3/" }, "semester4": { "title": "Semester 4", "description": "", - "url": "/courses/undergraduate/semester4" + "url": "/courses/undergraduate/semester4/" }, "short-semester": { "title": "Short Semester", "description": "During this semester, the students will follow a Guided Software Engineering project with General Elective courses of at least 9 credits. The semester is 7 weeks long.", - "url": "/courses/undergraduate/short-semester" + "url": "/courses/undergraduate/short-semester/" }, "semester5": { "title": "Semester 5", "description": "", - "url": "/courses/undergraduate/semester5" + "url": "/courses/undergraduate/semester5/" }, "semester6": { "title": "Semester 6", "description": "", - "url": "/courses/undergraduate/semester6" + "url": "/courses/undergraduate/semester6/" }, "semester7": { "title": "Semester 7", "description": "This is a short semester of 8 weeks, the students will start their final year projects and follow a few mandatory general elective courses", - "url": "/courses/undergraduate/semester7" + "url": "/courses/undergraduate/semester7/" }, "semester8": { "title": "Semester 8", "description": "", - "url": "/courses/undergraduate/semester8" + "url": "/courses/undergraduate/semester8/" }, "general-electives": { "title": "General Electives", "description": "", - "url": "/courses/undergraduate/general-electives" + "url": "/courses/undergraduate/general-electives/" }, "technical-electives": { "title": "Technical Electives", "description": "", - "url": "/courses/undergraduate/technical-electives" + "url": "/courses/undergraduate/technical-electives/" } } diff --git a/pages/courses/semesters/general-electives.html b/pages/courses/semesters/general-electives.html index 8d25559..8d786a2 100644 --- a/pages/courses/semesters/general-electives.html +++ b/pages/courses/semesters/general-electives.html @@ -1,6 +1,6 @@ --- layout: semester -permalink: "/courses/undergraduate/courses/undergraduate/general-electives/" +permalink: "/courses/undergraduate/general-electives/" title: General Electives code: general-electives diff --git a/pages/courses/semesters/semester1.html b/pages/courses/semesters/semester1.html index 62370c2..56b495d 100644 --- a/pages/courses/semesters/semester1.html +++ b/pages/courses/semesters/semester1.html @@ -1,6 +1,6 @@ --- layout: semester -permalink: "/courses/undergraduate/courses/undergraduate/semester1/" +permalink: "/courses/undergraduate/semester1/" title: Semester 1 code: semester1 diff --git a/pages/courses/semesters/semester2.html b/pages/courses/semesters/semester2.html index c1751f7..2f85cad 100644 --- a/pages/courses/semesters/semester2.html +++ b/pages/courses/semesters/semester2.html @@ -1,6 +1,6 @@ --- layout: semester -permalink: "/courses/undergraduate/courses/undergraduate/semester2/" +permalink: "/courses/undergraduate/semester2/" title: Semester 2 code: semester2 diff --git a/pages/courses/semesters/semester3.html b/pages/courses/semesters/semester3.html index 44f389f..e6394d1 100644 --- a/pages/courses/semesters/semester3.html +++ b/pages/courses/semesters/semester3.html @@ -1,6 +1,6 @@ --- layout: semester -permalink: "/courses/undergraduate/courses/undergraduate/semester3/" +permalink: "/courses/undergraduate/semester3/" title: Semester 3 code: semester3 diff --git a/pages/courses/semesters/semester4.html b/pages/courses/semesters/semester4.html index 2b3ad8d..20431ea 100644 --- a/pages/courses/semesters/semester4.html +++ b/pages/courses/semesters/semester4.html @@ -1,6 +1,6 @@ --- layout: semester -permalink: "/courses/undergraduate/courses/undergraduate/semester4/" +permalink: "/courses/undergraduate/semester4/" title: Semester 4 code: semester4 diff --git a/pages/courses/semesters/semester5.html b/pages/courses/semesters/semester5.html index 263ddd2..38f576d 100644 --- a/pages/courses/semesters/semester5.html +++ b/pages/courses/semesters/semester5.html @@ -1,6 +1,6 @@ --- layout: semester -permalink: "/courses/undergraduate/courses/undergraduate/semester5/" +permalink: "/courses/undergraduate/semester5/" title: Semester 5 code: semester5 diff --git a/pages/courses/semesters/semester6.html b/pages/courses/semesters/semester6.html index 73e9dfd..3fd44b1 100644 --- a/pages/courses/semesters/semester6.html +++ b/pages/courses/semesters/semester6.html @@ -1,6 +1,6 @@ --- layout: semester -permalink: "/courses/undergraduate/courses/undergraduate/semester6/" +permalink: "/courses/undergraduate/semester6/" title: Semester 6 code: semester6 diff --git a/pages/courses/semesters/semester7.html b/pages/courses/semesters/semester7.html index 6157285..7482b28 100644 --- a/pages/courses/semesters/semester7.html +++ b/pages/courses/semesters/semester7.html @@ -1,6 +1,6 @@ --- layout: semester -permalink: "/courses/undergraduate/courses/undergraduate/semester7/" +permalink: "/courses/undergraduate/semester7/" title: Semester 7 code: semester7 diff --git a/pages/courses/semesters/semester8.html b/pages/courses/semesters/semester8.html index 1ebb41c..5a29886 100644 --- a/pages/courses/semesters/semester8.html +++ b/pages/courses/semesters/semester8.html @@ -1,6 +1,6 @@ --- layout: semester -permalink: "/courses/undergraduate/courses/undergraduate/semester8/" +permalink: "/courses/undergraduate/semester8/" title: Semester 8 code: semester8 diff --git a/pages/courses/semesters/short-semester.html b/pages/courses/semesters/short-semester.html index 8cda75e..45dc3c9 100644 --- a/pages/courses/semesters/short-semester.html +++ b/pages/courses/semesters/short-semester.html @@ -1,6 +1,6 @@ --- layout: semester -permalink: "/courses/undergraduate/courses/undergraduate/short-semester/" +permalink: "/courses/undergraduate/short-semester/" title: Short Semester code: short-semester diff --git a/pages/courses/semesters/technical-electives.html b/pages/courses/semesters/technical-electives.html index 4cda696..88bc8b9 100644 --- a/pages/courses/semesters/technical-electives.html +++ b/pages/courses/semesters/technical-electives.html @@ -1,6 +1,6 @@ --- layout: semester -permalink: "/courses/undergraduate/courses/undergraduate/technical-electives/" +permalink: "/courses/undergraduate/technical-electives/" title: Technical Electives code: technical-electives diff --git a/python_scripts/undergraduate_courses/generate_semester_pages.py b/python_scripts/undergraduate_courses/generate_semester_pages.py index 152fb56..bb0c654 100644 --- a/python_scripts/undergraduate_courses/generate_semester_pages.py +++ b/python_scripts/undergraduate_courses/generate_semester_pages.py @@ -29,7 +29,7 @@ outputString = f"""--- layout: semester -permalink: "/courses/undergraduate{ url }/" +permalink: "{url}" title: {title} code: {semester}