Verified Commit f01f5c0a authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

update instructions and if conds

parent 19ade4fb
......@@ -28,7 +28,7 @@
src='{{site.gitlab_host}}/assets/webpack/visual_review_toolbar.js'></script>
{%- endif -%}
{%- if jekyll.environment == 'production' and site.google_analytics -%}
{%- include google-analytics.html -%}
{%- if jekyll.environment == 'production' and site.siteID > 0 -%}
{%- include analytics.html -%}
{%- endif -%}
</head>
......@@ -15,8 +15,8 @@
{%- include css-imports.html -%}
{%- if jekyll.environment == 'production' and site.google_analytics -%}
{%- include google-analytics.html -%}
{%- if jekyll.environment == 'production' and site.siteID > 0 -%}
{%- include analytics.html -%}
{%- endif -%}
</head>
......
......@@ -113,15 +113,25 @@ pagination:
To disable it completely, set `enabled` to `false`, remove the aforementioned sections from the configuration, and `gem "jekyll-paginate-v2", "~> 1.7"` from `Gemfile` (from the project's root), and remove `pagination.md` file from project's root directory.
Refer to its [documentation](https://github.com/sverrirs/jekyll-paginate-v2/blob/master/README-GENERATOR.md) for more detailed instructions.
### Enabling Google Analytics
### Analytics
To enable Google Anaytics, add the following lines to your Jekyll site:
To enable the LCSB Anaytics Platform, add the following lines to your Jekyll site:
```yaml
google_analytics: UA-NNNNNNNN-N
banner_text: >-
This website needs some cookies and similar means to function.<br>
If you permit us, we will use those means to collect data on your visits for aggregated statistics to improve our service.
banner_accept_text: >-
Accept cookies for aggregated statistics
banner_refuse_text: >-
No thanks, only technically necessary cookies
banner_more_text: >-
More information
cookies_expire: 180 # days
analyticsurl: https://analytics.lcsb.uni.lu/hub/
siteID: -1 # you get this siteID (>0) by sending an email to lcsb-r3@uni.lu
```
## Development
To set up your environment to develop this theme, run `bundle install`.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment