Giter VIP home page Giter VIP logo

Comments (6)

zzossig avatar zzossig commented on June 30, 2024

I don't understand clearly what you mean.
Do you want to use an svg file instead of a png file?

from hugo-theme-zzo.

Lemania avatar Lemania commented on June 30, 2024

yes only one svg file which would serve as logo for any size, and also favicon

the file could place out of the theme, which we cannot today

from hugo-theme-zzo.

Lemania avatar Lemania commented on June 30, 2024

after these two issues, your theme will be perfect :)

from hugo-theme-zzo.

zzossig avatar zzossig commented on June 30, 2024

As for the favicon, It's not in my code. Hugo controls the favicon. If you put your favicon.ico file in your root/static folder, it should work. So, I think you should generate your favicon.ico file.
And, if you want to use an svg file for the logo, I recommend you to override Zzo theme's partial folder.
In your case, make file at root/layouts/partials/navbar/site-nav.html and then copy-paste code from
themes\zzo\layouts\partials\navbar\site-nav.html
and then edit the file name as you want. You got it?

Let me find out if there is a handy way. I understand what you mean anyway

from hugo-theme-zzo.

zzossig avatar zzossig commented on June 30, 2024

Hey~, I have searched what you requested. I found that there is no magical way to serve logo icons with just one SVG file. I have added the feature to use logo.svg file as a favicon, but not all browsers would support the SVG file. I have tested it in Chrome, Firefox, but Chrome doesn't seem to support it.

You should see this article for more detailed information. - The one-size-fits-all myth

SVG favicon supported browser

As to the navbar logo, If you want to use logo.svg file, you should override or edit directly the navbar.html file as I explained above.

You can make manifest.json file in the static folder that can serve other icons.

My Conclusion: It's impossible that the logo.svg file to serve logo as a whole

Feel free to discus more or reopen this issue.

from hugo-theme-zzo.

Lemania avatar Lemania commented on June 30, 2024

Thanks, I overide navbar.html for the moment

from hugo-theme-zzo.

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.