File tree 6 files changed +12
-12
lines changed
themes/tianheg/layouts/partials
6 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 7
7
{{- $linkType := (string .Pre) -}}
8
8
{{- $iconName := (string .Post) -}}
9
9
{{- $icon := (index $.Site.Data.SVG $iconName) -}}
10
- < a href ="{{ .URL }} "{{ if eq $linkType "external" }} target="_blank " rel ="external noopener "{{ end }} > {{ partial "utils/icon.html" (dict "$" $ "name" $iconName "class" .Identifier) }}{{ .Name }}</ a >
10
+ < a href ="{{ .URL }} "{{ if eq $linkType "external" }} target="_blank " rel ="external "{{ end }} > {{ partial "utils/icon.html" (dict "$" $ "name" $iconName "class" .Identifier) }}{{ .Name }}</ a >
11
11
{{ end }}
12
12
</ div >
13
13
{{ end }}
17
17
{{- $linkType := (string .Pre) -}}
18
18
{{- $iconName := (string .Post) -}}
19
19
{{- $icon := (index $.Site.Data.SVG $iconName) -}}
20
- < a href ="{{ .URL }} "{{ if eq $linkType "external" }} target="_blank " rel ="external noopener "{{ end }} > {{ partial "utils/icon.html" (dict "$" $ "name" $iconName "class" .Identifier) }}{{ .Name }}</ a >
20
+ < a href ="{{ .URL }} "{{ if eq $linkType "external" }} target="_blank " rel ="external "{{ end }} > {{ partial "utils/icon.html" (dict "$" $ "name" $iconName "class" .Identifier) }}{{ .Name }}</ a >
21
21
{{ end }}
22
22
</ div >
23
23
{{ end }}
Original file line number Diff line number Diff line change 4
4
< ul class ="post-copyright ">
5
5
< li class ="copyright-item author ">
6
6
{{- with $author.website -}}
7
- < span class ="copyright-item-text "> {{ i18n "copyrightAuthor" }}</ span > {{ i18n "colon" }}< a href ="{{ . }} " class ="p-author h-card " target ="_blank " rel =" noopener " > {{ $author.name }}</ a >
7
+ < span class ="copyright-item-text "> {{ i18n "copyrightAuthor" }}</ span > {{ i18n "colon" }}< a href ="{{ . }} " class ="p-author h-card " target ="_blank "> {{ $author.name }}</ a >
8
8
{{- else -}}
9
9
< span class ="copyright-item-text "> {{ i18n "copyrightAuthor" }}</ span > {{ i18n "colon" }}< span class ="p-author h-card "> {{ $author.name }}</ span >
10
10
{{- end -}}
14
14
{{ $decodedPath := $url.Path }}
15
15
{{ $baseURLWithLangFix := (strings.TrimSuffix "/" (print `/` | absLangURL)) }}
16
16
{{ $decodedPermalink := (printf `%s%s` $baseURLWithLangFix $decodedPath) }}
17
- < li class ="copyright-item link "> < span class ="copyright-item-text "> {{ i18n "copyrightLink" }}</ span > {{ i18n "colon" }}< a href ="{{ $.RelPermalink }} " target ="_blank " rel =" noopener " > {{ $decodedPermalink }}</ a > </ li >
17
+ < li class ="copyright-item link "> < span class ="copyright-item-text "> {{ i18n "copyrightLink" }}</ span > {{ i18n "colon" }}< a href ="{{ $.RelPermalink }} " target ="_blank "> {{ $decodedPermalink }}</ a > </ li >
18
18
{{ else }}
19
19
{{ with $.Params.link }}
20
- < li class ="copyright-item link "> < span class ="copyright-item-text "> {{ i18n "copyrightLink" }}</ span > {{ i18n "colon" }}< a href ="{{ . }} " target ="_blank " rel =" noopener " > {{ . }}</ a > </ li >
20
+ < li class ="copyright-item link "> < span class ="copyright-item-text "> {{ i18n "copyrightLink" }}</ span > {{ i18n "colon" }}< a href ="{{ . }} " target ="_blank "> {{ . }}</ a > </ li >
21
21
{{ end }}
22
22
{{ end }}
23
23
{{ with $author.copyright }}
Original file line number Diff line number Diff line change 13
13
{{ if .Site.Params.displayCommitHash }}
14
14
< div class ="gitinfo-item commit ">
15
15
{{- with .Site.Params.repoURL -}}
16
- < a href ="{{ . }}/commit/{{ $.GitInfo.Hash }} " target ="_blank " rel =" noopener " >
16
+ < a href ="{{ . }}/commit/{{ $.GitInfo.Hash }} " target ="_blank ">
17
17
{{- partial "utils/icon.html" (dict "$" $ "name" $.Site.Params.gitIcon "class" "git-icon") -}}
18
18
{{- $.GitInfo.AbbreviatedHash -}}
19
19
</ a >
38
38
{{ if .Site.Params.displayFeedback }}
39
39
{{ with .Site.Params.repoURL }}
40
40
< div class ="gitinfo-item feedback ">
41
- < a href ="{{ . }}/issues " target ="_blank " rel =" noopener " >
41
+ < a href ="{{ . }}/issues " target ="_blank ">
42
42
{{- partial "utils/icon.html" (dict "$" $ "name" $.Site.Params.feedbackIcon "class" "feedback-icon") -}}
43
43
{{- $.Site.Params.feedbackText -}}
44
44
</ a >
49
49
{{ with .Site.Params.repoEditURL }}
50
50
{{ $contentDir := (cond $.Site.IsMultiLingual (printf `/%s/` $.Site.Params.contentDir) "/content/") }}
51
51
< div class ="gitinfo-item edit ">
52
- < a href ="{{ . }}{{ $contentDir }}{{ replace $path "\\ " "/" }}" target="_blank " rel =" noopener " >
52
+ < a href ="{{ . }}{{ $contentDir }}{{ replace $path "\\ " "/" }}" target="_blank ">
53
53
{{- partial "utils/icon.html" (dict "$" $ "name" $.Site.Params.editIcon "class" "edit-icon") -}}
54
54
{{- $.Site.Params.editText -}}
55
55
</ a >
Original file line number Diff line number Diff line change 38
38
{{ else }}
39
39
< li class ="menu-item{{ if or ($currentPage.IsMenuCurrent "main " .) ($currentPage.HasMenuCurrent "main" .) }} active{{ end }}">
40
40
{{- $linkType := (string .Pre) -}}
41
- < a href ="{{ .URL }} "{{ if eq $linkType "external" }} target="_blank " rel ="external noopener "{{ end }} >
41
+ < a href ="{{ .URL }} "{{ if eq $linkType "external" }} target="_blank " rel ="external "{{ end }} >
42
42
{{- $iconName := (string .Post) -}}
43
43
{{- partial "utils/icon.html" (dict "$" $ "name" $iconName "class" .Identifier) -}}
44
44
{{- with .Name -}}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ <h1>{{ .Site.Params.homeTitle }}</h1>
26
26
{{ range $index, $value := . }}
27
27
{{- $linkType := (string .Pre) -}}
28
28
{{- $iconName := (string .Post) -}}
29
- < a href ="{{ .URL }} "{{ if eq $linkType "external" }} target="_blank " rel ="external noopener "{{ end }} > {{ partial "utils/icon.html" (dict "$" $ "name" $iconName "class" .Identifier) }}{{ .Name }}</ a >
29
+ < a href ="{{ .URL }} "{{ if eq $linkType "external" }} target="_blank " rel ="external "{{ end }} > {{ partial "utils/icon.html" (dict "$" $ "name" $iconName "class" .Identifier) }}{{ .Name }}</ a >
30
30
{{- if lt $index $length -}}
31
31
{{- $.Site.Params.homeLinksDelimiter -}}
32
32
{{- end -}}
Original file line number Diff line number Diff line change 12
12
{{ range . }}
13
13
{{- $linkType := (string .Pre) -}}
14
14
{{- $iconName := (string .Post) -}}
15
- < a href ="{{ .URL }} " class ="links-item "{{ if eq $linkType "external" }} target="_blank " rel =" noopener " {{ end }} > {{ partial "utils/icon.html" (dict "$" $ "name" $iconName "class" .Identifier) }}{{ .Name }}</ a >
15
+ < a href ="{{ .URL }} " class ="links-item "{{ if eq $linkType "external" }} target="_blank "{{ end }} > {{ partial "utils/icon.html" (dict "$" $ "name" $iconName "class" .Identifier) }}{{ .Name }}</ a >
16
16
{{ end }}
17
17
</ div >
18
18
{{ end }}
19
19
</ main >
20
- {{ partial "footer.html" . }}
20
+ {{ partial "footer.html" . }}
You can’t perform that action at this time.
0 commit comments