mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-11-03 09:39:46 +00:00
feat: share translated feature images and animate landing
This commit is contained in:
1 parent
d296e16e41
commit
bbf194ce31
15 files changed
+87
-12
No files matched your search
@@ -0,0 +1,10 @@
|
||||
{{/* Return the page's feature image, falling back to a translated sibling.
|
||||
This keeps a translated article visually aligned with its source page without
|
||||
forcing every locale to duplicate presentation-only front matter. */}}
|
||||
{{ $featureImage := .Params.featureimage }}
|
||||
{{ if not $featureImage }}
|
||||
{{ range .Translations }}
|
||||
{{ with .Params.featureimage }}{{ $featureImage = . }}{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ return $featureImage }}
|
||||
Reference in new issue
Block a user