problems with shiny htmlTemplate

Hello, I'm a student, I want to build a website through shiny, because I don't know much about javascript.
I learn examples from Rstudio,but there are some quetions.

  1. The website consists of 6 web pages
    when I code:
    image
    the website is:
  2. When I switch pages:

Could someone help me solve these question?