{%- assign parts = page.title | split: ' ยป ' -%} {%- assign parts_count = parts | size -%} {%- capture repo_name %}{% if parts_count == 1 %}{{ page.title }}{% else %}{{ parts[0] }}{% endif %}{% endcapture -%} {%- assign is_github = page.metadata | value: "is_github" -%} {%- capture repo_domain %}{% if is_github == "true" %}github.com{% else %}git.bitbadger.solutions{% endif %}{% endcapture %} {%- capture repo_text %}{% if is_github == "true" %}GitHub{% else %}Source{% endif %}{% endcapture %}

{% if parts_count == 1 -%} {{ page.title }}
View {{ repo_text }} Repo {% if is_logged_on %} • Edit Page{% endif %} {%- else -%} {{ parts[0] }} {% if is_logged_on %} • Edit{% endif %}
{{ parts[1] }} {%- endif %}

{{ page.text }} {% if parts_count > 1 -%}