Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/sass/_theme/hugo-osuny.sass
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@

// Sections
@import "sections/administrators"
@import "sections/articles"
@import "sections/authors"
@import "sections/categories"
@import "sections/diplomas"
@import "sections/home"
@import "sections/organizations"
@import "sections/pages"
@import "sections/papers"
@import "sections/persons"
@import "sections/posts"
@import "sections/programs"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.article
.paper
@include article

.articles
.papers
@include grid(2, md)
@include grid(3, lg)
6 changes: 3 additions & 3 deletions i18n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ programs:
continuing: Continuing program
volumes:
abstract: Abstract
article:
plural_name: Articles
singular_name: Article
paper:
plural_name: Papers
singular_name: Paper
authors: Authors
full_text: Full text
issn: ISSN
Expand Down
6 changes: 3 additions & 3 deletions i18n/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ programs:
continuing: Formation continue
volumes:
abstract: Résumé
article:
plural_name: Articles
singular_name: Article
paper:
plural_name: Papiers
singular_name: Papier
authors: Auteurs
full_text: Texte intégrale
issn: ISSN
Expand Down
2 changes: 1 addition & 1 deletion layouts/articles/list.html → layouts/papers/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"context" .
) -}}
<div class="container">
{{ partial "articles/articles.html" . }}
{{ partial "papers/papers.html" . }}
{{ partial "commons/pagination.html" . }}
</div>

Expand Down
10 changes: 5 additions & 5 deletions layouts/articles/single.html → layouts/papers/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
<div class="container">
<div class="content">
<div>
{{ partial "articles/abstract.html" . }}
{{ partial "articles/authors.html" . }}
{{ partial "articles/body.html" . }}
{{ partial "articles/references.html" . }}
{{ partial "papers/abstract.html" . }}
{{ partial "papers/authors.html" . }}
{{ partial "papers/body.html" . }}
{{ partial "papers/references.html" . }}
</div>
{{ partial "articles/aside.html" . }}
{{ partial "papers/aside.html" . }}
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<article class="article">
<article class="paper">
<p class="title">
<a href="{{ .Permalink }}">{{ partial "PrepareHTML" .Title }}</a>
</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="articles">
<div class="papers">
{{ range .Paginator.Pages }}
<div>
{{ partial "articles/article.html" . }}
{{ partial "papers/paper.html" . }}
</div>
{{ end }}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<h2>{{ i18n "persons.publications" }}</h2>
<a href="{{ $researchers.Permalink }}" class="link">{{ i18n "persons.publications" }}</a>
</div>
<div class="articles">
{{ range first 3 .articles }}
<div class="papers">
{{ range first 3 .papers }}
<div>
{{ partial "articles/article.html" . }}
{{ partial "papers/paper.html" . }}
</div>
{{ end }}
</div>
Expand Down
8 changes: 4 additions & 4 deletions layouts/persons/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
{{ if isset site.Taxonomies "administrators" -}}
{{ $programsForAdministrator = index site.Taxonomies.administrators $slug}}
{{- end }}
{{- $articlesForResearcher := slice -}}
{{- $papersForResearcher := slice -}}
{{- if isset site.Taxonomies "researchers" -}}
{{ $articlesForResearcher = index site.Taxonomies.researchers $slug}}
{{ $papersForResearcher = index site.Taxonomies.researchers $slug}}
{{ end }}
{{ $author := site.GetPage (printf "/authors/%s" $slug) }}

Expand Down Expand Up @@ -65,8 +65,8 @@
{{ partial "persons/posts.html" $author }}
{{ end }}

{{ if $articlesForResearcher }}
{{ partial "persons/articles.html" (dict "articles" $articlesForResearcher "slug" $slug) }}
{{ if $papersForResearcher }}
{{ partial "persons/papers.html" (dict "papers" $papersForResearcher "slug" $slug) }}
{{ end }}

</div>
Expand Down
2 changes: 1 addition & 1 deletion layouts/researchers/term.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"context" .
) -}}
<div class="container">
{{ partial "articles/articles.html" . }}
{{ partial "papers/papers.html" . }}
{{ partial "commons/pagination.html" . }}
</div>
{{ end }}
2 changes: 1 addition & 1 deletion layouts/volumes/term.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<article itemscope itemtype="https://schema.org/PublicationVolume">
<meta itemprop="name" content="{{ partial "PrepareHTML" .Title }}">
{{- if .Params.image -}}
{{- $image := partial "GetMedia" .Params.image -}}
{{- $image := partial "GetMedia" .Params.image.id -}}
{{- if $image -}}
{{- $url := $image.url -}}
<meta itemprop="image" content="{{ $url }}">
Expand Down