diff options
author | tdro <tdro@noreply.example.com> | 2024-02-21 19:30:29 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2024-02-21 19:30:29 -0500 |
commit | 417f3f9c401cb9cdc35af0520245ab286d131cde (patch) | |
tree | 957bafa8e48ec2ae6a2d2e27f8be6abfe1925b56 /themes/default/layouts/partials | |
parent | 8390f61011eeb351b4ff4ca04c220978e6f815c0 (diff) | |
download | canory-417f3f9c401cb9cdc35af0520245ab286d131cde.tar.gz canory-417f3f9c401cb9cdc35af0520245ab286d131cde.tar.bz2 canory-417f3f9c401cb9cdc35af0520245ab286d131cde.zip |
assets/css/default: Merge micro-summary -> micro-card
Diffstat (limited to 'themes/default/layouts/partials')
-rw-r--r-- | themes/default/layouts/partials/author-card.html | 80 |
1 files changed, 39 insertions, 41 deletions
diff --git a/themes/default/layouts/partials/author-card.html b/themes/default/layouts/partials/author-card.html index 6b4b91b..70ec252 100644 --- a/themes/default/layouts/partials/author-card.html +++ b/themes/default/layouts/partials/author-card.html @@ -38,46 +38,44 @@ <micro-author> <micro-card> - <micro-summary> - <micro-thumbnail> - <figure> - <a title="{{ .Data.name }}" href="{{ "" | absURL }}/{{ .Data.user }}/"> - <picture> - {{- with $sourceset -}} - <source srcset="{{ print ("" | absURL) $sourceset }}" type="image/webp" /> - {{- end -}} - <img - width="{{ or $width "64" }}" - height="{{ or $height "64" }}" - src="{{ print ("" | absURL) $source }}" - alt="{{ $alternate }}" - /> - </picture> - </a> - </figure> - </micro-thumbnail> - <micro-header> - <h2> - <b>{{ .Data.name }}</b> - </h2> - <h3> - <a data-hover="" title="{{ .Data.name }}" href="{{ "" | absURL }}/{{ .Data.user }}/"> - {{ .Data.user }}@{{ $host }} - </a> - </h3> - <time - data-type="default" - title="{{ .Date | time.Format "Monday January 2 2006 at 15:04:05 MST" }}" - datetime="{{ .Date | time.Format "2006-01-02T15:04:05Z" }}" - > - {{ $date }} - </time> - </micro-header> - <p>{{ .Data.description | markdownify | plainify | htmlUnescape | truncate 60 "..." }}</p> - <a title="Follow with RSS Reader" href="{{ "" | absURL }}/{{ .Data.user }}/rss.xml"> - {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/tabler/rss.svg")) }} - <header>Follow</header> - </a> - </micro-summary> + <micro-thumbnail> + <figure> + <a title="{{ .Data.name }}" href="{{ "" | absURL }}/{{ .Data.user }}/"> + <picture> + {{- with $sourceset -}} + <source srcset="{{ print ("" | absURL) $sourceset }}" type="image/webp" /> + {{- end -}} + <img + width="{{ or $width "64" }}" + height="{{ or $height "64" }}" + src="{{ print ("" | absURL) $source }}" + alt="{{ $alternate }}" + /> + </picture> + </a> + </figure> + </micro-thumbnail> + <micro-header> + <h2> + <b>{{ .Data.name }}</b> + </h2> + <h3> + <a data-hover="" title="{{ .Data.name }}" href="{{ "" | absURL }}/{{ .Data.user }}/"> + {{ .Data.user }}@{{ $host }} + </a> + </h3> + <time + data-type="default" + title="{{ .Date | time.Format "Monday January 2 2006 at 15:04:05 MST" }}" + datetime="{{ .Date | time.Format "2006-01-02T15:04:05Z" }}" + > + {{ $date }} + </time> + </micro-header> + <p>{{ .Data.description | markdownify | plainify | htmlUnescape | truncate 60 "..." }}</p> + <a title="Follow with RSS Reader" href="{{ "" | absURL }}/{{ .Data.user }}/rss.xml"> + {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/tabler/rss.svg")) }} + <header>Follow</header> + </a> </micro-card> </micro-author> |