From 7c310576ec945bb5e53600539f05ed7d41b5dc23 Mon Sep 17 00:00:00 2001 From: Oliver Potter <120502505+opott@users.noreply.github.com> Date: Sat, 19 Jul 2025 14:15:27 +0100 Subject: [PATCH 1/2] refactor: remove loading overlay and related includes from layout files --- _includes/head.html | 15 +++++---------- _includes/loading.html | 3 --- _layouts/course_home.html | 2 +- _layouts/index.html | 2 +- _layouts/page.html | 5 +---- 5 files changed, 8 insertions(+), 19 deletions(-) delete mode 100644 _includes/loading.html diff --git a/_includes/head.html b/_includes/head.html index 516ca73..9bfc70d 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -1,11 +1,6 @@ - {{ page.title }} | CourseNotes - - - - - \ No newline at end of file + {{ page.title }} | CourseNotes + + + + diff --git a/_includes/loading.html b/_includes/loading.html deleted file mode 100644 index 9a87121..0000000 --- a/_includes/loading.html +++ /dev/null @@ -1,3 +0,0 @@ -
-
-
\ No newline at end of file diff --git a/_layouts/course_home.html b/_layouts/course_home.html index 60a8882..e14520a 100644 --- a/_layouts/course_home.html +++ b/_layouts/course_home.html @@ -5,7 +5,7 @@ {% include head.html %} - {% include header.html %} {% include loading.html %} + {% include header.html %}

{{ page.course_title }}

diff --git a/_layouts/index.html b/_layouts/index.html index cec4733..c76d56b 100644 --- a/_layouts/index.html +++ b/_layouts/index.html @@ -5,7 +5,7 @@ {% include head.html %} - {% include header.html %} {% include loading.html %} + {% include header.html %}

{{ page.hero_title }}

diff --git a/_layouts/page.html b/_layouts/page.html index 95d9e5e..c7a5961 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -6,15 +6,12 @@ {% include head.html %} {% include header.html %} - {% include loading.html %}

{{ page.hero_title }}

{{ page.hero_subtitle }}

- {{ content }} - {% include tawk.html %} - {% include footer.html %} + {{ content }} {% include tawk.html %} {% include footer.html %} From c55314a189e8cd27c4c7a246fc0d2cb072804423 Mon Sep 17 00:00:00 2001 From: Oliver Potter <120502505+opott@users.noreply.github.com> Date: Sat, 19 Jul 2025 14:19:44 +0100 Subject: [PATCH 2/2] feat: sonarcloud badges --- README.MD | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.MD b/README.MD index 8f9570c..0b6847e 100644 --- a/README.MD +++ b/README.MD @@ -1,5 +1,13 @@

+[![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=CourseNotes_site)](https://sonarcloud.io/summary/new_code?id=CourseNotes_site) +[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=CourseNotes_site&metric=bugs)](https://sonarcloud.io/summary/new_code?id=CourseNotes_site) +[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=CourseNotes_site&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=CourseNotes_site) +[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=CourseNotes_site&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=CourseNotes_site) +[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=CourseNotes_site&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=CourseNotes_site) +[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=CourseNotes_site&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=CourseNotes_site) +[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=CourseNotes_site&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=CourseNotes_site) + --- Revision Made Simple