From b3a415954af82cc8c3a42317f5cb4786b42a27d2 Mon Sep 17 00:00:00 2001 From: gribse Date: Fri, 18 Apr 2025 12:24:33 +0200 Subject: [PATCH] Add shortcode for displaying typewriter specifications with responsive styling --- layouts/shortcodes/maec-encadre.html | 89 ++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 layouts/shortcodes/maec-encadre.html diff --git a/layouts/shortcodes/maec-encadre.html b/layouts/shortcodes/maec-encadre.html new file mode 100644 index 0000000..bf023f8 --- /dev/null +++ b/layouts/shortcodes/maec-encadre.html @@ -0,0 +1,89 @@ + + + +{{ $specs := .Page.Params.typewriterSpecs }} + +{{ if $specs }} +
+

Fiche technique

+ {{ with $specs.image }} +
+ Image of {{ $specs.manufacturer }} {{ $specs.type }} +
+ {{ end }} + + + {{ with $specs.logo }} + + {{ end }} + {{ with $specs.manufacturer }} + + + + + {{ end }} + + {{ with $specs.type }} + + + + + {{ end }} + + {{ with $specs.dateLaunched }} + + + + + {{ end }} + + {{ with $specs.massKg }} + + + + + {{ end }} + + {{ with $specs.widthCm }} + + + + + {{ end }} + + {{ with $specs.linkWiki }} + + + + + {{ end }} + + {{ with $specs.linkTpdb }} + + + + + {{ end }} + +
Fabricant{{ . }}
Type{{ . }}
Date de lancement{{ . }}
Masse{{ . }} kg
Largeur{{ . }} cm
Lien WikipediaLink
Lien Typewriter DatabaseLink
+ + + + +
+{{ else }} +
+

Pas de spécifications trouvées :(

+
+{{ end }} \ No newline at end of file