Skip to content

Commit b825035

Browse files
committed
Improve documentation
1 parent 0f3cf59 commit b825035

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

  • themes/devlog-theme/layouts/partials

themes/devlog-theme/layouts/partials/term.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
<a class="term" href="{{ partial "permalink-rel.html" .Term }}">
22
{{- if (.Term.Params.brand | default false) -}}
3-
{{- /* Use brand icon instead of tag icon. */ -}}
3+
{{- /* Use brand icon instead of tag icon.
4+
See: https://fontawesome.com/search?ip=brands&ic=brands&o=r
5+
*/ -}}
46
{{- if eq .Term.Params.brand true -}}
5-
{{- /* Use term name (but not its title) as brand name. */ -}}
7+
{{- /* Defined as "brand: true" -> Use term name (but not its title) as brand name. */ -}}
68
<i class="tag-icon fa-brands fa-{{ lower .Term.Name }}"></i>
79
{{- else -}}
8-
{{- /* Use value of "brand" frontmatter as brand name. */ -}}
10+
{{- /* Defined as "brand: name" -> Use the value as brand name. */ -}}
911
<i class="tag-icon fa-brands fa-{{ .Term.Params.brand }}"></i>
1012
{{- end -}}
1113
{{- else -}}

0 commit comments

Comments
 (0)