diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a1b815341163fc413526b432c6ee61e0e2386a7a..745a3b1ff641664742f52bbe7b19295228e27b41 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,14 +11,13 @@ stages:
   - build
   - push
 
-before_script:
-  - hugo version
-
 build:
+  before_script:
+    - hugo version
   stage: build
   script:
     - cp custom.html themes/blowfish/layouts/partials/home/custom.html
-    - hugo -D
+    - hugo --baseURL="https://es.hackmeeting.org/${DEST_DIRECTORY}"
   artifacts:
     paths:
       - public