Skip to content

Improve use-case navigation #64

Open
@k-wall

Description

@k-wall
          What's the goal? To be able to navigate _to_ each use case, or to be able to navigate _within_ each use case? If you look at what's been done for the [docs layout](https://github.com/kroxylicious/kroxylicious.github.io/blob/main/_layouts/docs.html), with the internal navigation in a sidebar, does that sort of achieve what you're after?

If we want to repurpose that layout for the use cases we'll have to duplicate it, the docs layout is set up to process AsciiDoc rather than markdown.

Otherwise if you just want buttons that take you to each use case, there's always the Slugify filter. Something like:

{% for use_case in site.use_cases %}
    {% include my_cool_button.html label=use_case.name %}
{% endfor %}

and then in _includes/my_cool_button.html you'd have something like this (bootstrap button docs):

<button type="button" class="btn btn-primary" href="#{{ name | slugify }}">
    {{ name }}
</button>

and then you just arrange those buttons however you'd like by adding structure around them with grid components in _layouts/use_cases.html (you wouldn't need the card-text div in that case). The name property already exists in the existing use case front matter so it's just a matter of passing it through slugify to get something URL-safe.

Originally posted by @gracegrimwood in #63 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions