mirror of
https://gitlab.com/ansol/web-ansol.org.git
synced 2024-11-29 09:17:45 +00:00
58 lines
1.6 KiB
HTML
58 lines
1.6 KiB
HTML
|
{{- define "main" -}}
|
||
|
|
||
|
<div class="pub">
|
||
|
|
||
|
{{ partial "page_header.html" . }}
|
||
|
|
||
|
<div class="article-container">
|
||
|
|
||
|
{{ if .Params.abstract }}
|
||
|
<h3>{{ i18n "abstract" }}</h3>
|
||
|
<p class="pub-abstract">{{ .Params.abstract | markdownify }}</p>
|
||
|
{{ end }}
|
||
|
|
||
|
{{ if and (.Params.publication_types) (ne (index .Params.publication_types 0) "0") }}
|
||
|
<div class="row">
|
||
|
<div class="col-md-1"></div>
|
||
|
<div class="col-md-10">
|
||
|
<div class="row">
|
||
|
<div class="col-12 col-md-3 pub-row-heading">{{ i18n "publication_type" }}</div>
|
||
|
<div class="col-12 col-md-9">
|
||
|
{{ $pub_types := partial "functions/get_pub_types" $ }}
|
||
|
{{ range $index, $pubtype := .Params.publication_types }}
|
||
|
<a href="{{ (site.GetPage "section" "publication").RelPermalink }}#{{ . | urlize }}">
|
||
|
{{ index $pub_types (int .) }}
|
||
|
</a>
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-md-1"></div>
|
||
|
</div>
|
||
|
<div class="d-md-none space-below"></div>
|
||
|
{{ end }}
|
||
|
|
||
|
{{ if .Params.publication }}
|
||
|
<div class="row">
|
||
|
<div class="col-md-1"></div>
|
||
|
<div class="col-md-10">
|
||
|
<div class="row">
|
||
|
<div class="col-12 col-md-3 pub-row-heading">{{ i18n "publication" }}</div>
|
||
|
<div class="col-12 col-md-9">{{ .Params.publication | markdownify }}</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-md-1"></div>
|
||
|
</div>
|
||
|
<div class="d-md-none space-below"></div>
|
||
|
{{ end }}
|
||
|
|
||
|
<div class="space-below"></div>
|
||
|
|
||
|
<div class="article-style">{{ .Content }}</div>
|
||
|
|
||
|
{{ partial "page_footer" . }}
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
{{- end -}}
|