mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-21 03:41:52 +02:00
commit
5a38b0e42d
2 changed files with 8 additions and 3 deletions
|
@ -1,7 +1,12 @@
|
||||||
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
|
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
|
||||||
<div class="flex author">
|
<div class="flex author">
|
||||||
{{ with .Site.Author.image }}
|
{{ with .Site.Author.image }}
|
||||||
{{ $authorImage := resources.Get . }}
|
{{ $authorImage := "" }}
|
||||||
|
{{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }}
|
||||||
|
{{ $authorImage = resources.GetRemote . }}
|
||||||
|
{{ else }}
|
||||||
|
{{ $authorImage = resources.Get . }}
|
||||||
|
{{ end }}
|
||||||
{{ if $authorImage }}
|
{{ if $authorImage }}
|
||||||
{{ if not $disableImageOptimization }}
|
{{ if not $disableImageOptimization }}
|
||||||
{{ $authorImage = $authorImage.Fill "192x192" }}
|
{{ $authorImage = $authorImage.Fill "192x192" }}
|
||||||
|
@ -31,4 +36,4 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="text-2xl sm:text-lg">{{ partialCached "author-links.html" . }}</div>
|
<div class="text-2xl sm:text-lg">{{ partialCached "author-links.html" . }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="absolute menuhide">
|
<div class="absolute menuhide">
|
||||||
<div class="pt-2 p-5 mt-2 rounded-xl shadow-2xl">
|
<div class="pt-2 p-5 mt-2 rounded-xl backdrop-blur shadow-2xl">
|
||||||
<div class="flex flex-col space-y-3">
|
<div class="flex flex-col space-y-3">
|
||||||
{{ range .AllTranslations }}
|
{{ range .AllTranslations }}
|
||||||
<a href="{{ .RelPermalink }}" class="flex items-center">
|
<a href="{{ .RelPermalink }}" class="flex items-center">
|
||||||
|
|
Loading…
Add table
Reference in a new issue