Git Product home page Git Product logo

Comments (2)

straker avatar straker commented on September 13, 2024

This is a great place to ask questions.

  1. There's no wrong way to go about it, it just depends on what you're trying to do. For example, the FamilySearch Style Guide only uses a single custom handlebars template and just loads the styleguide css in the main page.

  2. It's been awhile for me, so I'm not sure off the top of my head how to do this. Testing your example it looks like it generates the 3 separate pages and the top nav

image

So it seems that all you would need to do is style the top nav as a side nav and you'd be close to what you want.

from livingcss.

welding11 avatar welding11 commented on September 13, 2024

I see, I have gone over the template again with some new found knowledge of the syntax and it all makes a lot more sense now. I didn't realise at first how the js/css was being inserted into the page with the use of partials. I can see how I can replace it all now.

As for the second part, I get what you are getting at and it could possibly work. What I had in mind was something like that but with a title section such as below:

Section A (not a page or link, simply a title)
- page 1
- page 2

Section B (not a page or link, simply a title)
- page 3
- page 4

A bit like

image

I think what you have suggested is a good start and I should be able to experiment. I can always manually do the nav in a partial. Will need to decide if it is worth the effort.

from livingcss.

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.