Commit d2d8ea78 authored by David Hrbáč's avatar David Hrbáč

Code menu links

parent e354d2c8
Pipeline #5229 failed with stages
in 1 minute and 32 seconds
......@@ -4,12 +4,12 @@
{% if toc_ | first is defined and "\x3ch1 id=" in page.content %}
{% set toc_ = (toc_ | first).children %}
{% endif %}
{% if page.abs_url.rstrip('/') == '' %}
{% if page.abs_url == '/' %}
{% set it4i_link = config.repo_url + '/edit/master/docs.it4i/index.md' %}
{% set it4i_page = '/index.md' %}
{% set it4i_url = 'https://docs.it4i.cz' %}
{% else %}
{% set it4i_link = config.repo_url + '/edit/master/docs.it4i' + page.abs_url.rstrip('index.html').rstrip('/') + '.md' %}
{% set it4i_link = config.repo_url + '/edit/master/docs.it4i/' + page.url.rstrip('/') + '.md' %}
{% set it4i_page = page.abs_url.rstrip('index.html').rstrip('/') + '.md' %}
{% set it4i_url = 'https://docs.it4i.cz' + page.abs_url %}
{% endif %}
......
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