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

created template for programs children list

parent 4fea2d1e
No related branches found
No related tags found
No related merge requests found
......@@ -42,10 +42,15 @@ ul.diplomas
display: block
border-bottom: 0
padding: 0
+ li
+ li, > ol
margin-top: $spacing1
a:hover
color: $color-accent
ol
ol
margin-left: $spacing1
li
@include icon(list-hyphen, before)
.program
div
......
......@@ -16,24 +16,30 @@
<ol class="programs">
{{- range .Params.programs -}}
<li>
<a href="{{ .Permalink }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" .label)) }}">
{{- partial "PrepareHTML" .label -}}
</a>
{{- range .children -}}
<ol>
<li>
<a href="{{ .path }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" .label)) }}">
{{- partial "PrepareHTML" .label -}}
</a>
</li>
</ol>
{{ end }}
</li>
{{- template "programsList" . -}}
{{- end -}}
</ol>
</div>
</li>
{{ end }}
</ul>
{{- define "programsList" -}}
<li>
<a href="{{ .Permalink }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" .label)) }}">
{{- partial "PrepareHTML" .label -}}
</a>
<ol>
{{- range .children -}}
<li>
<a href="{{ .path }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" .label)) }}">
{{- partial "PrepareHTML" .label -}}
</a>
{{ if .children }}
{{- template "programsList" . -}}
{{ end }}
</li>
{{ end }}
</ol>
</li>
{{- end -}}
\ 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