Giter VIP home page Giter VIP logo

Comments (3)

ankitsultana avatar ankitsultana commented on June 14, 2024 1

At the moment, the answer is no. This could be thought of as an enhancement. I will look at this over the weekend.

from researcher.

ankitsultana avatar ankitsultana commented on June 14, 2024 1

I have added support for the institute logo at the top. Check out the README for more info.

from researcher.

AndreaCallia avatar AndreaCallia commented on June 14, 2024

In the mean time I have found a workaround made of two main changes.

In _config.yml I set the title as below.

 title: "<img src=logo.jpg><br />Name Surname"

And, in order to avoid putting the HTML tags in the <title> tag, I use strip_html in liquid as shown below in the default.html file.

<title>{% if page.title %}{{ page.title | strip_html }}{% else %}{{ site.title | strip_html }}{% endif %}</title>

In _config.yml you can also nest the <img> tag into a <a> tag if you want the logo to be a link to the institute (otherwise it would point to your index.html page as it is inside the title field). Again, thanks to strip_html the <a> tag will also be filtered out when generating the <title> tag.

I hope this helps.

PS @ankitsultana If you are too busy to make better improvements, you can modify your default.html file as I did, and you can add to your README.md the above instructions to add the logo in the title: field of _config.yml.

from researcher.

Related Issues (12)

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.