Skip to content

Commit e4a9288

Browse files
fix: open in new links
1 parent 4f24779 commit e4a9288

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

layouts/_default/_markup/render-link.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
<a class="link" href="{{ $url }}">{{ .Text | safeHTML }}</a>
1111
{{- else -}}
1212
<a class="link" href="{{ ref page $url }}">{{ .Text | safeHTML }}</a>
13-
{{- end -}}
13+
{{- end -}}

layouts/partials/github-links.html

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,10 @@
88
{{ if not (in .Filename "/_vendor/") }}
99
<p class="flex items-center gap-1">
1010
<span class="icon-svg icon-sm">
11-
{{ partial "utils/svg.html" "theme/icons/edit.svg" }}
11+
{{ partial "utils/svg.html" "theme/icons/edit.svg" }}
1212
</span>
1313
<a class="link" rel="noopener"
14-
href="{{ site.Params.repo }}/edit/main/content/{{ .Path }}">{{- T "editPage" -}}
15-
<span class="icon-svg icon-sm">
16-
{{ partialCached "icon" "open_in_new" "open_in_new" }}
17-
</span></a>
14+
href="{{ site.Params.repo }}/edit/main/content/{{ .Path }}">{{- T "editPage" -}}</a>
1815
</p>
1916
{{ end }}
2017
{{ end }}
@@ -23,10 +20,6 @@
2320
{{ partial "utils/svg.html" "theme/icons/issue.svg" }}
2421
</span>
2522
<a class="link" rel="noopener"
26-
href="{{ site.Params.repo }}/issues/new?template=doc_issue.yml&location={{ .Permalink }}&labels=status%2Ftriage">{{- T "requestChanges" -}}
27-
<span class="icon-svg icon-sm">
28-
{{ partialCached "icon" "open_in_new" "open_in_new" }}
29-
</span></a>
30-
</a>
23+
href="{{ site.Params.repo }}/issues/new?template=doc_issue.yml&location={{ .Permalink }}&labels=status%2Ftriage">{{- T "requestChanges" -}}</a>
3124
</p>
32-
{{ end }}
25+
{{ end }}

0 commit comments

Comments
 (0)