Skip to content

Commit

Permalink
plus de visibilité aux auteurs et autrices (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabi1cazenave authored Nov 7, 2024
1 parent e56de46 commit 585940b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
4 changes: 2 additions & 2 deletions www/layouts/_default/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ <h2>Articles récents
<header>
<h3>{{ .LinkTitle }}</h3>
<p class="author">
<a href="{{ $author.url }}">{{ $author.name }}</a>
<time><a href="{{ .RelPermalink }}">{{ time.Format "2006-01-02" .Date }}</a></time>
par <a href="{{ $author.url }}">{{ $author.name }}</a>
<time>{{ time.Format "2006-01-02" .Date }}</time>
</p>
</header>
{{ .Summary }}
Expand Down
22 changes: 16 additions & 6 deletions www/layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,24 @@
<article>
<header>
{{ $author := index .Site.Data.authors (.Params.author | default "default") }}
{{ $abstract := or .Params.abstract .Params.redirect_to .RelPermalink }}
<h3>{{ .LinkTitle }}</h3>
<p class="author">
{{ if $author }}
<a href="{{ $author.url }}">{{ $author.name }}</a>
{{ end }}
{{ if .Params.domain }}
{{ $abstract := or .Params.abstract .Params.redirect_to .RelPermalink }}
<a href="{{ $abstract }}">{{.Params.domain }}</a>
{{ if in .Params.tags "conférences" }}
conférence de <a href="{{ $author.url }}">{{ $author.name }}</a>
{{ if .Params.domain }}
<a href="{{ $abstract }}">{{.Params.domain }}</a>
{{ end }}
{{ else if in .Params.tags "presse" }}
{{ if .Params.domain }}
article de <a href="{{ $abstract }}">{{.Params.domain }}</a>
{{ end }}
{{ else if .Params.redirect_to }}
{{ if .Params.domain }}
billet de <a href="{{ $abstract }}">{{.Params.domain }}</a>
{{ end }}
{{ else if $author }}
par <a href="{{ $author.url }}">{{ $author.name }}</a>
{{ end }}
<time>{{ time.Format "2006-01-02" .Date }}</time>
</p>
Expand Down

0 comments on commit 585940b

Please sign in to comment.