forked from tangled.org/core
Monorepo for Tangled — https://tangled.org

appview: pages/templates/repo/fragments: replace k1.t.s -> t.s in template

Changed files
+6 -8
appview
pages
templates
repo
state
+6 -2
appview/pages/templates/repo/fragments/cloneInstructions.html
···
{{ define "repo/fragments/cloneInstructions" }}
+
{{ $knot := .RepoInfo.Knot }}
+
{{ if eq $knot "knot1.tangled.sh" }}
+
{{ $knot = "tangled.sh" }}
+
{{ end }}
<section
class="mt-4 p-6 rounded bg-white dark:bg-gray-800 dark:text-white w-full mx-auto overflow-auto flex flex-col gap-4"
>
···
<div class="md:pl-4 overflow-x-auto whitespace-nowrap">
<code class="dark:text-gray-100"
>git remote add origin
-
git@{{ .RepoInfo.Knot }}:{{ .RepoInfo.OwnerHandle }}/{{ .RepoInfo.Name }}</code
+
git@{{ $knot }}:{{ .RepoInfo.OwnerHandle }}/{{ .RepoInfo.Name }}</code
>
</div>
</div>
···
<div class="overflow-x-auto whitespace-nowrap flex-1">
<code class="dark:text-gray-100"
>git clone
-
git@{{ .RepoInfo.Knot }}:{{ .RepoInfo.OwnerHandle }}/{{ .RepoInfo.Name }}</code
+
git@{{ $knot }}:{{ .RepoInfo.OwnerHandle }}/{{ .RepoInfo.Name }}</code
>
</div>
</div>
-4
appview/state/repo.go
···
-
if knot == "knot1.tangled.sh" {
-
knot = "tangled.sh"
-
}
-
repoInfo := repoinfo.RepoInfo{
OwnerDid: f.OwnerDid(),
OwnerHandle: f.OwnerHandle(),
-2
go.sum
···
github.com/ipfs/bbloom v0.0.4/go.mod h1:cS9YprKXpoZ9lT0n/Mw/a6/aFV6DTjTLYHeA+gyqMG0=
github.com/ipfs/go-block-format v0.2.0 h1:ZqrkxBA2ICbDRbK8KJs/u0O3dlp6gmAuuXUJNiW1Ycs=
github.com/ipfs/go-block-format v0.2.0/go.mod h1:+jpL11nFx5A/SPpsoBn6Bzkra/zaArfSmsknbPMYgzM=
-
github.com/ipfs/go-cid v0.4.1 h1:A/T3qGvxi4kpKWWcPC/PgbvDA2bjVLO7n4UeVwnbs/s=
-
github.com/ipfs/go-cid v0.4.1/go.mod h1:uQHwDeX4c6CtyrFwdqyhpNcxVewur1M7l7fNU7LKwZk=
github.com/ipfs/go-cid v0.5.0 h1:goEKKhaGm0ul11IHA7I6p1GmKz8kEYniqFopaB5Otwg=
github.com/ipfs/go-cid v0.5.0/go.mod h1:0L7vmeNXpQpUS9vt+yEARkJ8rOg43DF3iPgn4GIN0mk=
github.com/ipfs/go-datastore v0.6.0 h1:JKyz+Gvz1QEZw0LsX1IBn+JFCJQH4SJVFtM4uWU0Myk=