How to add ‘About’ page in Octopress?

I needs 2 step for create About page on navigation bar.

  • Firstly create ‘about page’
1
rake new_page\["About"\]

Created new page for about and we linked to About, How?

  • We open
1
/source/_includes/custom/navigation.html

write the 3rd line below:

1
2
3
4
5
   <ul class="main-navigation">
     <li><a href="/">Blog</a></li>
     <li><a href="/blog/archives">Archives</a></li>
     <li><a href="/about">About</a></li>
   </ul>

then we use git command for sent on github

1
2
3
git add .
git commit -m "Your Commit"
git push origin source

And, for see on personal blog we need to deploy your code

1
2
3
rake generate
rake preview   #see on localhost:4000
rake deploy

That’s it!

Comments