Watts-College / cpp-527-fall-2021

A course shell for CPP 527 Foundations of Data Science II
https://watts-college.github.io/cpp-527-fall-2021/
2 stars 6 forks source link

Lab 05 - Step 03 #42

Open RachNicely opened 2 years ago

RachNicely commented 2 years ago

Hello! I forked the Professor Claudia Hauff and have completed all the steps for the lab except for step 03 which adds multiple pages under the Resource section in the nav:

# List of links in the navigation bar
navbar-links:
  About Me: "aboutme"
  Resources:
    - Beautiful Jekyll: "http://deanattali.com/beautiful-jekyll/"
    - Learn markdown: "http://www.markdowntutorial.com/"
    - Getting Started: "getstarted"                         # ADD THIS LINK
  Author's home: "http://deanattali.com"

I have copied this exact format but the subpages under Resources are not quite rendering as they should on my GitHub page.

image

I think this might be a side effect from using Professor Claudia Hauff's site versus forking the Beautiful Jekyll site but I can't seem to figure out a way to make it work. I can clearly workaround the issue by just removing the list and keep each page in the nav without a dropdown but I'd like to figure this one out.

My site: https://rachnicely.github.io/ My code: https://github.com/RachNicely/RachNicely.github.io

lecy commented 2 years ago

I think that Claudia Hauff has changed the site significantly since I started using it as an example.

You can use a flat menu bar without drop-down options:

navbar-links:
  About Me: "aboutme"
  Beautiful Jekyll: "http://deanattali.com/beautiful-jekyll/"
  Learn markdown: "http://www.markdowntutorial.com/"
  Getting Started: "getstarted" 
  Author's home: "http://deanattali.com"

Otherwise you can replace your current nav.html file with the original:

https://github.com/daattali/beautiful-jekyll/blob/master/_includes/nav.html

But that is more work than I was expecting of you at this stage.

lecy commented 2 years ago

@RachNicely Did that work?

RachNicely commented 2 years ago

@lecy I chose to go with the flat menu bar route and the code you provided works. Thanks!