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

Merge branch 'main' of github.com:noesya/osuny-hugo-theme-aaa

parents 86c14667 d5c29ca9
No related branches found
No related tags found
No related merge requests found
......@@ -164,18 +164,25 @@ ol.persons
.avatar
margin-bottom: 0
width: col(3)
@include media-breakpoint-up(lg)
.persons__page
.lead
margin-bottom: $spacing2
.roles
a
@include small
.person-programs
margin-top: $spacing4
@include media-breakpoint-down(lg)
.roles
margin-top: $spacing2
@include media-breakpoint-up(lg)
.informations
@include grid
margin-bottom: $spacing2
> div
&:first-of-type
grid-column: 1 / 9
&:nth-of-type(2)
grid-column: 9 / 13
> div:first-of-type
grid-column: 1 / 9
.roles
grid-column: 9 / 13
text-align: right
.lead + div
margin-top: $spacing2
......
......@@ -4,7 +4,7 @@
{{- $bodyclass = printf "page-%s" $bodyclass -}}
{{- end -}}
{{- if or .Params.full_width (and (eq .Kind "section") (eq .Type "posts")) .Params.diplomas -}}
{{- if or .Params.full_width (and (eq .Kind "section") (eq .Type "posts")) -}}
{{- $bodyclass = printf "full-width %s" $bodyclass -}}
{{- end -}}
......
{{ $slug := .slug }}
<section>
<section class="person-programs">
<div class="top">
<h2>{{ i18n "persons.programs" }}</h2>
<h2 class="h5">{{ i18n "persons.programs" }}</h2>
</div>
<ol class="programs" itemscope itemtype="https://schema.org/CreativeWork">
{{ range .programs }}
......
......@@ -40,20 +40,20 @@
</div>
{{ end }}
</div>
<div>
{{ range $programsForAdministrator }}
{{ $program := . }}
{{ range $programsForAdministrator }}
{{ $program := . }}
<div class="roles">
{{ range .Params.roles }}
{{ $role := .title }}
{{ if in .persons $slug }}
<p>
{{ safeHTML $role }}<br>
<a href="{{ $program.Permalink }}" class="link link-more">{{ safeHTML $program.Title }}</a>
<a href="{{ $program.Permalink }}" class="link">{{ safeHTML $program.Title }}</a>
</p>
{{ end }}
{{ end }}
{{ end }}
</div>
</div>
{{ end }}
</div>
</div>
......
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