0

I recently just set up a GitHub Pages. Hooray! This is very exciting for me.

I've been having endless issues with inserting the baseurl for the "post" layout; not for anything else (e.g. default, page). I have no idea why.

Here's the setup:

url: "https://[user].github.io" # the base hostname & protocol for your site, e.g. http://example.com
# this means to ignore newlines until "baseurl:"
baseurl: "/portfolio" # the subpath of your site, e.g. /blog

For "page" layout, I have the following:

---
layout: page
title: About
permalink: /about
---

# About page

This page tells you a little bit about me.

No issue - https://[user].github.io/portfolio/about

With a post, however, I've coded the following:

---
layout: post
title:  "Space Race Project"
date:   2023-02-11 17:09:05 -0500
categories: excel
# permalink: /:categories/:title/
---

And the result - http://[user].github.io/python/pet-sales/

Why is it excluding the baseurl, "portfolio?" It leads to a 404 error.

Any help would be so appreciated.

Alex
  • 15
  • 3

0 Answers0