diff --git a/.gitignore b/.gitignore index b4b4347..1c9d475 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,7 @@ _site # nix packages .direnv +result # Environment variables .env diff --git a/_data/site.js b/_data/site.js new file mode 100644 index 0000000..e214bbe --- /dev/null +++ b/_data/site.js @@ -0,0 +1,7 @@ +module.exports = { + // Set SITE_URL environment variable to build for different domains: + // SITE_URL=https://blog.jan-leila.com pnpm run build + // SITE_URL=https://volpe.jan-leila.com pnpm run build + // SITE_URL=http://your-onion-address.onion pnpm run build + url: process.env.SITE_URL || "http://localhost:8080" +}; \ No newline at end of file diff --git a/_includes/base.njk b/_includes/base.njk index a1186f7..394a3fa 100644 --- a/_includes/base.njk +++ b/_includes/base.njk @@ -3,9 +3,47 @@
-