File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed
Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 1+ < svg xmlns ="http://www.w3.org/2000/svg " fill ="none " viewBox ="0 0 24 24 " stroke-width ="1.5 " stroke ="#74818c "
2+ width ="12 " height ="12 ">
3+ < path stroke-linecap ="round " stroke-linejoin ="round " d ="m4.5 19.5 15-15m0 0H8.25m11.25 0v11.25 " />
4+ </ svg >
Original file line number Diff line number Diff line change 33 {{ $currentPage := . }}
44 {{ range .Site.Menus.main }}
55 < li class ="menu-item-{{ .Name | lower }}{{ if $currentPage.IsMenuCurrent "main " . }} active{{ end }}">
6- < a href ="{{ .URL }} ">
6+ < a href ="{{ .URL }} "
7+ {{ if or (strings.HasPrefix .URL "http") (strings.HasPrefix .URL "https") }}
8+ target="_blank "
9+ {{ end }} >
710 < span > {{ .Name }}</ span >
11+ {{ if or (strings.HasPrefix .URL "http") (strings.HasPrefix .URL "https") }}
12+ {{ partial "arrow-up-right.html" . }}
13+ {{ end }}
814 </ a >
915 </ li >
1016 {{end}}
Original file line number Diff line number Diff line change 33 {{ $currentPage := . }}
44 {{ range .Site.Menus.main }}
55 < li class ="menu-item-{{ .Name | lower }}{{ if $currentPage.IsMenuCurrent "main " . }} active{{ end }}">
6- < a href ="{{.URL}} ">
6+ < a href ="{{ .URL }} "
7+ {{ if or (strings.HasPrefix .URL "http") (strings.HasPrefix .URL "https") }}
8+ target="_blank "
9+ {{ end }} >
710 {{ .Pre }}
811 < span > {{ .Name }}</ span >
12+ {{ if or (strings.HasPrefix .URL "http") (strings.HasPrefix .URL "https") }}
13+ {{ partial "arrow-up-right.html" . }}
14+ {{ end }}
915 </ a >
1016 </ li >
1117 {{end}}
You can’t perform that action at this time.
0 commit comments