nuxt-themes / alpine

The minimalist blog theme, powered by Nuxt & Markdown.
https://alpine.nuxt.space
MIT License
285 stars 54 forks source link

How to add favicon.ico? #140

Closed yyrc closed 1 year ago

yyrc commented 1 year ago

How to add favicon.ico for my blog?

Atinux commented 1 year ago

You can add your favicon.ico in the public/ directory

fanckush commented 1 year ago

@Atinux how do add it to the header? is there a config to define head meta tags?

Atinux commented 1 year ago

It's actually the browser that will try to get it from the header automatically.

You can use the alpine.head property in your app.config.ts @fanckush

riddla commented 1 year ago

@Atinux, how and where is this implemented?

I'm currently researching best practices around Nuxt and SEO and can't find the usage of alpine.head in https://github.com/nuxt-themes/alpine/.

Atinux commented 1 year ago

It's used in https://github.com/nuxt-themes/alpine/blob/46c2412569a1e0c439b4932590e47f316a5069cf/components/AppLayout.vue#L17

riddla commented 1 year ago

Oh, I see! Thanks a lot for the heads up 👍