Use link title where possible
This commit is contained in:
@@ -14,10 +14,10 @@
|
||||
{{ $series := $page.GetTerms "series" | and ($page.Param "paige.page.disable_series" | not) }}
|
||||
{{ $tags := $page.GetTerms "tags" }}
|
||||
{{ $time := $page.ReadingTime | and ($page.Param "paige.page.disable_reading_time" | not) }}
|
||||
{{ $title := $page.Title | markdownify | and ($page.Param "paige.page.disable_title" | not) }}
|
||||
{{ $title := $page.LinkTitle | markdownify | and ($page.Param "paige.page.disable_title" | not) }}
|
||||
{{ $toc := and $page.Content (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) | and ($page.Param "paige.page.disable_toc" | not) }}
|
||||
|
||||
{{ $keywords := sort (append $categories $tags) "Title" | and ($page.Param "paige.page.disable_keywords" | not) }}
|
||||
{{ $keywords := sort (append $categories $tags) "LinkTitle" | and ($page.Param "paige.page.disable_keywords" | not) }}
|
||||
|
||||
{{ if or $alert $authors $date $description $first $keywords $last $time $series $title $toc }}
|
||||
<header class="mw-100" id="paige-page-header">
|
||||
@@ -50,11 +50,11 @@
|
||||
{{- if $normal -}}
|
||||
{{- if gt $i 0 }} · {{ end -}}
|
||||
|
||||
<a class="link-secondary paige-keyword paige-keyword-{{ $kind }}" href="{{ .RelPermalink | safeURL }}" {{ if $microdata }} itemprop="keywords" {{ end }}>{{ .Title }}</a>
|
||||
<a class="link-secondary paige-keyword paige-keyword-{{ $kind }}" href="{{ .RelPermalink | safeURL }}" {{ if $microdata }} itemprop="keywords" {{ end }}>{{ .LinkTitle }}</a>
|
||||
{{- else -}}
|
||||
{{- if gt $i 0 }} {{ end -}}
|
||||
|
||||
<a class="badge paige-keyword paige-keyword-{{ $kind }} text-bg-secondary text-decoration-none" href="{{ .RelPermalink | safeURL }}" {{ if $microdata }} itemprop="keywords" {{ end }}>{{ .Title }}</a>
|
||||
<a class="badge paige-keyword paige-keyword-{{ $kind }} text-bg-secondary text-decoration-none" href="{{ .RelPermalink | safeURL }}" {{ if $microdata }} itemprop="keywords" {{ end }}>{{ .LinkTitle }}</a>
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
</p>
|
||||
@@ -65,7 +65,7 @@
|
||||
{{ range $i, $series := . -}}
|
||||
{{- if gt $i 0 }} · {{ end -}}
|
||||
|
||||
<a class="link-secondary" href="{{ .RelPermalink }}" {{ if $microdata }} itemprop="isPartOf" {{ end }}>{{ .Title }}</a>
|
||||
<a class="link-secondary" href="{{ .RelPermalink }}" {{ if $microdata }} itemprop="isPartOf" {{ end }}>{{ .LinkTitle }}</a>
|
||||
{{- end }}
|
||||
</p>
|
||||
{{ end }}
|
||||
@@ -75,7 +75,7 @@
|
||||
{{ range $i, $author := . -}}
|
||||
{{- if gt $i 0 }} · {{ end -}}
|
||||
|
||||
<a class="link-secondary" href="{{ .RelPermalink }}" {{ if $microdata }} itemprop="author" {{ end }}>{{ .Title }}</a>
|
||||
<a class="link-secondary" href="{{ .RelPermalink }}" {{ if $microdata }} itemprop="author" {{ end }}>{{ .LinkTitle }}</a>
|
||||
{{- end }}
|
||||
</p>
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user