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
15
themes/LoveIt/layouts/partials/plugin/h-card.html
Normal file
15
themes/LoveIt/layouts/partials/plugin/h-card.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
{{- $rel := .Rel -}}
|
||||
{{- $nick := .Nickname -}}
|
||||
{{- $text := .Text -}}
|
||||
{{- $n := .Nickname | default .Name | default .Email | default .URL | default "👀" -}}
|
||||
<span class="h-card{{ with .Class }} {{ . }}{{- end -}}">
|
||||
{{- with .URL -}}<a href="{{ . }}" class="u-url url"{{ with $rel }} rel="{{ . }}"{{- end -}}{{ with $text }} title="{{ . }}"{{ end }}>{{- else -}}{{- with .Email -}}<a href="mailto:{{ . }}" class="email"{{ with $text }} title="{{ . }}"{{ end }}>{{- end -}}{{- end -}}
|
||||
{{- with .Image -}}<img class="u-photo photo" src="{{ . }}" alt="{{ $n }}">{{- else -}}<i class="far fa-user-circle" aria-hidden="true"></i>{{ end -}} 
|
||||
{{- with .Name -}}<span class="p-name fn">{{ . }}</span>{{ with $nick }} ({{- end -}}{{- end -}}
|
||||
{{- with .Nickname -}}<span class="p-nickname nickname">{{ . }}</span>{{- end -}}
|
||||
{{- with .Name -}}{{ with $nick }}){{- end -}}{{- end -}}
|
||||
{{- with .URL -}}</a>{{- else -}}{{- with .Email -}}</a>{{- end -}}{{- end -}}
|
||||
{{- with .Email }}
|
||||
<a href="mailto:{{ . }}" class="email"><span class="u-email">{{ . }}</span></a>
|
||||
{{- end -}}
|
||||
</span>
|
Loading…
Add table
Add a link
Reference in a new issue