From bfe927d3051719eae25dd5d37121639fe93010e9 Mon Sep 17 00:00:00 2001 From: Adnan Maolood Date: Sat, 5 Feb 2022 14:27:17 -0500 Subject: [PATCH] gitsrht/templates/repo: Remove go-source meta tag The go-source meta tag was only used by godoc.org, which is now obsolete. We should encourage the use of forge meta tags instead. --- gitsrht/templates/repo.html | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/gitsrht/templates/repo.html b/gitsrht/templates/repo.html index 2a6edc7..2bf5a6b 100644 --- a/gitsrht/templates/repo.html +++ b/gitsrht/templates/repo.html @@ -5,6 +5,7 @@ {% if repo.visibility.value =='unlisted' %} {% endif %} +{# VCS meta tags #} {% if default_branch %} {% set default_branch_name = default_branch.raw_name.decode("utf-8", "replace")[len("refs/heads/"):] %} @@ -14,25 +15,15 @@ {% for clone_url in (repo | clone_urls) %} {% endfor %} +{# Forge meta tags #} {% set project_root = root + url_for("repo.summary", owner=repo.owner.canonical_name, repo=repo.name) %} - -{# Man, this is lame #} - -{% if default_branch %} - {% set default_branch_name = default_branch.raw_name.decode("utf-8", "replace")[len("refs/heads/"):] %} - -{% endif %} +{# Go meta tags #} + {% endblock %} {% block body %}
-- 2.38.4