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

added heroc case

parent 90019400
No related branches found
No related tags found
No related merge requests found
......@@ -147,6 +147,8 @@ ul.diplomas
@include media-breakpoint-up(md)
display: flex
justify-content: space-between
.program-website
margin-bottom: $spacing-4
.essential
@include meta
color: $header-color
......
<div class="essential-container" id="#{{ urlize (i18n "programs.toc.essential") }}">
{{- if and (eq site.Params.summary.position "hero") .Params.website_url -}}
{{- partial "programs/website.html" . -}}
{{- end -}}
<div class="container">
{{ $parent := .Params.parent }}
{{- with .Params.diplomas -}}
{{- $diploma := site.GetPage (printf "/diplomas/%s" .) -}}
......
{{- if .context.Params.website_url -}}
<div class="program-heading">
{{- end -}}
{{- partial "commons/summary-in-content.html" . -}}
{{- if .context.Params.website_url -}}
<div class="container">
<a href="{{- .Params.website_url -}}" target="_blank" class="btn">{{ i18n "programs.website" }}</a>
{{- $has_website := .context.Params.website_url -}}
{{- if eq site.Params.summary.position "content" -}}
{{- if and $has_website -}}
<div class="program-heading">
{{- end -}}
{{- partial "commons/summary-in-content.html" . -}}
{{- if $has_website -}}
{{- partial "programs/website.html" . -}}
</div>
</div>
{{- end -}}
{{- end -}}
\ No newline at end of file
<div class="container program-website">
<a href="{{- .Params.website_url -}}" target="_blank" class="btn">{{ i18n "programs.website" }}</a>
</div>
\ 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