Skip to content
Snippets Groups Projects
Commit 68dfc6cf authored by alexisben's avatar alexisben
Browse files

Merge branch 'main' into 6.0

parents 6d29e420 d8a09501
No related branches found
No related tags found
No related merge requests found
...@@ -124,9 +124,6 @@ ...@@ -124,9 +124,6 @@
&--list &--list
ul ul
@include list-reset @include list-reset
&.title-only
li
line-height: 1
li li
display: block display: block
+ li + li
......
...@@ -26,6 +26,8 @@ footer#document-footer ...@@ -26,6 +26,8 @@ footer#document-footer
.footer .footer
&-site &-site
@include small @include small
* + *
margin-top: $spacing0
&-social, &-legals, &-credit &-social, &-legals, &-credit
@include meta @include meta
&-credit &-credit
......
{{ $section_type := .}} {{ $section_type := . }}
{{ $use_default := (index site.Params $section_type).default_image}} {{ $use_default := (index site.Params $section_type).default_image }}
{{ $image := site.Data.website.default.image }} {{ $image := index site.Data.website.default "image" }}
{{ if and $use_default $image }} {{ if and $use_default $image }}
{{ with index site.Params.image_sizes.sections $section_type }} {{ with index site.Params.image_sizes.sections $section_type }}
{{ $sizes := .items }} {{ $sizes := .item }}
{{ $sizes }}
{{- partial "commons/image.html" {{- partial "commons/image.html"
(dict (dict
"image" $image "image" $image
"sizes" $sizes "sizes" $sizes
) -}} ) -}}
{{ end }} {{ end }}
{{ end }} {{ end }}
\ No newline at end of file
{{ $logo := site.Params.logo.header }}
{{- with site.Data.school -}} {{- with site.Data.school -}}
<address itemscope itemtype="https://schema.org/CollegeOrUniversity"> <div itemscope itemtype="https://schema.org/CollegeOrUniversity">
<meta itemprop="image" content="/assets/images/logo.svg"> <meta itemprop="logo" content="{{ $logo }}">
<p itemprop="name">{{ htmlUnescape (trim .name "\n") }}</p> <p itemprop="name">{{ htmlUnescape (trim .name "\n") }}</p>
{{ if or (.address) (.country) -}} {{ if or (.address) (.country) -}}
<p itemprop="address" itemscope itemtype="https://schema.org/PostalAddress"> <address itemprop="address" itemscope itemtype="https://schema.org/PostalAddress">
{{ if .address }}<span itemprop="streetAddress">{{ trim .address "\n" }}</span><br>{{ end }} {{ if .address }}<span itemprop="streetAddress">{{ trim .address "\n" }}</span><br>{{ end }}
{{ if .zipcode }}<span itemprop="postalCode">{{ trim .zipcode "\n" }}</span> {{ end }}{{ if .city }}<span itemprop="addressLocality">{{ trim .city "\n" }}</span>{{ end }} {{ if .zipcode }}<span itemprop="postalCode">{{ trim .zipcode "\n" }}</span> {{ end }}{{ if .city }}<span itemprop="addressLocality">{{ trim .city "\n" }}</span> {{ end }}{{ if .country }}<span itemprop="addressCountry">{{ trim .country "\n" }}</span>{{ end }}
{{ if .country }}<span itemprop="addressCountry">{{ trim .country "\n" }}</span>{{ end }} </address>
</p> {{ end }}
{{ end }} {{- if .phone -}}
{{- if .phone -}} <p>
<p> {{- $phone := trim .phone "\n " -}}
{{- $phone := trim .phone "\n " -}} {{- $phone_href := replace $phone " " "" -}}
{{- $phone_href := replace $phone " " "" -}} <a itemprop="telephone" href="tel:{{ $phone_href }}">{{ $phone }}</a>
<a itemprop="telephone" href="tel:{{ $phone_href }}">{{ $phone }}</a> </p>
</p> {{- end }}
{{- end }} </div>
</address>
{{- end -}} {{- end -}}
{{- with site.Data.laboratory -}} {{- with site.Data.laboratory -}}
<address itemscope itemtype=""> <div itemscope itemtype="https://schema.org/ResearchOrganization">
<meta itemprop="image" content="/assets/images/logo.svg"> <meta itemprop="logo" content="{{ $logo }}">
<p itemprop="name">{{ htmlUnescape (trim .name "\n") }}</p> <p itemprop="name">{{ htmlUnescape (trim .name "\n") }}</p>
{{ if or (.address) (.country) }} {{ if or (.address) (.country) }}
<p itemprop="address" itemscope itemtype="https://schema.org/PostalAddress"> <address itemprop="address" itemscope itemtype="https://schema.org/PostalAddress">
{{ if .address }}<span itemprop="streetAddress">{{ .address }}</span><br>{{ end }} {{ if .address_name }}<span itemprop="name">{{ .address_name }}</span><br>{{ end }}
{{ if .zipcode }}<span itemprop="postalCode">{{ .zipcode }}</span> {{ end }}{{ if .city }}<span itemprop="addressLocality">{{ .city }}</span>{{ end }}<br> {{ if .address }}<span itemprop="streetAddress">{{ .address }}</span><br>{{ end }}
{{ if .country }}<span itemprop="addressCountry">{{ .country }}</span>{{ end }} {{ if .address_additional }}<span itemprop="description">{{ .address_additional }}</span><br>{{ end }}
</p> {{ if .zipcode }}<span itemprop="postalCode">{{ .zipcode }}</span> {{ end }}{{ if .city }}<span itemprop="addressLocality">{{ .city }}</span> {{ end }}{{ if .country }}<span itemprop="addressCountry">{{ .country }}</span>{{ end }}
{{ end }} </address>
{{- if .phone -}} {{ end }}
<p> {{- if .phone -}}
{{- $phone := trim .phone "\n " -}} <p>
{{- $phone_href := replace $phone " " "" -}} {{- $phone := trim .phone "\n " -}}
<a itemprop="telephone" href="tel:{{ $phone_href }}">{{ $phone }}</a> {{- $phone_href := replace $phone " " "" -}}
</p> <a itemprop="telephone" href="tel:{{ $phone_href }}">{{ $phone }}</a>
{{- end }} </p>
</address> {{- end }}
</div>
{{- end -}} {{- end -}}
{{- with site.Data.journal -}} {{- with site.Data.journal -}}
<div itemscope itemtype="https://schema.org/Periodical"> <div itemscope itemtype="https://schema.org/Periodical">
<meta itemprop="image" content="/assets/images/logo.svg"> <meta itemprop="image" content="/assets/images/logo.svg">
<p itemprop="name">{{ htmlUnescape (trim .name "\n") }}</p> <p itemprop="name">{{ htmlUnescape (trim .name "\n") }}</p>
<p itemprop="issn">{{ trim .issn "\n" }}</p> <p itemprop="issn">{{ trim .issn "\n" }}</p>
</div> </div>
{{- end -}} {{- end -}}
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