Init Commit
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
{{/*
|
||||
sectionId: Optional argument to override the default HTML id for this section. If not provided, the default id is used. */}}
|
||||
{{ $sectionId := "" }}
|
||||
{{ with .Get "sectionId" }}
|
||||
{{ $sectionId = . }}
|
||||
{{ end }}
|
||||
|
||||
{{ $title := .Get "title" | default "" }}
|
||||
{{ $subtitle := .Get "subtitle" | default "" }}
|
||||
{{ $padding := .Get "padding" | default "true" }}
|
||||
{{ $centered := .Get "centered" | default "false" }}
|
||||
{{ $containerClass := "" }}
|
||||
{{ $paddingClass := "" }}
|
||||
{{ $columnClass := "col-12" }}
|
||||
|
||||
{{ if eq $padding "true" }}
|
||||
{{ $containerClass = "container" }}
|
||||
{{ $paddingClass = "section--padding" }}
|
||||
{{ end }}
|
||||
|
||||
{{ if eq $centered "true" }}
|
||||
{{ $containerClass = printf "%s %s" $containerClass "d-flex justify-content-center align-items-center" }}
|
||||
{{ $columnClass = printf "%s %s" $columnClass "text-center" }}
|
||||
{{ end }}
|
||||
|
||||
<section {{if $sectionId}} id="{{ $sectionId }}"{{end}} class="section section--border-bottom rad-animation-group {{ $paddingClass }}">
|
||||
<div class="{{ $containerClass }}">
|
||||
<div class="row rad-fade-down">
|
||||
<div class="{{ $columnClass }}">
|
||||
{{ if $title }}
|
||||
<h2 class="section__title">{{ $title }}</h2>
|
||||
{{ end }}
|
||||
{{ if $subtitle }}
|
||||
<p class="section__subtitle">{{ $subtitle }}</p>
|
||||
{{ end }}
|
||||
<div class="text-section__content">
|
||||
{{ .Inner | markdownify }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
Reference in New Issue
Block a user