Coder Social home page Coder Social logo

Comments (9)

Yehonal avatar Yehonal commented on June 3, 2024

Hello! I suggest you to use the inc_after_head in _config.yml

It allows you to inject code in the <head> tag of your wiki

  1. create a file with this path: _includes/my_custom_head.html
  2. add <link rel="shortcut icon" type="image/x-icon" href="{{site.url}}/favicon.ico"> to your new file
  3. add your favicon.ico file to your github page root folder or inside the /assets/ folder
  4. set the inc_after_head = 'my_custom_head.html in your _config.yml

Let me know if it works for you

from git-wiki-theme.

sventek-s avatar sventek-s commented on June 3, 2024

Yeah that worked thanks a lot mate. 😊

from git-wiki-theme.

sventek-s avatar sventek-s commented on June 3, 2024

Okay it had worked for a few seconds now it doesn't work.

from git-wiki-theme.

sventek-s avatar sventek-s commented on June 3, 2024

used a png file.

from git-wiki-theme.

Yehonal avatar Yehonal commented on June 3, 2024

Can you send me the link of your repo and the link of the published wiki please?

Maybe it's a CDN cache issue?

from git-wiki-theme.

Yehonal avatar Yehonal commented on June 3, 2024

I've seen your repo

You the url of your image is wrong, it should be:

href="{{site.url}}/assets/images/1200px-Wikipedia-logo-v2.svg_.png">

from git-wiki-theme.

sventek-s avatar sventek-s commented on June 3, 2024

I noticed that bit fixed it but still doesn't work.

from git-wiki-theme.

Yehonal avatar Yehonal commented on June 3, 2024

so your wiki is on a sub-path of the site.url

hence you have 2 possibilities:

{{site.url}}/{{site.baseurl}}/assets/images/1200px-Wikipedia-logo-v2.svg_.png

or the full link directly

https://sventek-s.github.io/sventek-s-wiki/assets/images/1200px-Wikipedia-logo-v2.svg_.png

from git-wiki-theme.

sventek-s avatar sventek-s commented on June 3, 2024

It worked, used the first option, once again thanks a lot mate

from git-wiki-theme.

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.