Skip to content
Snippets Groups Projects
Commit 8e76781d authored by Olivia206's avatar Olivia206
Browse files

fixed posts toc

parent 8ed1ff42
No related branches found
No related tags found
No related merge requests found
......@@ -157,6 +157,11 @@ papers:
accepted: Accepted
received: Received
download: Download
toc:
abstract: Abstract
researchers: Authors
references: References
content: Content
persons:
posts: News
programs: Programs
......
......@@ -157,6 +157,11 @@ papers:
accepted: Date d'acceptation
received: Date de réception
download: Téléchargement
toc:
abstract: Abstract
researchers: Auteurs
references: Références
content: Texte intégral
persons:
posts: Actualités publiées récemment
programs: Enseignements
......
{{ if (partial "GetTextFromHTML" .Content) }}
<section id="full-text" id="paper-body" class="paper-body">
<section id="content" class="paper-body">
<h2>{{ i18n "volumes.full_text" }}</h2>
<div class="articleBody">
{{ partial "PrepareHTML" .Content }}
......
......@@ -65,10 +65,10 @@
</dl>
</aside>
{{ partial "toc/container.html"
(dict
"toc" "papers/toc.html"
"context" .
)
(dict
"toc" "papers/toc.html"
"context" .
)
}}
</div>
</div>
......
{{ $content := partial "GetTextFromHTML" .context.Params.content }}
{{ $references := partial "GetTextFromHTML" .context.Params.references }}
{{ $researchers := partial "GetTextFromHTML" .context.Params.researchers }}
{{ $abstract := partial "GetTextFromHTML" .context.Params.Abstract }}
{{ $content := .context.Content }}
{{ $references := .context.Params.References }}
{{ $researchers := .context.Params.researchers }}
{{ $abstract := .context.Params.Abstract }}
<nav class="toc" id="nav-toc" aria-label="{{ i18n "commons.toc" }}">
<ol>
<li>
<a href="#{{ urlize (i18n "programs.toc.essential") }}">{{ i18n "programs.toc.essential" }}</a>
</li>
{{- if $abstract -}}
<li><a href="#abstract">{{ i18n "papers.toc.abstract" }}</a></li>
{{- end -}}
{{- if $researchers -}}
<li><a href="#authors">{{ i18n "papers.toc.researchers" }}</a></li>
{{- end -}}
{{- if $content -}}
<li><a href="#content">{{ i18n "papers.toc.content" }}</a></li>
{{- end -}}
{{- if $references -}}
<li><a href="#references">{{ i18n "papers.toc.references" }}</a></li>
{{- end -}}
</ol>
</nav>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment