Skip to content

Commit e56de46

Browse files
Ailleurs (#263)
1 parent 3fb754b commit e56de46

14 files changed

+67
-11
lines changed

www/assets/css/theme.css

+47
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,15 @@ a[href]:hover {
167167
text-decoration: underline;
168168
}
169169

170+
.ext a::after {
171+
display: inline-block;
172+
/* XXX for some reason, stroke='currentcolor' does not work here */
173+
content: url("data:image/svg+xml,<svg stroke='rgb(205,103,52)' fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M10 6H6C4.89543 6 4 6.89543 4 8V18C4 19.1046 4.89543 20 6 20H16C17.1046 20 18 19.1046 18 18V14M14 4H20M20 4V10M20 4L10 14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
174+
width: 1.1em;
175+
height: 1.1em;
176+
margin-left: .25em;
177+
}
178+
170179

171180
/**
172181
* ╭───────────────────────────────────────────────────────────────╮
@@ -347,6 +356,44 @@ header + nav ul ul {
347356
}
348357

349358

359+
/**
360+
* ╭───────────────────────────────────────────────────────────────╮
361+
* │ Link Icons │
362+
* ╰───────────────────────────────────────────────────────────────╯
363+
**/
364+
365+
.icon::after {
366+
content: "";
367+
display: inline-block;
368+
background-size: contain;
369+
background-color: currentColor;
370+
background-repeat: no-repeat;
371+
background-position: center;
372+
margin-left: .2em;
373+
height: 1.25em;
374+
width: 1.25em;
375+
}
376+
377+
.icon-rss::after { /* https://boxicons.com */
378+
mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M19 20.001C19 11.729 12.271 5 4 5v2c7.168 0 13 5.832 13 13.001h2z'/><path d='M12 20.001h2C14 14.486 9.514 10 4 10v2c4.411 0 8 3.589 8 8.001z'/><circle cx='6' cy='18' r='2'/></svg>");
379+
}
380+
381+
.icon-ext::after { /* https://boxicons.com */
382+
mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m13 3 3.293 3.293-7 7 1.414 1.414 7-7L21 11V3z'/><path d='M19 19H5V5h7l-2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-5l-2-2v7z'/></svg>");
383+
}
384+
385+
.icon-talk::after { /* https://boxicons.com */
386+
mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 3H4c-1.103 0-2 .897-2 2v10c0 1.103.897 2 2 2h7v3H8v2h8v-2h-3v-3h7c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2zM4 15V5h16l.001 10H4z'/><path d='m10 13 5-3-5-3z'/></svg>");
387+
}
388+
389+
.icon-video::after { /* https://boxicons.com */
390+
mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M18 7c0-1.103-.897-2-2-2H4c-1.103 0-2 .897-2 2v10c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2v-3.333L22 17V7l-4 3.333V7zm-1.998 10H4V7h12l.001 4.999L16 12l.001.001.001 4.999z'/></svg>");
391+
}
392+
393+
.icon-article::after { /* https://boxicons.com */
394+
mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M19.875 3H4.125C2.953 3 2 3.897 2 5v14c0 1.103.953 2 2.125 2h15.75C21.047 21 22 20.103 22 19V5c0-1.103-.953-2-2.125-2zm0 16H4.125c-.057 0-.096-.016-.113-.016-.007 0-.011.002-.012.008L3.988 5.046c.007-.01.052-.046.137-.046h15.75c.079.001.122.028.125.008l.012 13.946c-.007.01-.052.046-.137.046z'/><path d='M6 7h6v6H6zm7 8H6v2h12v-2h-4zm1-4h4v2h-4zm0-4h4v2h-4z'/></svg>");
395+
396+
350397
/**
351398
* ╭───────────────────────────────────────────────────────────────╮
352399
* │ Keys & Chars │

www/content/_index.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ Témoignages
9898
<cite>@Pyjam / Floppy</cite>
9999
</blockquote>
100100

101-
[On parle d’Ergo‑L ailleurs, dans la presse et les blogs.][mentions]
101+
[On parle d’Ergo‑L et d’ergonomie clavier ailleurs][ailleurs]
102+
— dans la presse, dans des billets de blogs, dans des conférences…
102103

103104

104105
[presentation]: /presentation/
@@ -112,7 +113,7 @@ Témoignages
112113
[stats]: /stats/
113114
[dactylo]: /dactylo/#ergol
114115
[claviers]: /claviers/
115-
[mentions]: /mentions/
116+
[ailleurs]: /ailleurs/
116117

117118
[Lafayette]: https://qwerty-lafayette.org
118119
[Bépo]: https://bepo.fr

www/content/ailleurs/_index.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
+++
2+
title = "On en parle ailleurs"
3+
+++
4+
5+
dans la presse, dans des billets de blogs, dans des conférences…
6+
7+
<style>
8+
h3 { margin-top: 4em; }
9+
</style>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

www/layouts/_default/list.html

+8-9
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@
33
{{ if not .Params.hideSummaryOfChildPages }}
44
{{ range sort .Pages "Date" "desc" }}
55
<article>
6-
{{ $link := or .Params.redirect_to .RelPermalink }}
7-
{{ $author := index .Site.Data.authors (.Params.author | default "default") }}
86
<header>
9-
<h3><a href="{{ $link }}">{{ .LinkTitle }}</a></h3>
7+
{{ $author := index .Site.Data.authors (.Params.author | default "default") }}
8+
<h3>{{ .LinkTitle }}</h3>
109
<p class="author">
1110
{{ if $author }}
1211
<a href="{{ $author.url }}">{{ $author.name }}</a>
1312
{{ end }}
1413
{{ if .Params.domain }}
15-
{{ $abstract := or .Params.abstract $link }}
14+
{{ $abstract := or .Params.abstract .Params.redirect_to .RelPermalink }}
1615
<a href="{{ $abstract }}">{{.Params.domain }}</a>
1716
{{ end }}
1817
<time>{{ time.Format "2006-01-02" .Date }}</time>
@@ -22,20 +21,20 @@ <h3><a href="{{ $link }}">{{ .LinkTitle }}</a></h3>
2221
{{ .Content }}
2322
<nav class="more">
2423
{{ if in .Params.tags "conférences" }}
25-
<a href="{{ $link }}">Voir le diaporama 🡽</a>
24+
<a href="{{ .Params.redirect_to }}" class="icon icon-talk">Voir le diaporama</a>
2625
{{ if .Params.video }}
27-
<a href="{{ .Params.video }}">Voir la vidéo 🡽</a>
26+
<a href="{{ .Params.video }}" class="icon icon-video">Voir la vidéo</a>
2827
{{ end }}
2928
{{ else if .Params.domain }}
30-
<a href="{{ $link }}">Lire l’article sur {{.Params.domain }} 🡽</a>
29+
<a href="{{ .Params.redirect_to }}" class="icon icon-article">Lire l’article sur {{.Params.domain }}</a>
3130
{{ else }}
32-
<a href="{{ $link }}">Lire l’article 🡽</a>
31+
<a href="{{ .Params.redirect_to }}" class="icon icon-article">Lire l’article</a>
3332
{{ end }}
3433
</nav>
3534
{{ else }}
3635
{{ .Summary }}
3736
<nav class="more">
38-
<a href="{{ $link }}">Lire la suite…</a>
37+
<a href="{{ .RelPermalink }}">Lire la suite…</a>
3938
</nav>
4039
{{ end }}
4140
</article>

0 commit comments

Comments
 (0)