switch back to LoveIt, other theme is deprectated
This commit is contained in:
parent
260b6803e7
commit
51fb029ca2
4260 changed files with 49552 additions and 87082 deletions
9
themes/LoveIt/layouts/shortcodes/person.html
Normal file
9
themes/LoveIt/layouts/shortcodes/person.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
{{- $url := cond .IsNamedParams (.Get "url") (.Get 0) -}}
|
||||
{{- $name := cond .IsNamedParams (.Get "name") (.Get 1) -}}
|
||||
{{- $text := cond .IsNamedParams (.Get "text") (.Get 2) -}}
|
||||
{{- $pic := cond .IsNamedParams (.Get "picture") (.Get 3) -}}
|
||||
{{- $options := dict "Class" "person-mention" "Name" $name "URL" $url "Text" $text "Image" $pic -}}
|
||||
{{- if .IsNamedParams -}}
|
||||
{{- $options = dict "Nickname" (.Get "nick") | merge $options -}}
|
||||
{{- end -}}
|
||||
{{- partial "plugin/h-card" $options -}}
|
Loading…
Add table
Add a link
Reference in a new issue