--- nav: docs --- {% assign versioned_url_parts = page.url | split: '/' | shift | shift %} {% assign current_version = versioned_url_parts.first %} {% assign version_components = current_version | split: '.' %} {% if version_components.size < 2 %} {% assign major_version = "master" %} {% assign minor_version = "master" %} {% else %} {% assign major_version = version_components[0] | plus:0 %} {% assign minor_version = version_components[1] | plus:0 %} {% endif %} {% include head.html current_version=current_version %} {% include header.html %}
{{ content }}
{% include footer.html %}