Skip to content

Commit 585940b

Browse files
plus de visibilité aux auteurs et autrices (#264)
1 parent e56de46 commit 585940b

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

www/layouts/_default/home.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ <h2>Articles récents
1212
<header>
1313
<h3>{{ .LinkTitle }}</h3>
1414
<p class="author">
15-
<a href="{{ $author.url }}">{{ $author.name }}</a>
16-
<time><a href="{{ .RelPermalink }}">{{ time.Format "2006-01-02" .Date }}</a></time>
15+
par <a href="{{ $author.url }}">{{ $author.name }}</a>
16+
<time>{{ time.Format "2006-01-02" .Date }}</time>
1717
</p>
1818
</header>
1919
{{ .Summary }}

www/layouts/_default/list.html

+16-6
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,24 @@
55
<article>
66
<header>
77
{{ $author := index .Site.Data.authors (.Params.author | default "default") }}
8+
{{ $abstract := or .Params.abstract .Params.redirect_to .RelPermalink }}
89
<h3>{{ .LinkTitle }}</h3>
910
<p class="author">
10-
{{ if $author }}
11-
<a href="{{ $author.url }}">{{ $author.name }}</a>
12-
{{ end }}
13-
{{ if .Params.domain }}
14-
{{ $abstract := or .Params.abstract .Params.redirect_to .RelPermalink }}
15-
<a href="{{ $abstract }}">{{.Params.domain }}</a>
11+
{{ if in .Params.tags "conférences" }}
12+
conférence de <a href="{{ $author.url }}">{{ $author.name }}</a>
13+
{{ if .Params.domain }}
14+
<a href="{{ $abstract }}">{{.Params.domain }}</a>
15+
{{ end }}
16+
{{ else if in .Params.tags "presse" }}
17+
{{ if .Params.domain }}
18+
article de <a href="{{ $abstract }}">{{.Params.domain }}</a>
19+
{{ end }}
20+
{{ else if .Params.redirect_to }}
21+
{{ if .Params.domain }}
22+
billet de <a href="{{ $abstract }}">{{.Params.domain }}</a>
23+
{{ end }}
24+
{{ else if $author }}
25+
par <a href="{{ $author.url }}">{{ $author.name }}</a>
1626
{{ end }}
1727
<time>{{ time.Format "2006-01-02" .Date }}</time>
1828
</p>

0 commit comments

Comments
 (0)