diff --git a/theme/project-page.liquid b/theme/project-page.liquid index 7bd0979..66e930d 100644 --- a/theme/project-page.liquid +++ b/theme/project-page.liquid @@ -4,14 +4,16 @@ {%- 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 %} + {%- 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 -%}