{% if include.repository %} {% assign repo = include.repository %} {% else %} {% assign repo = "iluwatar/java-design-patterns" %} {% endif %} {% if include.tag %} {% assign tag = include.tag %} {% elsif page.hash %} {% assign tag = page.hash %} {% else %} {% assign tag = "master" %} {% endif %} {% if include.slice %} {% capture slice %}&slice={{ include.slice }}{% endcapture %} {% endif %}