Show name pronunciation in About widgets (#2489)

Add `name_pronunciation: ...` to an author profile to use.
This commit is contained in:
kazutoiris authored and GitHub committed 2021-12-21 22:05:55 +00:00
1 parent f7c06211fa
commit 87f69f8c26
2 files changed
+24 -2

No files matched your search

@@ -28,7 +28,18 @@
{{ end }}
<div class="portrait-title">
<h2>{{ $person_page.Title }}</h2>
<h2>
{{- if $person.name_pronunciation -}}
<ruby>
<rb>{{ $person_page.Title }}</rb>
<rt>{{ $person.name_pronunciation }}</rt>
</ruby>
{{- else -}}
{{- $person_page.Title -}}
{{- end -}}
</h2>
{{ with $person.role }}<h3>{{ . | markdownify | emojify }}</h3>{{ end }}
{{ range $person.organizations }}
+12 -1
View File
@@ -32,7 +32,18 @@
{{ end }}
<div class="portrait-title">
<h2>{{ $person_page.Title }}</h2>
<h2>
{{- if $person.name_pronunciation -}}
<ruby>
<rb>{{ $person_page.Title }}</rb>
<rt>{{ $person.name_pronunciation }}</rt>
</ruby>
{{- else -}}
{{- $person_page.Title -}}
{{- end -}}
</h2>
{{ with $person.role }}<h3>{{ . | markdownify | emojify }}</h3>{{ end }}
{{ range $person.organizations }}