Skip to content

Commit

Permalink
Nuekit: Fix custom favicon. Closes #221
Browse files Browse the repository at this point in the history
  • Loading branch information
tipiirai committed Feb 26, 2024
1 parent c1feaa8 commit b08fff5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuekit/src/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function renderHead(data, is_prod) {
if (components) pushMeta('nue:components', components.map(uri => `${base}${uri}`).join(' '))

// misc
if (favicon) head.push(`<link rel="shortcut icon" type="${TYPES[extname(favicon).slice(1)]}" src="${favicon}">`)
if (favicon) head.push(`<link rel="icon" type="${TYPES[extname(favicon).slice(1)]}" href="${favicon}">`)

// inline style
inline_css.forEach(el => head.push(`<style href="${base}${el.path}">${ el.css }</style>`))
Expand Down
2 changes: 2 additions & 0 deletions packages/nuemark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"homepage": "https://nuejs.org",
"license": "MIT",
"type": "module",
"main": "index.js",

"repository": {
"url": "https://github.com/nuejs/nue",
"directory": "packages/nuemark",
Expand Down

0 comments on commit b08fff5

Please sign in to comment.