Commit 347a7232 authored by Cyrille Chopelet's avatar Cyrille Chopelet
Browse files

[Figures] Add a "lic" attribute for licenses

parent 430e6dc7
......@@ -423,7 +423,7 @@ Voilà les fondations pour l'initiative TechPlomacy du Danemark.
## Évolution dans le temps
{{< figure src="evolution.svg" alt="Infographie laissant deviner la multiplication des objets numériques et connectés entre 2010 et 2025." attr="CC BY-NC-ND [Geneviève Van Diest](https://visuelle.be/), [Céline Berthaut](https://celineberthaut.fr/)" >}}
{{< figure src="evolution.svg" alt="Infographie laissant deviner la multiplication des objets numériques et connectés entre 2010 et 2025." attr="[Geneviève Van Diest](https://visuelle.be/), [Céline Berthaut](https://celineberthaut.fr/)" lic="CC BY-NC-ND 4.0" >}}
Ce billet comprend énormément de données, mais ce n'est pas une vue complète ou détaillée, loin de là.
Ce n'est pas non plus un instantané.
......
......@@ -424,7 +424,7 @@ These are the foundations for Denmark's TechPlomacy initiative.
## Evolution Over Time
{{< figure src="evolution.svg" alt="Infographics highlighting the multiplication of digital and connected devices from 2010 to 2025." attr="CC BY-NC-ND [Geneviève Van Diest](https://visuelle.be/), [Céline Berthaut](https://celineberthaut.fr/)" >}}
{{< figure src="evolution.svg" alt="Infographics highlighting the multiplication of digital and connected devices from 2010 to 2025." attr="[Geneviève Van Diest](https://visuelle.be/), [Céline Berthaut](https://celineberthaut.fr/)" lic="CC BY-NC-ND 4.0" >}}
There's much data in this post, but it's not a complete view, and most of all, it's not a snapshot.
Things move and, when it comes to tech, they keep moving faster.
......
......@@ -140,8 +140,9 @@ Le message ici est le suivant : retarder la qualité ou nier son besoin revient
link="https://vincentdnl.com/drawings/technical-debt"
alt="Un chef de projet insatisfait se plaint qu'il est long d'ajouter une nouvelle fenêtre à une maison bancale."
caption="_« Je ne comprends pas pourquoi c’est si long d’ajouter une nouvelle fenêtre. »_"
attr="Vincent Déniel (CC BY-NC 4.0)"
attrlink="https://twitter.com/vincentdnl" >}}
attr="Vincent Déniel"
attrlink="https://twitter.com/vincentdnl"
lic="CC BY-NC 4.0" >}}
......
......@@ -137,8 +137,9 @@ The message here is this: postponing the quality or denying the need for it is b
{{< figure src="/img/vincentdnl/technical-debt.png"
link="https://vincentdnl.com/drawings/technical-debt"
alt="An unsatisfied manager complains that it takes time to add a window to a broken house."
attr="Vincent Déniel (CC BY-NC 4.0)"
attrlink="https://twitter.com/vincentdnl" >}}
attr="Vincent Déniel"
attrlink="https://twitter.com/vincentdnl"
lic="CC BY-NC 4.0" >}}
......
......@@ -15,16 +15,22 @@
{{- end }}
{{ partial "images/render-set--lazy.html" $processedImg }}
{{ if or (.Get "link") $processedImg.link }} </a>{{ end -}}
{{- if or (.Get "title") (.Get "caption") (.Get "attr") }}
{{- if or (.Get "title") (.Get "caption") (.Get "attr") (.Get "lic") }}
<figcaption>
{{ with (.Get "title") -}}
{{ with (.Get "title") -}}
<h4>{{ . | markdownify }}</h4>
{{- end -}}
{{- if or (.Get "caption") (.Get "attr") -}}<p>
{{- .Get "caption" | markdownify -}}
{{- with .Get "attrlink" }} <a href="{{ . }}">{{- end -}}
{{- .Get "attr" | markdownify -}}
{{- if .Get "attrlink" }}</a>{{ end }}</p>
{{- end -}}
{{- if or (.Get "caption") (.Get "attr") -}}<p>
{{- .Get "caption" | markdownify -}}
{{- if and (.Get "caption") (.Get "attr") }}<br>{{ end -}}
{{- with .Get "attrlink" }} <a href="{{ . }}">{{- end -}}
{{- .Get "attr" | markdownify -}}
{{- if .Get "attrlink" }}</a>{{ end -}}
{{- with .Get "lic" }} ({{ partial "licenses/compact.html" (
dict
"license" .
"Lang" $.Page.Lang
) }}){{ end }}</p>
{{- end }}
</figcaption>
{{- end }}
......
......@@ -14,18 +14,22 @@
{{- end }}
{{ partial "images/render-set--nojs.html" $processedImg }}
{{ if or (.Get "link") $processedImg.link }} </a>{{ end -}}
{{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") }}
{{- if or (.Get "title") (.Get "caption") (.Get "attr") (.Get "lic") }}
<figcaption>
{{ with (.Get "title") -}}
<h4>{{ . }}</h4>
{{- end -}}
{{- if or (.Get "caption") (.Get "attr") -}}<p>
{{- .Get "caption" | markdownify -}}
{{- with .Get "attrlink" }}
<a href="{{ . }}">
{{ with (.Get "title") -}}
<h4>{{ . | markdownify }}</h4>
{{- end -}}
{{- .Get "attr" | markdownify -}}
{{- if .Get "attrlink" }}</a>{{ end }}</p>
{{- if or (.Get "caption") (.Get "attr") -}}<p>
{{- .Get "caption" | markdownify -}}
{{- if and (.Get "caption") (.Get "attr") }}<br>{{ end -}}
{{- with .Get "attrlink" }} <a href="{{ . }}">{{- end -}}
{{- .Get "attr" | markdownify -}}
{{- if .Get "attrlink" }}</a>{{ end -}}
{{- with .Get "lic" }} ({{ partial "licenses/compact.html" (
dict
"license" .
"Lang" $.Page.Lang
) }}){{ end }}</p>
{{- end }}
</figcaption>
{{- end }}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment