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 3036852 commit c87db7bCopy full SHA for c87db7b
layouts/_default/_markup/render-link.html
@@ -1,6 +1,13 @@
1
{{- if (not (or (strings.HasPrefix .Destination "http") (strings.HasPrefix .Destination "#"))) }}
2
+ {{ $style := "" }}
3
+ {{ with $.PageInner.GetPage (index (strings.Split .Destination "#") 0) }}
4
+ {{ else }}
5
+ {{ $style = "color:#ba0000" }}
6
+ {{ end }}
7
+
8
<a href="/3dbrew/{{ strings.Replace .Destination ":" "" }}"
9
{{- with .Title }} title="{{ . }}"{{ end -}}
10
+ style={{ $style }}
11
>
12
{{- with .Text }}{{ . }}{{ end -}}
13
</a>
0 commit comments