Help us understand the problem. What is going on with this article?

Bootstrap3のnavigationをslimで書く

More than 3 years have passed since last update.

初めてslimをやってみてBootstrapのナビゲーション周りを書くのに意外と手間取ったので、
その部分だけ抜粋しておこうと思います。

doctype html
html
  head
    meta charset='utf-8'
    title MyPortfolio
    link rel='stylesheet' href='css/lib/bootstrap.css'
    link rel='stylesheet' href='css/styles.css'
  body
    nav.navbar.navbar-default.navbar-fixed-top
      .container
        .navbar-header
          button.navbar-toggle.collapsed type='button' data-toggle='collapse' data-target='#menu'
            span.sr-only Toggle Navigation
            span.icon-bar
            span.icon-bar
            span.icon-bar
          a.navbar-brand href='/' MyPortfolio
        #menu.collapse.navbar-collapse
          ul.nav.navbar-nav.navbar-right
            li
              a href='#about' About
            li
              a href='#portfolio' Portfolio
            li
              a href='#price' Price
            li
              a href='#contact' Contact
    == yield
    script src='js/lib/jquery.js'
    script src='js/lib/bootstrap.js'
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした