Skip to content

Commit 043e134

Browse files
committed
Add local configuration file for Jekyll overrides and update dev environment settings
1 parent da97b5f commit 043e134

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

_config.local.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This file contains only local overrides for Jekyll settings.
2+
# It is used together with _config.yml when running locally.
3+
# The two lines below ensure that:
4+
# - baseurl: "" disables the subpath, so local asset and link paths work without a prefix.
5+
# - url: "http://localhost:4000" sets the site URL for local development.
6+
# All other settings are inherited from _config.yml.
7+
baseurl: ""
8+
url: "http://localhost:4000"

_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
title: Spectral
33
44
description: The Jekyll version of the Spectral theme by HTML5 UP.
5-
baseurl: "" # the subpath of your site, e.g. /blog
6-
url: "" # the base hostname & protocol for your site
5+
baseurl: "/spectral-jekyll-theme" # the subpath of your site, e.g. /blog
6+
url: "https://janhalen.github.io" # the base hostname & protocol for your site
77

88
# Homepage tiles
99
tiles-source: posts # accepts "posts" or "pages"

dev-environment.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ spec:
2525
containers:
2626
- name: jekyll
2727
image: ghcr.io/bretfisher/jekyll-serve:latest
28+
# The command below tells Jekyll to merge _config.yml (main settings)
29+
# and _config.local.yml (local overrides) when serving the site.
30+
# This allows you to keep most settings in one file and override only what's needed for local dev.
31+
command: ["jekyll", "serve", "--config", "_config.yml,_config.local.yml"]
2832
ports:
2933
- containerPort: 4000
3034
hostPort: 4000
@@ -33,5 +37,3 @@ spec:
3337
volumeMounts:
3438
- mountPath: /site
3539
name: jekyll-shared-spectral
36-
# This mounts the host directory into the container at /site
37-
# Jekyll will serve content from this path

0 commit comments

Comments
 (0)