mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 20:15:25 +00:00
Show name pronunciation in About widgets (#2489)
Add `name_pronunciation: ...` to an author profile to use.
This commit is contained in:
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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in new issue
Block a user