Skip to content

How to chnage the blog page to something else? #2483

Answered by george-gca
muditbhargava66 asked this question in Q&A
Discussion options

You must be logged in to vote

Ok now I get it. You'll need to do a change in _includes/header.liquid, more specifically do something like this part:

<li class="nav-item {% if page.url contains p.permalink %}active{% endif %}">
  {% if p.permalink contains '/blog/' %}{% assign url = '/blog/' %} {% else %}{% assign url = p.url %}{% endif %}
  <a class="nav-link" href="{{ url | relative_url }}">
    {{- p.title }}
    {% if page.url contains p.url %}
      <span class="sr-only">(current)</span>
    {% endif %}
  </a>
</li>

But simply set the href to your xyz.github.io/notes. Just note that this part of the code is responsible for creating all the pages in the header in the order they were set, so if you want the blog to …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by george-gca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants