Skip to content

Style fixes#18

Merged
akumm2k merged 8 commits into
mainfrom
style-fixes
Dec 15, 2025
Merged

Style fixes#18
akumm2k merged 8 commits into
mainfrom
style-fixes

Conversation

@akumm2k
Copy link
Copy Markdown
Owner

@akumm2k akumm2k commented Dec 15, 2025

  • move author
  • change footer note
  • add ts build scripts
  • fix ts config

@akumm2k akumm2k marked this pull request as ready for review December 15, 2025 11:50
Copilot AI review requested due to automatic review settings December 15, 2025 11:50
@akumm2k akumm2k self-assigned this Dec 15, 2025
@akumm2k akumm2k merged commit 2462a1c into main Dec 15, 2025
3 checks passed
@akumm2k akumm2k deleted the style-fixes branch December 15, 2025 11:53
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements style and configuration improvements to the site, including correcting the author name, updating the footer, adding TypeScript build scripts, and refactoring the article layout to move author metadata. The changes enhance the build process and improve the visual presentation of article pages.

Key changes:

  • Added TypeScript build scripts to both ts/ and assets/ts/ package.json files for compilation
  • Refactored article layout to dynamically move date and author metadata under the first heading via JavaScript
  • Updated TypeScript configuration to use ES2024 target and include DOM libraries

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
ts/package.json Added package name, marked as private, and added TypeScript build scripts
assets/ts/tsconfig.json Changed target from "esnext" to "es2024", added DOM lib, removed jsx option, fixed trailing comma
assets/ts/package.json Replaced placeholder test script with TypeScript build scripts
assets/ts/article.ts Added DOM manipulation to reposition date and author elements after the first heading
assets/js/article.js.map Updated source map reflecting the new TypeScript code
assets/js/article.js Compiled JavaScript output with new DOM manipulation logic
assets/css/article.css Updated word-break to overflow-wrap, modified #date and footer styles, added #author-top styles, moved scroll-progress to bottom
_layouts/article.html Moved author from footer to top (correcting name from "Kumkar" to "Kumar"), changed footer message

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread assets/css/article.css
Comment on lines 99 to 102
#author {
margin: 0;
}

Copy link

Copilot AI Dec 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The '#author' selector is defined but is no longer used since the author paragraph has been removed from the footer. Consider removing this unused CSS rule.

Suggested change
#author {
margin: 0;
}

Copilot uses AI. Check for mistakes.
Comment thread assets/ts/article.ts

if (container && heading && dateEl && authorEl) {
const metaWrap = document.createElement('div');
metaWrap.className = 'post-meta';
Copy link

Copilot AI Dec 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'post-meta' class is not defined in any CSS file in the repository. This will result in the meta wrapper div having no styling applied to it. Consider adding CSS styles for the .post-meta class or using an existing class name.

Copilot uses AI. Check for mistakes.
Comment thread assets/js/article.js
@@ -1,6 +1,20 @@
document.querySelectorAll('pre code').forEach((el) => {
hljs.highlightElement(el);
Copy link

Copilot AI Dec 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'hljs' is not defined.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants