Coder Social home page Coder Social logo

Comments (6)

ivan-nginx avatar ivan-nginx commented on May 26, 2024

You put your favicon into hexo-site/source/ or hexo-site/source/images?


There is documentation in config file:

To get or check favicons visit: https://realfavicongenerator.net
Put your favicons into hexo-site/source/ (recommend) or hexo-site/themes/next/source/images/ directory.

Default NexT favicons placed in hexo-site/themes/next/source/images/ directory.
And if you want to place your icons in hexo-site/source/ root directory, you must remove /images prefix from pathes.

For example, you put your favicons into hexo-site/source/images directory.
Then need to rename & redefine they on any other names, otherwise icons from Next will rewrite your custom icons in Hexo.

favicon:
  small: /images/favicon-16x16-yoursite.png
  medium: /images/favicon-32x32-yoursite.png

from hexo-theme-next.

swpd avatar swpd commented on May 26, 2024

I put my favicon.ico under the hexo-site/source/ root directory, should I update the favicon path in _config.yml as well?
Such as:

favicon:
     small : /favicon.ico

An earlier release version of NexT doesn't require such an update though.

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024

An earlier release version of NexT

What earlier version? This version have no breaking changes in favicon between 5.1.3 / 5.1.4. New favicon style was added in 5.1.3 version, see here releases notes.

should I update the favicon path

Of cource u should. Try to:

1. Put your favicons into hexo-site/source/images directory. For example, your icon named swpd.ico, so, path will be hexo-site/source/images/swpd.ico.
2. Then in NexT config section:

favicon:
  small: /images/swpd.ico

3. After that to check icon use https://realfavicongenerator.net (your browser may cache previous NexT icon, so, need to clear cache).

from hexo-theme-next.

swpd avatar swpd commented on May 26, 2024

What earlier version?

v5.1.2. The only config of favicon was favicon: /favicon.ico in this version.

So after new favicon style was added, I only need to config favicon>small if I don't care about responsive favicon, right?

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024

I only need to config favicon>small if I don't care about responsive favicon, right?

U can set only 1 icon, right.

U can also see here about favicon.

from hexo-theme-next.

swpd avatar swpd commented on May 26, 2024

OK. Thank you.

from hexo-theme-next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.