mirror of
https://github.com/TrezOne/congo-hindi-gujarati.git
synced 2026-07-19 17:13:02 -04:00
🚚 Move author image to assets
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
{{ if .Params.showAuthor | default (.Site.Params.article.showAuthor | default true) }}
|
||||
<div class="flex">
|
||||
{{ with .Site.Author.image }}
|
||||
<img
|
||||
class="w-24 h-24 !mt-0 !mb-0 mr-4 rounded-full"
|
||||
width="96"
|
||||
height="96"
|
||||
alt="Author"
|
||||
src="{{ . | relURL }}"
|
||||
/>
|
||||
{{ $authorImage := resources.Get . }}
|
||||
{{ if $authorImage }}
|
||||
{{ $authorImage := $authorImage.Fill "192x192" }}
|
||||
<img
|
||||
class="w-24 h-24 !mt-0 !mb-0 mr-4 rounded-full"
|
||||
width="96"
|
||||
height="96"
|
||||
alt="Author"
|
||||
src="{{ $authorImage.RelPermalink }}"
|
||||
/>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<div class="place-self-center">
|
||||
{{ with .Site.Author.name | markdownify | emojify }}
|
||||
|
||||
Reference in New Issue
Block a user