summaryrefslogtreecommitdiff
path: root/themes/LoveIt/layouts/partials/plugin/h-card.html
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2022-08-14 19:01:21 +0200
committerChristoph Cullmann <cullmann@kde.org>2022-08-14 19:01:21 +0200
commit51fb029ca27d67d7cd67352cdede45e5b25868f7 (patch)
tree6d8e34b2abdc757310ffe11189e926d017417bae /themes/LoveIt/layouts/partials/plugin/h-card.html
parent260b6803e78609e16ad3d59792f1681d9df0f1e4 (diff)
switch back to LoveIt, other theme is deprectated
Diffstat (limited to 'themes/LoveIt/layouts/partials/plugin/h-card.html')
-rw-r--r--themes/LoveIt/layouts/partials/plugin/h-card.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/themes/LoveIt/layouts/partials/plugin/h-card.html b/themes/LoveIt/layouts/partials/plugin/h-card.html
new file mode 100644
index 0000000..6613032
--- /dev/null
+++ b/themes/LoveIt/layouts/partials/plugin/h-card.html
@@ -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 -}}&#8201;
+{{- 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> \ No newline at end of file