New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable proper titles for Nodes #1051

Closed
bep opened this Issue Apr 5, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@SystemZ

This comment has been minimized.

Show comment
Hide comment
@SystemZ

SystemZ Aug 18, 2015

Is there any simple method to get normal, non lowercase string from $key variable as used in documentation? This small bug is driving me crazy for few hours now 😞 Variables in hugo are little confusing and I can't get $key by other method.

http://gohugo.io/taxonomies/displaying/

<section id="menu">
    <ul>
        {{ range $key, $taxonomy := .Site.Taxonomies.categories }}
        <li> {{ $key }} </li>
        <ul>
            {{ range $taxonomy.Pages }}
            <li hugo-nav="{{ .RelPermalink}}"><a href="{{ .Permalink}}"> {{ .LinkTitle }} </a> </li>
            {{ end }}
        </ul>
        {{ end }}
    </ul>
</section>

SystemZ commented Aug 18, 2015

Is there any simple method to get normal, non lowercase string from $key variable as used in documentation? This small bug is driving me crazy for few hours now 😞 Variables in hugo are little confusing and I can't get $key by other method.

http://gohugo.io/taxonomies/displaying/

<section id="menu">
    <ul>
        {{ range $key, $taxonomy := .Site.Taxonomies.categories }}
        <li> {{ $key }} </li>
        <ul>
            {{ range $taxonomy.Pages }}
            <li hugo-nav="{{ .RelPermalink}}"><a href="{{ .Permalink}}"> {{ .LinkTitle }} </a> </li>
            {{ end }}
        </ul>
        {{ end }}
    </ul>
</section>
@bep

This comment has been minimized.

Show comment
Hide comment
@bep

bep Aug 18, 2015

Member

@SystemZ see #1180 for some related commits -- which I believe is still in the DEV version of Hugo.

Member

bep commented Aug 18, 2015

@SystemZ see #1180 for some related commits -- which I believe is still in the DEV version of Hugo.

@bep

This comment has been minimized.

Show comment
Hide comment
@bep

bep Jul 21, 2016

Member

Will be fixed by #2297.

Member

bep commented Jul 21, 2016

Will be fixed by #2297.

@bep bep closed this Jul 21, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment