Init Commit
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
{{- $contextType := printf "%T" . -}}
|
||||
{{- $isShortcode := (eq $contextType "*hugolib.ShortcodeWithPage") -}}
|
||||
|
||||
{{/*
|
||||
sectionId: Optional argument to override the default HTML id for this section. If not provided, the default id is used. */}}
|
||||
{{ $sectionId := "education" }}
|
||||
{{ with .Get "sectionId" }}
|
||||
{{ $sectionId = . }}
|
||||
{{ end }}
|
||||
|
||||
{{- /* Title */}}
|
||||
{{- $title := "" -}}
|
||||
|
||||
{{- if $isShortcode }}
|
||||
{{- $title = .Get "title" | default ( i18n "education_title" ) -}}
|
||||
{{ else }}
|
||||
{{- $title = i18n "education_title" -}}
|
||||
{{ end }}
|
||||
|
||||
<section
|
||||
id="{{ $sectionId }}"
|
||||
class="section section--border-bottom rad-animation-group"
|
||||
>
|
||||
<div class="container-education">
|
||||
<div class="row rad-fade-down">
|
||||
<div class="col-12">
|
||||
<h2>{{ $title }}</h2>
|
||||
<div class="row pt-2 pt-md-4">
|
||||
{{ range where .Site.RegularPages "Type" "education" }}
|
||||
<div class="col-12 col-sm-6 mb-4 mb-sm-0">
|
||||
<div class="education">
|
||||
<div class="education__date">{{ .Params.year }}</div>
|
||||
<div class="education__title">{{ .Params.university }}</div>
|
||||
<div class="education__degree">{{ .Params.degree }}</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
Reference in New Issue
Block a user