{%- 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 %}
{%- assign repo_url = page.metadata | value: "repo_url" -%}
{%- if repo_url == "-- repo_url not found --" -%}
{%- capture repo_url %}https://{{ repo_domain }}/bit-badger/{{ repo_name }}{% endcapture -%}
{%- endif -%}
{% if parts_count == 1 -%}
{{ page.title }}
View Source 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 -%}