Code Monkey home page Code Monkey logo

Comments (5)

alex-shpak avatar alex-shpak commented on July 22, 2024

Hi!

I made temporary solution in last commit
It works for now, but I will likely change that implementation later.

Solution injects style with attribute selector in each page.

from hugo-book.

SanjanaB-zz avatar SanjanaB-zz commented on July 22, 2024

Hi!
This fix doesnot work for nested sections. Looks like the default function parameters are also toggled. https://gohugo.io/functions/default/

from hugo-book.

alex-shpak avatar alex-shpak commented on July 22, 2024

Ah, sleepy me yesterday. Fixed order in default

About nested menu
image
It worked with setup like this

- [**Introduction**]({{< ref "/" >}})
- [Examples]({{< ref "/docs/examples.md" >}})
    - [With Table of contents]({{< ref "/docs/with-toc.md" >}})
    - [Without Table of Contents]({{< ref "/docs/without-toc.md" >}})
        - [Without Table 1]({{< ref "/docs/server.md" >}})
            - [Without Table 2]({{< ref "/docs/client.md" >}})  

Maybe you can share your menu example with me?

from hugo-book.

SanjanaB-zz avatar SanjanaB-zz commented on July 22, 2024

Hi!
We use relative ref links

- [**Introduction**]({{< relref "/" >}})
- [**Concepts**]({{< relref "introduction/_index.md" >}})
    - [Concepts]({{< relref "introduction/concepts" >}})
- [**Navigation**]({{< relref "navigation/_index.md" >}})
    - [Pipelines]({{< relref "navigation/pipelines.md" >}})

from hugo-book.

alex-shpak avatar alex-shpak commented on July 22, 2024

Update pushed

nav ul a[href$="{{- .RelPermalink -}}"] {

I try to keep theme js-free, not sure for how long it will be possible 😆

from hugo-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.