Add paige-keyword-category, tag classes
This commit is contained in:
17
README.md
17
README.md
@@ -1093,7 +1093,20 @@ Page identifiers:
|
||||
<dd>The table of contents.</dd>
|
||||
</dl>
|
||||
|
||||
Sub-page field classes:
|
||||
Page classes:
|
||||
|
||||
<dl>
|
||||
<dt><code>.paige-keyword</code></dt>
|
||||
<dd>A keyword.</dd>
|
||||
<dt><code>.paige-keyword-category</code></dt>
|
||||
<dd>A category keyword.</dd>
|
||||
<dt><code>.paige-keyword-tag</code></dt>
|
||||
<dd>A tag keyword.</dd>
|
||||
<dt><code>.paige-keywords</code></dt>
|
||||
<dd>The keywords.</dd>
|
||||
</dl>
|
||||
|
||||
Sub-page classes:
|
||||
|
||||
<dl>
|
||||
<dt><code>.paige-authors</code></dt>
|
||||
@@ -1102,8 +1115,6 @@ Sub-page field classes:
|
||||
<dd>The date.</dd>
|
||||
<dt><code>.paige-description</code></dt>
|
||||
<dd>The description.</dd>
|
||||
<dt><code>.paige-keywords</code></dt>
|
||||
<dd>The keywords.</dd>
|
||||
<dt><code>.paige-metadata</code></dt>
|
||||
<dd>The metadata.</dd>
|
||||
<dt><code>.paige-page</code></dt>
|
||||
|
@@ -57,14 +57,22 @@
|
||||
{{ with $keywords }}
|
||||
<p class="paige-keywords paige-row-narrow text-center text-secondary">
|
||||
{{ range $i, $term := . -}}
|
||||
{{- $kind := false -}}
|
||||
|
||||
{{- if in $categories $term -}}
|
||||
{{- $kind = "category" -}}
|
||||
{{- else -}}
|
||||
{{- $kind = "tag" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if $textkeywords -}}
|
||||
{{- if gt $i 0 }} · {{ end -}}
|
||||
|
||||
<a class="link-secondary paige-keyword" href="{{ .RelPermalink | safeURL }}">{{ .Title }}</a>
|
||||
<a class="link-secondary paige-keyword paige-keyword-{{ $kind }}" href="{{ .RelPermalink | safeURL }}">{{ .Title }}</a>
|
||||
{{- else -}}
|
||||
{{- if gt $i 0 }} {{ end -}}
|
||||
|
||||
<a class="badge paige-keyword text-bg-secondary text-decoration-none" href="{{ .RelPermalink | safeURL }}">{{ .Title }}</a>
|
||||
<a class="badge paige-keyword paige-keyword-{{ $kind }} text-bg-secondary text-decoration-none" href="{{ .RelPermalink | safeURL }}">{{ .Title }}</a>
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
</p>
|
||||
|
@@ -38,14 +38,22 @@
|
||||
{{ with $keywords }}
|
||||
<p class="{{ if $textkeywords }} paige-row-narrow {{ end }} text-center {{ if $textkeywords }} text-secondary {{ end }}" id="paige-keywords">
|
||||
{{ range $i, $term := . -}}
|
||||
{{- $kind := false -}}
|
||||
|
||||
{{- if in $categories $term -}}
|
||||
{{- $kind = "category" -}}
|
||||
{{- else -}}
|
||||
{{- $kind = "tag" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if $textkeywords -}}
|
||||
{{- if gt $i 0 }} · {{ end -}}
|
||||
|
||||
<a class="link-secondary paige-keyword" href="{{ .RelPermalink | safeURL }}">{{ .Title }}</a>
|
||||
<a class="link-secondary paige-keyword paige-keyword-{{ $kind }}" href="{{ .RelPermalink | safeURL }}">{{ .Title }}</a>
|
||||
{{- else -}}
|
||||
{{- if gt $i 0 }} {{ end -}}
|
||||
|
||||
<a class="badge paige-keyword text-bg-secondary text-decoration-none" href="{{ .RelPermalink | safeURL }}">{{ .Title }}</a>
|
||||
<a class="badge paige-keyword paige-keyword-{{ $kind }} text-bg-secondary text-decoration-none" href="{{ .RelPermalink | safeURL }}">{{ .Title }}</a>
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
</p>
|
||||
|
Reference in New Issue
Block a user