mirror of https://github.com/jpanther/congo.git
Merge 8e2de6c6dc
into 68ce84075e
commit
2c66b892ef
|
@ -1,19 +1,12 @@
|
||||||
{{ if .Params.showAuthor | default (.Site.Params.article.showAuthor | default true) }}
|
{{ if .Params.showAuthor | default (.Site.Params.article.showAuthor | default true) }}
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
|
{{ $lazy := .Params.enableImageLazyLoading|default .Site.Params.enableImageLazyLoading | default true }}
|
||||||
|
{{ $altText := ($.Site.Language.Params.Author.name | default "Author") }}
|
||||||
{{ with .Site.Language.Params.Author.image }}
|
{{ with .Site.Language.Params.Author.image }}
|
||||||
{{ $authorImage := resources.Get . }}
|
{{ $authorImage := resources.Get . }}
|
||||||
{{ if $authorImage }}
|
{{ if $authorImage }}
|
||||||
{{ $authorImage := $authorImage.Fill "192x192 Center" }}
|
{{ $imgClass := "!mb-0 !mt-0 me-4 w-24 h-auto rounded-full" }}
|
||||||
<img
|
{{ partial "picture.html" (dict "img" $authorImage "alt" $altText "class" $imgClass "lazy" $lazy ) }}
|
||||||
class="!mb-0 !mt-0 me-4 h-24 w-24 rounded-full"
|
|
||||||
width="96"
|
|
||||||
height="96"
|
|
||||||
alt="{{ $.Site.Language.Params.Author.name | default "Author" }}"
|
|
||||||
src="{{ $authorImage.RelPermalink }}"
|
|
||||||
{{ if $.Site.Params.enableImageLazyLoading | default true }}
|
|
||||||
loading="lazy"
|
|
||||||
{{ end }}
|
|
||||||
/>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="place-self-center">
|
<div class="place-self-center">
|
||||||
|
|
|
@ -4,17 +4,13 @@
|
||||||
{{ end }} flex flex-col items-center justify-center text-center"
|
{{ end }} flex flex-col items-center justify-center text-center"
|
||||||
>
|
>
|
||||||
<header class="mb-3 flex flex-col items-center">
|
<header class="mb-3 flex flex-col items-center">
|
||||||
|
{{ $lazy := .Params.enableImageLazyLoading | default .Site.Params.enableImageLazyLoading | default true }}
|
||||||
|
{{ $altText := ($.Site.Language.Params.Author.name | default "Author") }}
|
||||||
{{ with .Site.Language.Params.Author.image }}
|
{{ with .Site.Language.Params.Author.image }}
|
||||||
{{ $authorImage := resources.Get . }}
|
{{ $authorImage := resources.Get . }}
|
||||||
{{ if $authorImage }}
|
{{ if $authorImage }}
|
||||||
{{ $authorImage := $authorImage.Fill "288x288 Center" }}
|
{{ $imgClass := "mb-2 h-auto w-36 rounded-full" }}
|
||||||
<img
|
{{ partial "picture.html" (dict "img" $authorImage "alt" $altText "class" $imgClass "lazy" $lazy) }}
|
||||||
class="mb-2 h-36 w-36 rounded-full"
|
|
||||||
width="144"
|
|
||||||
height="144"
|
|
||||||
alt="{{ $.Site.Language.Params.Author.name | default "Author" }}"
|
|
||||||
src="{{ $authorImage.RelPermalink }}"
|
|
||||||
/>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<h1 class="text-4xl font-extrabold">
|
<h1 class="text-4xl font-extrabold">
|
||||||
|
|
Loading…
Reference in New Issue