Skip to content

Commit 50ed9cf

Browse files
committed
fix: remove redundant js/index.js causing duplicate 'body' declaration
- fix(seo): correct dateModified datetime and drop unrecognized mainEntityOfPage - chore(release): v2.0.1
1 parent d326868 commit 50ed9cf

5 files changed

Lines changed: 17 additions & 94 deletions

File tree

.github/info.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
---
2-
tag: v2.0.0
3-
title: v2.0.0Static HTML/CSS/JS rewrite
2+
tag: v2.0.1
3+
title: v2.0.1Fix homepage script error
44
---
55

6-
Full rewrite to a single-page static portfolio built with plain HTML, CSS, and vanilla JavaScript.
6+
Patch release fixing a JavaScript error on the homepage and clearing Search Console structured-data warnings.
77

88
## Changes
9-
- Rebuilt the site as a static single-page portfolio; removed the Vite + React frontend and Express + Nodemailer backend.
10-
- Removed all build tooling and dependencies; the site runs with no build step.
11-
- Added sections: hero, projects, skills, experience, education, and current focus.
12-
- Added project detail pages and an online resume page.
13-
- Added light/dark theme with system detection and a manual toggle.
14-
- Retained SEO metadata and JSON-LD structured data.
15-
16-
Reason: plain HTML/CSS/JS for simpler maintenance, no dependency overhead, and no refactors when dependencies change — focused on delivering core information quickly and staying accessible.
9+
- Removed the redundant `js/index.js` (duplicated `js/global.js`), fixing an `Identifier 'body' has already been declared` error on the homepage.
10+
- Fixed the `dateModified` datetime format in the homepage JSON-LD.
11+
- Removed the unrecognized `mainEntityOfPage` field from the resume JSON-LD.

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
All notable changes to this project are documented in this file.
44

5+
## [v2.0.1] 2026-07-05
6+
7+
Summary: Fix homepage script error and structured-data warnings
8+
9+
- Removed the redundant `js/index.js` (duplicated `js/global.js`), fixing an `Identifier 'body' has already been declared` error on the homepage.
10+
- Fixed the `dateModified` datetime format in the homepage JSON-LD.
11+
- Removed the unrecognized `mainEntityOfPage` field from the resume JSON-LD.
12+
513
## [v2.0.0] 2026-07-05
614

715
Summary: Full rewrite to a static HTML/CSS/JS portfolio
@@ -69,6 +77,7 @@ Summary: Initial Release
6977
- Initial release of the portfolio website.
7078
- Core frontend and backend setup with contact integration.
7179

80+
[v2.0.1]: https://github.com/saqibbedar/saqibbedar.github.io/releases/tag/v2.0.1
7281
[v2.0.0]: https://github.com/saqibbedar/saqibbedar.github.io/releases/tag/v2.0.0
7382
[v1.1.1]: https://github.com/saqibbedar/saqibbedar.github.io/releases/tag/v1.1.1
7483
[v1.1.0]: https://github.com/saqibbedar/saqibbedar.github.io/releases/tag/v1.1.0

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@
7777
{
7878
"@context": "https://schema.org",
7979
"@type": "ProfilePage",
80-
"dateModified": "2026-07-05",
80+
"dateModified": "2026-07-05T00:00:00+05:00",
81+
"datePublished": "2026-07-05T00:00:00+05:00",
8182
"mainEntity": {
8283
"@type": "Person",
8384
"@id": "https://saqibbedar.github.io/#person",
@@ -1065,6 +1066,5 @@ <h2>Current Focus</h2>
10651066

10661067
<!-- scripts -->
10671068
<script defer src="./js/global.js"></script>
1068-
<script defer src="./js/index.js"></script>
10691069
</body>
10701070
</html>

js/index.js

Lines changed: 0 additions & 80 deletions
This file was deleted.

resume/resume.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
{
6363
"@context": "https://schema.org",
6464
"@type": "ProfilePage",
65-
"mainEntityOfPage": "https://saqibbedar.github.io/resume/resume.html",
6665
"mainEntity": {
6766
"@id": "https://saqibbedar.github.io/#person",
6867
"@type": "Person",

0 commit comments

Comments
 (0)