This commit is contained in:
parent
5c81568997
commit
7cce73e2ba
11 changed files with 109 additions and 16 deletions
|
@ -30,9 +30,6 @@ typewriterSpecs:
|
||||||
serialNumber:
|
serialNumber:
|
||||||
---
|
---
|
||||||
|
|
||||||
{{< maec-encadre >}}
|
|
||||||
|
|
||||||
|
|
||||||
{{< figure src="images/20250414_153350_lmc_8.4.jpg" alt="Alt text" title="Title">}}
|
{{< figure src="images/20250414_153350_lmc_8.4.jpg" alt="Alt text" title="Title">}}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -29,4 +29,3 @@ typewriterSpecs:
|
||||||
widthCm: 80
|
widthCm: 80
|
||||||
---
|
---
|
||||||
|
|
||||||
{{< maec-encadre >}}
|
|
|
@ -29,4 +29,3 @@ typewriterSpecs:
|
||||||
widthCm: 80
|
widthCm: 80
|
||||||
---
|
---
|
||||||
|
|
||||||
{{< maec-encadre >}}
|
|
|
@ -29,4 +29,3 @@ typewriterSpecs:
|
||||||
widthCm: 80
|
widthCm: 80
|
||||||
---
|
---
|
||||||
|
|
||||||
{{< maec-encadre >}}
|
|
|
@ -29,7 +29,7 @@ typewriterSpecs:
|
||||||
widthCm: 80
|
widthCm: 80
|
||||||
---
|
---
|
||||||
|
|
||||||
{{< maec-encadre >}}
|
|
||||||
|
|
||||||
Cette machine, mise sur le marché par Olivetti en 1980, a pour spécificité d'être électromécanique, et de ne plus utiliser de marteaux d'impression.
|
Cette machine, mise sur le marché par Olivetti en 1980, a pour spécificité d'être électromécanique, et de ne plus utiliser de marteaux d'impression.
|
||||||
|
|
||||||
|
|
|
@ -29,4 +29,3 @@ typewriterSpecs:
|
||||||
widthCm: 80
|
widthCm: 80
|
||||||
---
|
---
|
||||||
|
|
||||||
{{< maec-encadre >}}
|
|
|
@ -29,4 +29,3 @@ typewriterSpecs:
|
||||||
widthCm: 80
|
widthCm: 80
|
||||||
---
|
---
|
||||||
|
|
||||||
{{< maec-encadre >}}
|
|
|
@ -30,7 +30,7 @@ typewriterSpecs:
|
||||||
serialNumber: "NE31859"
|
serialNumber: "NE31859"
|
||||||
---
|
---
|
||||||
|
|
||||||
{{< maec-encadre >}}
|
|
||||||
|
|
||||||
# Une machine portable et pliable
|
# Une machine portable et pliable
|
||||||
|
|
||||||
|
|
91
layouts/partials/maec-encadre.html
Normal file
91
layouts/partials/maec-encadre.html
Normal file
|
@ -0,0 +1,91 @@
|
||||||
|
<!-- For displaying typewriter specifications from the current page -->
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.typewriter-specs {
|
||||||
|
width: 300px;
|
||||||
|
margin: 20px 0;
|
||||||
|
padding: 10px;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
||||||
|
{{ $specs := .Page.Params.typewriterSpecs }}
|
||||||
|
|
||||||
|
{{ if $specs }}
|
||||||
|
<div class="typewriter-specs">
|
||||||
|
<h3>{{$specs.make}} {{$specs.model}}</h3>
|
||||||
|
{{ with $specs.logo }}
|
||||||
|
<figure class="logo">
|
||||||
|
<img src="{{ . }}" alt="Logo of {{ $specs.manufacturer }}">
|
||||||
|
</figure>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ with $specs.image }}
|
||||||
|
<figure>
|
||||||
|
<img src="{{ . }}" alt="Image of {{ $specs.manufacturer }} {{ $specs.type }}">
|
||||||
|
</figure>
|
||||||
|
{{ end }}
|
||||||
|
<table>
|
||||||
|
<tbody>
|
||||||
|
|
||||||
|
{{ with $specs.make }}
|
||||||
|
<tr>
|
||||||
|
<th>Fabricant</th>
|
||||||
|
<td>{{ . }}</td>
|
||||||
|
</tr>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ with $specs.type }}
|
||||||
|
<tr>
|
||||||
|
<th>Type</th>
|
||||||
|
<td>{{ . }}</td>
|
||||||
|
</tr>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ with $specs.dateManufactured }}
|
||||||
|
<tr>
|
||||||
|
<th>Date de fabrication</th>
|
||||||
|
<td>{{ . }}</td>
|
||||||
|
</tr>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ with $specs.massKg }}
|
||||||
|
<tr>
|
||||||
|
<th>Masse</th>
|
||||||
|
<td>{{ . }} kg</td>
|
||||||
|
</tr>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ with $specs.widthCm }}
|
||||||
|
<tr>
|
||||||
|
<th>Largeur</th>
|
||||||
|
<td>{{ . }} cm</td>
|
||||||
|
</tr>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ with $specs.linkWiki }}
|
||||||
|
<tr>
|
||||||
|
<th>Ressource externe</th>
|
||||||
|
<td><a href="{{ . }}" target="_blank">Link</a></td>
|
||||||
|
</tr>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ with $specs.linkTpdb }}
|
||||||
|
<tr>
|
||||||
|
<th>Typewriter Database</th>
|
||||||
|
<td><a href="{{ . }}" target="_blank">Link</a></td>
|
||||||
|
</tr>
|
||||||
|
{{ end }}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
{{ else }}
|
||||||
|
<div class="notice warning">
|
||||||
|
<p>Pas de spécifications trouvées :(</p>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
|
@ -14,7 +14,9 @@
|
||||||
### Collection
|
### Collection
|
||||||
|
|
||||||
- [x] changer l'affichage des machines à écrire dans colleciton en grid, avec le titre et une image
|
- [x] changer l'affichage des machines à écrire dans colleciton en grid, avec le titre et une image
|
||||||
- [ ] finir de créer l'encadré de fiche technique pour les màe
|
- [ ] finir de créer le contenu de l'encadré de fiche technique pour les màe
|
||||||
|
- [ ] afficher l'encadré à droite de la page, avec le reste du texte qui s'organise autour (comme dans word)
|
||||||
|
- [ ] la infobox est dans le layout single spécifique à la collection, reste à mettre le css pour que tout s'affiche bien
|
||||||
- [ ] pouvoir trier les machines par les paramètres de l'encadré sur la page de liste
|
- [ ] pouvoir trier les machines par les paramètres de l'encadré sur la page de liste
|
||||||
- [ ] Rendre adaptatifs au theme les encadrés de machines
|
- [ ] Rendre adaptatifs au theme les encadrés de machines
|
||||||
- [ ] Mettre un traitement pour les images dans l'encadré
|
- [ ] Mettre un traitement pour les images dans l'encadré
|
||||||
|
@ -28,5 +30,6 @@
|
||||||
- [ ] réhéberger TPE & PEM2T (et autres trucs chez OVH) en local
|
- [ ] réhéberger TPE & PEM2T (et autres trucs chez OVH) en local
|
||||||
- [ ] make it so the 404 page works
|
- [ ] make it so the 404 page works
|
||||||
- [ ] Ajouter un colophon
|
- [ ] Ajouter un colophon
|
||||||
|
- [ ] Modifié last time
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -35,12 +35,19 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if .Content }}
|
{{- if .Content }}
|
||||||
|
|
||||||
|
<div class="flex-wrapper">
|
||||||
|
<!-- if the page is a collection item, add the infobox -->
|
||||||
|
{{- if eq .Section "collection" }}
|
||||||
|
{{ partial "maec-encadre.html" . }}
|
||||||
|
{{- end }}
|
||||||
<div class="post-content">
|
<div class="post-content">
|
||||||
{{- if not (.Param "disableAnchoredHeadings") }}
|
{{- if not (.Param "disableAnchoredHeadings") }}
|
||||||
{{- partial "anchored_headings.html" .Content -}}
|
{{- partial "anchored_headings.html" .Content -}}
|
||||||
{{- else }}{{ .Content }}{{ end }}
|
{{- else }}{{ .Content }}{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
</div>
|
||||||
|
|
||||||
<footer class="post-footer">
|
<footer class="post-footer">
|
||||||
{{- $tags := .Language.Params.Taxonomies.tag | default "tags" }}
|
{{- $tags := .Language.Params.Taxonomies.tag | default "tags" }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue