Nue Bugs and Improvements
Add a setting to collect page.md files in /page/index.html. This is needed for example for the blog contents page /blog.md → /blog/index.html, and also for blog articles: /blog/post-1.md → /blog/post-1/index.html
When running the nue and nue build -p commands, you need to make sure that the .dist folder is deleted and the build is performed from scratch.
Nested quote does not work:
> Quote
> Nested quote (does not work!).
Add a setting to add the target="_blank" rel="noopener" attributes to all external links.
The table example from the documentation does not create the <tfoot> tag for me, instead a regular <tr> is created.
During development, when adding a new style file, these styles are not applied, but when the page is manually reloaded, they are applied.
I think it is better to make syntax_highlight: false by default, so that there are no unnecessary styles at the start and there is more control over the project.
In the menu, errors with the assignment aria-current="page". When I am on the main page of the site, the external link and placeholder also get aria-current="page":
<a href="https://example.com/" aria-current="page">External link</a>
<a href="#" aria-current="page">Placeholder</a>
I can't connect my font files using @font-face. I usually connect my font file like this:
@font-face {
font-weight: 100 900;
font-family: 'Inter';
font-style: normal;
src: url('./fls/inter-100-900.woff2') format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
This results in an error:
51 |
52 | try {
53 | const { code, path } = !ext || ext == 'html' ? await callback(url, _) : { path: url }
54 | if (!path) throw { errno: -2 }
55 | const buffer = await fs.readFile(join(root, path))
56 | res.writeHead(code || 200, { 'content-type': TYPES[ext] })
^
TypeError: Invalid value "undefined" for header "content-type"
code: "ERR_HTTP_INVALID_HEADER_VALUE"
at validateHeaderValue (node:_http_common:12:29)
at setHeader (node:_http_outgoing:166:50)
at _writeHead (node:_http_server:136:29)
at writeHead (node:_http_server:540:22)
at <anonymous> (C:\Users\user\.bun\install\global\node_modules\nuekit\src\nueserver.js:56:11)
There is a bug in the page file .md with inserting an HTML comment. If the comment is split into several lines, it is rendered into content and displayed on the site. This is very inconvenient, I need to store a large volume of text in comments in article files.
---
title: Optimalist
---
<!--
Comment
New line comment
-->
@maintainers
When running the nue and nue build -p commands, you need to make sure that the .dist folder is deleted and the build is performed from scratch.
ref: https://github.com/nuejs/nue/issues/599
During development, when adding a new style file, these styles are not applied, but when the page is manually reloaded, they are applied.
I have similar experiences. Couldn't track it down or reliably reproduce yet, but it seems the HMR isn't always working correctly in the latest RC.
@mitorun-studio
I can't connect my font files using @font-face. I usually connect my font file like this:
this is fixed in master. Ref https://github.com/nuejs/nue/issues/602 and https://github.com/nuejs/nue/issues/591