Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8800031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:28:49+00:00 2026-06-14T00:28:49+00:00

My blog is built with Jekyll on Github. In the navigation bar, the default

  • 0

My blog is built with Jekyll on Github. In the navigation bar, the default order is Pages, Messages, About, Archives. I want to change the list to Pages, Archives, About, Messages. What should I do?

I think it is related to the code below

{% assign pages_list = site.pages %}

I think site.pages is what I should change, but I don’t know how.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T00:28:50+00:00Added an answer on June 14, 2026 at 12:28 am

    The order of your navbar menu is determined by the HTML template in _layout (which may be pulling in HTML fragments from _includes.

    It sounds like your navbar is being programatically generated from the list of pages provided in site.pages using the liquid code

    {% assign pages_list = site.pages %}
    

    If you have only a small number of pages, you may prefer to just write the list out manually. site.pages is Jekyll’s alphabetical list of all pages. Nothing stops you from just hardcoding this instead:

     <div class="navbar" id="page-top">
          <div class="navbar-inner">
            <div class="container">
              <a class="brand" href="/">EverCoding.net</a>
              <ul class="nav">
                <li><a href="/pages.html">Pages</a></li>        
            <li><a href="/archive.html">Archive</a></li>
            <li><a href="/about.html">About</a></li>
            <li><a href="/messages.html">Messages</a></li>
    

    Whereas I’m guessing at the moment you have that list generated programmatically, perhaps by following the way Jekyll-bootstrap does with liquid code:

    <div class="navbar">
          <div class="navbar-inner">
            <div class="container">
              <a class="brand" href="{{ HOME_PATH }}">{{ site.title }}</a>
              <ul class="nav">
                {% assign pages_list = site.pages %}
                {% assign group = 'navigation' %}
                {% include JB/pages_list %}
              </ul>
            </div>
          </div>
        </div>
    

    The liquid code in this second example is handy if you really want to determine the menu each time, but if you have a static menu in a static order you are probably best coding it by hand as in my first example, rather than modifying the liquid code to sort.

    If you could link to the Jekyll source, rather than the published blog, we could be more specific.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have built a blog and now want to show a list of archive
i want build a blog using jekyll and octopress. but an error happened when
I have a blog built with Ruby, but I frequently blog about Objective-C topics.
I want to have a blog feature in my website.Website is built using .net
I have a website built in MVC3. I want to integrate a wordpress blog
I'm working on a blog migration from a custom built blog to Wordpress. One
I have built a very simple blog application using Ruby on Rails. New to
i have wordpress blog in my custom built website, i am displaying some posts
I have been asked to add a blog for a website built in Drupal
I have a cakePhp application built, and now I'm creating a simple blog based

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.