Giter Site home page Giter Site logo

Comments (4)

gaow avatar gaow commented on September 13, 2024 1

Thank you @choldgraf it works flawlessly!

from jupyter-book.

choldgraf avatar choldgraf commented on September 13, 2024

That's a great idea - it seems this could be done with a yaml config option like sidebar_logo_link: "". Then in the sidebar.html template, do something like:

{% if site.sidebar_logo_link | length < 1 %}
{% capture sidebar_logo %}{{ site.baseurl | relative_url }}
{% else %}
{% capture sidebar_logo_link %}{{ site.sidebar_logo_link }}
{% endif %}

then

wrap the logo in <a href="{{ sidebar_logo_link }}">...

I can try to look into this in the next few days, though a PR is most-welcome! :-)

from jupyter-book.

gaow avatar gaow commented on September 13, 2024

Thank you @choldgraf your pointer above seems perfectly clear even though I'm not familiar with jekyll at all. I tried to add those relevant code in _layouts/sidebar.html but got this error:

  Liquid Exception: Liquid syntax error (/home/gaow/Documents/GIT/wiki/dsc-wiki/jupyter-book/_includes/sidebar.html line 19): capture tag does not expect 'else' tag included in /_layouts/default.html

in any case would be nice if you could take a look at when you get a chance. Or else I can certainly give it a stab at when I have a chance to learn some more of it later ...

from jupyter-book.

choldgraf avatar choldgraf commented on September 13, 2024

I think I got it figured out - wanna give it a shot? :-)

from jupyter-book.

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.