diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ee96def95ad06e3be1ee949a49cb54864bb11236..0a7f2bf82ab7b4bf838ddc456c26cafce2ae35d8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -138,6 +138,7 @@ pages: - cp -r site .public - sed -i -e "s|%BUILDDATE%|$(date +'%Y-%m-%d %H:%M')|g" .public/index.html - sed -i -e "s|%VERSION%|$(cat version)|g" .public/index.html + - sed -i -e "s|%PROJECT_URL%|$CI_PROJECT_URL|g" .public/index.html - cp safelinks-cleaner-firefox-beta.xpi .public - cp safelinks-cleaner-thunderbird-beta.xpi .public - mv .public public diff --git a/site/index.html b/site/index.html index 90b488cbc6275a12686f7aa4ac1ac62a83750aa3..e868aad93e0ae9aa68c53eba192ea9e3c05a80d9 100644 --- a/site/index.html +++ b/site/index.html @@ -117,8 +117,7 @@ Get the source code for Safe Links Cleaner from Linköping University Gitlab. </p> - <a class="btn btn-orange" - href="https://gitlab.liu.se/safelinks/safelinks-cleaner-thunderbird"> + <a class="btn btn-orange" href="%PROJECT_URL%"> Get the source </a> </div><!--//item-inner-->