Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
irfansofyana committed Jan 8, 2025
1 parent 6351743 commit 7f9b693
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
10 changes: 5 additions & 5 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
title: Today I Learned
html_title: "TIL - Your Daily Learning Notes" # This will be used in the browser tab
title: Irfan's TIL
html_title: "Irfan's TIL" # This will be used in the browser tab
site_name: "Today I Learned" # This will be used in the header and footer
description: A collection of things I learn day to day
baseurl: "/til-template" # Change this to your repo name if not using custom domain
url: "https://irfansp.dev" # Change this to your site URL
description: A collection of things I learn from day to day
baseurl: "/" # Change this to your repo name if not using custom domain
url: "https://til.irfansp.dev" # Change this to your site URL

# Build settings
markdown: kramdown
Expand Down
23 changes: 23 additions & 0 deletions _til/2025-01-08-jekyll-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
layout: post
title: "Jekyll build"
date: 2025-01-08
category: Jekyll
tags: [jekyll, Github Pages]
---

## What I learned

After developing https://github.com/irfansofyana/til-template and deployed it to GitHub actions, I didn't check again whether I can run this project locally or not.

Turns out I can't. It's because the `__config.yml` specified in the repository is for production build and I need to update it when I do development locally. Hence the solution was to add this flag:

```bash
--baseurl ''
```

in the `docker-compose.yml` file to override the baseUrl in the `__config.yml`.

It's a shame that I didn't check this earlier.

Hey this is also my first TIL post on this site!

0 comments on commit 7f9b693

Please sign in to comment.