diff --git a/_config.yml b/_config.yml index 25a1570..e918d0f 100644 --- a/_config.yml +++ b/_config.yml @@ -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 diff --git a/_til/2025-01-08-jekyll-build.md b/_til/2025-01-08-jekyll-build.md new file mode 100644 index 0000000..8cd8d89 --- /dev/null +++ b/_til/2025-01-08-jekyll-build.md @@ -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!