X-Git-Url: https://git.arvados.org/rnaseq-cwl-training.git/blobdiff_plain/2e8a6b0c98b2e93521984c6ad1fe12d00dbc27b6..37404b3d9e326fd084d30780e2817c5b7873eaa8:/_layouts/base.html diff --git a/_layouts/base.html b/_layouts/base.html index d8bbc3b..d8fefd6 100644 --- a/_layouts/base.html +++ b/_layouts/base.html @@ -1,5 +1,21 @@ --- --- + +{% comment %} +When rendering websites locally, `site.github.url` doesn't get resolved +properly unless GitHub PAT are set up and available in the environment. +This leads to warnings and errors when trying to serve the site locally. +To work around this, we use the `jekyll.environment` variable which is set to +`development` when rendering the site locally, and set to `production` on +GitHub where `site.github.url` will be defined. +{% endcomment %} + +{% if jekyll.environment == "development" %} +{% assign search_domain_url = "" %} +{% elsif jekyll.environment == "production" %} +{% assign search_domain_url = site.github.url %} +{% endif %} + @@ -7,16 +23,15 @@ - - - - - {% if site.carpentry == "swc" %} - - {% endif %} - {% if site.carpentry == "dc" %} - - {% endif %} + + + + + + + + {% include favicons.html %} +