We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e4790e commit 554aaabCopy full SHA for 554aaab
layouts/_default/_markup/render-link.html
@@ -17,17 +17,6 @@
17
{{ end }}
18
<a class="link" href="{{ $url }}">{{ .Text | safeHTML }}</a>
19
{{- else -}}
20
- {{/* check if the file links to index.md */}}
21
- {{- if (strings.FindRE `([^_]|^)index.md` $url 1) -}}
22
- <a
23
- class="link"
24
- href="{{ ref page (strings.Replace $url "index.md" "_index.md") }}"
25
- >{{ .Text | safeHTML }}</a
26
- >
27
- {{- else -}}
28
- {{/* relative link, use ref */}}
29
- <a class="link" href="{{ ref page $url }}"
30
31
32
- {{- end -}}
+ {{/* relative link, use ref */}}
+ <a class="link" href="{{ ref page $url }}">{{ .Text | safeHTML }}</a>
33
{{- end -}}
0 commit comments