Skip to content

Fix critical bugs: missing remote files, wrong type annotations, duplicate HTML attributes, logo/icon mismatch, unsafe error handling#9

Open
Copilot wants to merge 5 commits intomainfrom
copilot/fix-critical-issues
Open

Fix critical bugs: missing remote files, wrong type annotations, duplicate HTML attributes, logo/icon mismatch, unsafe error handling#9
Copilot wants to merge 5 commits intomainfrom
copilot/fix-critical-issues

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 20, 2026

  • Fix mod.ts: Remove references to non-existent files (_includes/layout/body.njk, _includes/page_right.njk, _includes/components/toc.njk)
  • Fix plugins.ts: Correct type annotation from Page to Page[] in both site.process callbacks
  • Fix src/_includes/partials/sidebar.njk: Fix metas.iconmetas.logo inconsistency
  • Fix src/_includes/partials/nav.njk: Remove duplicate title attribute on top_links anchor
  • Fix src/_includes/partials/sidebar.njk: Remove duplicate title attribute on top_links anchor
  • Fix init.ts: Narrow error handling to Deno.errors.NotFound; treat any successful read as "file exists" (return early unconditionally, not only when content is non-empty)

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…ttrs, logo/icon inconsistency, error handling

Co-authored-by: Hexagon <419737+Hexagon@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix critical issues identified in the project Fix critical bugs: missing remote files, wrong type annotations, duplicate HTML attributes, logo/icon mismatch, unsafe error handling Feb 20, 2026
Copilot AI requested a review from Hexagon February 20, 2026 22:21
@Hexagon Hexagon marked this pull request as ready for review February 20, 2026 22:21
@Hexagon Hexagon requested a review from Copilot February 20, 2026 22:22
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 addresses several build/runtime and rendering issues in the Lumocs/Lume setup by removing stale remote asset references, correcting TypeScript callback typing, fixing template rendering bugs, and narrowing unsafe error handling in the project initializer.

Changes:

  • Remove non-existent Nunjucks templates from mod.ts remote file registration to prevent build-time failures.
  • Fix site.process callback type annotations in plugins.ts to reflect that an array of pages is passed.
  • Correct template issues in nav.njk / sidebar.njk (logo source mismatch and duplicate title attributes).
  • Restrict createFileIfNotExists to only create files on Deno.errors.NotFound, avoiding writes on other read errors.

Reviewed changes

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

Show a summary per file
File Description
src/_includes/partials/sidebar.njk Fixes logo rendering source and removes duplicate title attribute in top links.
src/_includes/partials/nav.njk Removes duplicate title attribute in top links.
plugins.ts Corrects site.process callback parameter typing to Page[].
mod.ts Removes stale remoteFile registrations for templates that do not exist.
init.ts Narrows catch behavior to only create files on NotFound; cleans up unused catch variables.

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

Comment thread init.ts Outdated
Comment thread init.ts Outdated
Comment thread src/_includes/partials/sidebar.njk Outdated
Hexagon and others added 2 commits February 20, 2026 23:26
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Hexagon <419737+Hexagon@users.noreply.github.com>
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

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.


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

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.

3 participants