add logo in page with vitepress

713 Views Asked by At

i´m trying to create page with vitepress. All my page i can show it ok, but i can´t show my favicon and my logo image.

I´m traying to create this params in config.js with:

themeConfig: {
      logo: './../img/logo_liquid_cuadrado.png',
      head: [
        ['link', { rel: "icon", type: "image/png", sizes: "32x32", href: "/assets/img/logo-cnmc-cuadro.png"}],
      ],

I´m doing to compile: npm run docs:dev and i can show all my page.

i updated my proyect from vuepress to vitepress in vuepress my image i can show it perfectly...

I have same problem with favicon... i can´t show it.

I´m working with vuejs 3, vitepress and laravel 10.

i tryed to change './img', '/img/', '../img/' and i´m getting same problem. How i´m working with laravel, i need access to public folder and in this folder i have img with this image

i appreciated all help

0

There are 0 best solutions below