mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-23 06:55:43 -06:00
commit
da623dc9cc
6 changed files with 21 additions and 6 deletions
|
@ -2,4 +2,4 @@
|
||||||
[module.hugoVersion]
|
[module.hugoVersion]
|
||||||
extended = true
|
extended = true
|
||||||
min = "0.87.0"
|
min = "0.87.0"
|
||||||
max = "0.115.4"
|
max = "0.116.1"
|
|
@ -1,8 +1,11 @@
|
||||||
|
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
|
||||||
<div class="flex mt-4">
|
<div class="flex mt-4">
|
||||||
{{ with .data.image }}
|
{{ with .data.image }}
|
||||||
{{ $authorImage := resources.Get . }}
|
{{ $authorImage := resources.Get . }}
|
||||||
{{ if $authorImage }}
|
{{ if $authorImage }}
|
||||||
{{ $authorImage := $authorImage.Fill "192x192" }}
|
{{ if not $disableImageOptimization }}
|
||||||
|
{{ $authorImage = $authorImage.Fill "192x192" }}
|
||||||
|
{{ end }}
|
||||||
<img class="!mt-0 !mb-0 h-24 w-24 rounded-full ltr:mr-4 rtl:ml-4" width="96" height="96"
|
<img class="!mt-0 !mb-0 h-24 w-24 rounded-full ltr:mr-4 rtl:ml-4" width="96" height="96"
|
||||||
src="{{ $authorImage.RelPermalink }}" />
|
src="{{ $authorImage.RelPermalink }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
|
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
{{ with .Site.Author.image }}
|
{{ with .Site.Author.image }}
|
||||||
{{ $authorImage := resources.Get . }}
|
{{ $authorImage := resources.Get . }}
|
||||||
{{ if $authorImage }}
|
{{ if $authorImage }}
|
||||||
{{ $authorImage := $authorImage.Fill "192x192" }}
|
{{ if not $disableImageOptimization }}
|
||||||
|
{{ $authorImage = $authorImage.Fill "192x192" }}
|
||||||
|
{{ end }}
|
||||||
<img class="!mt-0 !mb-0 h-24 w-24 rounded-full ltr:mr-4 rtl:ml-4" width="96" height="96"
|
<img class="!mt-0 !mb-0 h-24 w-24 rounded-full ltr:mr-4 rtl:ml-4" width="96" height="96"
|
||||||
alt="{{ $.Site.Author.name | default " Author" }}" src="{{ $authorImage.RelPermalink }}" />
|
alt="{{ $.Site.Author.name | default " Author" }}" src="{{ $authorImage.RelPermalink }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
|
||||||
<article class="max-w-full prose dark:prose-invert">
|
<article class="max-w-full prose dark:prose-invert">
|
||||||
<div class="relative">
|
<div class="relative">
|
||||||
<div class="absolute inset-x-0 bottom-0 h-1/2 bg-gray-100"></div>
|
<div class="absolute inset-x-0 bottom-0 h-1/2 bg-gray-100"></div>
|
||||||
|
@ -21,7 +22,9 @@
|
||||||
{{ with .Site.Author.image }}
|
{{ with .Site.Author.image }}
|
||||||
{{ $authorImage := resources.Get . }}
|
{{ $authorImage := resources.Get . }}
|
||||||
{{ if $authorImage }}
|
{{ if $authorImage }}
|
||||||
{{ $authorImage := $authorImage.Fill "288x288" }}
|
{{ if not $disableImageOptimization }}
|
||||||
|
{{ $authorImage = $authorImage.Fill "288x288" }}
|
||||||
|
{{ end }}
|
||||||
<img class="mb-2 rounded-full h-36 w-36" width="144" height="144"
|
<img class="mb-2 rounded-full h-36 w-36" width="144" height="144"
|
||||||
alt="{{ $.Site.Author.name | default " Author" }}" src="{{ $authorImage.RelPermalink }}" />
|
alt="{{ $.Site.Author.name | default " Author" }}" src="{{ $authorImage.RelPermalink }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
|
||||||
<article class="max-w-full prose dark:prose-invert">
|
<article class="max-w-full prose dark:prose-invert">
|
||||||
<div class="relative">
|
<div class="relative">
|
||||||
<div class="absolute inset-x-0 bottom-0 h-1/2 bg-gray-100"></div>
|
<div class="absolute inset-x-0 bottom-0 h-1/2 bg-gray-100"></div>
|
||||||
|
@ -18,7 +19,9 @@
|
||||||
{{ with .Site.Author.image }}
|
{{ with .Site.Author.image }}
|
||||||
{{ $authorImage := resources.Get . }}
|
{{ $authorImage := resources.Get . }}
|
||||||
{{ if $authorImage }}
|
{{ if $authorImage }}
|
||||||
{{ $authorImage := $authorImage.Fill "288x288" }}
|
{{ if not $disableImageOptimization }}
|
||||||
|
{{ $authorImage = $authorImage.Fill "288x288" }}
|
||||||
|
{{ end }}
|
||||||
<img class="mb-2 rounded-full h-36 w-36" width="144" height="144"
|
<img class="mb-2 rounded-full h-36 w-36" width="144" height="144"
|
||||||
alt="{{ $.Site.Author.name | default " Author" }}" src="{{ $authorImage.RelPermalink }}" />
|
alt="{{ $.Site.Author.name | default " Author" }}" src="{{ $authorImage.RelPermalink }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
|
||||||
<article
|
<article
|
||||||
class="{{ if not .Site.Params.homepage.showRecent }}
|
class="{{ if not .Site.Params.homepage.showRecent }}
|
||||||
h-full
|
h-full
|
||||||
|
@ -7,7 +8,9 @@
|
||||||
{{ with .Site.Author.image }}
|
{{ with .Site.Author.image }}
|
||||||
{{ $authorImage := resources.Get . }}
|
{{ $authorImage := resources.Get . }}
|
||||||
{{ if $authorImage }}
|
{{ if $authorImage }}
|
||||||
{{ $authorImage := $authorImage.Fill "288x288" }}
|
{{ if not $disableImageOptimization }}
|
||||||
|
{{ $authorImage = $authorImage.Fill "288x288" }}
|
||||||
|
{{ end }}
|
||||||
<img
|
<img
|
||||||
class="mb-2 rounded-full h-36 w-36"
|
class="mb-2 rounded-full h-36 w-36"
|
||||||
width="144"
|
width="144"
|
||||||
|
|
Loading…
Reference in a new issue