Init Commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{{ partial "about.html" . }}
|
||||
@@ -0,0 +1 @@
|
||||
{{ partial "client-and-work.html" . }}
|
||||
@@ -0,0 +1 @@
|
||||
{{ partial "contact.html" . }}
|
||||
@@ -0,0 +1 @@
|
||||
{{ partial "education.html" . }}
|
||||
@@ -0,0 +1,54 @@
|
||||
{{/*
|
||||
sectionId: Optional argument to override the default HTML id for this section. If not provided, the default id is used. */}}
|
||||
{{ $sectionId := "experience-list-shortcode" }}
|
||||
{{ with .Get "sectionId" }}
|
||||
{{ $sectionId = . }}
|
||||
{{ end }}
|
||||
|
||||
{{ $padding := .Get "padding" }}
|
||||
{{ $title := .Get "title" | default "" }}
|
||||
{{ $containerClass := "" }}
|
||||
{{ if eq $padding "true" }}
|
||||
{{ $containerClass = "container" }}
|
||||
{{ end }}
|
||||
|
||||
<section {{if $sectionId}} id="{{ $sectionId }}"{{end}} class="section-experience section section--border-bottom rad-animation-group flex-grow-1 {{ $containerClass }}">
|
||||
<div class="row flex-column-reverse flex-md-row rad-fade-down">
|
||||
<div class="experience-list col-12 mt-5 mt-sm-0">
|
||||
{{ if $title }}
|
||||
<h2 class="section__title mb-4">{{ $title }}</h2>
|
||||
{{ end }}
|
||||
|
||||
{{ $xp := (where .Site.RegularPages.ByDate "Type" "experience") }}
|
||||
|
||||
{{ $xpCount := len $xp }}
|
||||
|
||||
{{ range $index, $element := first $xpCount (sort $xp "Date" "desc") }}
|
||||
<div class="experience row">
|
||||
<div class="experience__header col-12 col-md-3 d-flex align-items-start">
|
||||
{{ $img := resources.Get .Params.companyLogo }}
|
||||
{{ with $img }}
|
||||
{{ $imgWebp := $img.Resize (printf "%dx%d webp q75 Lanczos picture" $img.Width $img.Height) }}
|
||||
<img src="{{ $imgWebp.RelPermalink }}" alt="{{ .Params.company }} logo"
|
||||
class="experience__company-logo" loading="lazy">
|
||||
{{ end }}
|
||||
<div class="experience__meta">
|
||||
<div class="experience__date">{{ .Params.duration }}</div>
|
||||
<div class="experience__title">{{ .Params.jobTitle }}</div>
|
||||
<div class="experience__company">{{ .Params.company }}. <span class="experience__location">
|
||||
{{ .Params.location }}</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="experience__description d-print-block col-12 col-md-9 mt-3 mt-md-0">
|
||||
<h1>{{ .Params.title }}</h1>
|
||||
{{ .Content | safeHTML }}
|
||||
</div>
|
||||
</div>
|
||||
{{ if ne $index (sub $xpCount 1) }}
|
||||
<!-- Separator between experiences for mobile -->
|
||||
<hr class="d-block d-md-none my-4">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1 @@
|
||||
{{ partial "experience.html" . }}
|
||||
@@ -0,0 +1,9 @@
|
||||
{{ $url := .Get "url" }}
|
||||
{{ $icon := .Get "icon" }} <!-- Fixed variable assignment for icon -->
|
||||
<a
|
||||
href="{{ $url | absURL }}"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
{{ if $icon }}aria-label="{{ $icon }}"{{ end }}
|
||||
>{{ if $icon }}<i class="icon-{{ $icon }}"></i>{{ end }}
|
||||
</a>
|
||||
@@ -0,0 +1 @@
|
||||
{{ partial "newsletter.html" . }}
|
||||
@@ -0,0 +1,11 @@
|
||||
{{/* layouts/shortcodes/platform-links.html */}}
|
||||
|
||||
{{ $sectionId := "" }}
|
||||
{{ with .Get "sectionId" }}
|
||||
{{ $sectionId = . }}
|
||||
{{ end }}
|
||||
<div class="container"{{ if $sectionId }} id="{{ $sectionId }}"{{ end }}>
|
||||
<div class="row platform-links shortcode">
|
||||
<div class="col-12">{{ .Inner }}</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,2 @@
|
||||
{{ .Scratch.Set "Inner" .Inner }}
|
||||
{{ partial "showcase.html" . }}
|
||||
@@ -0,0 +1,14 @@
|
||||
{{ $size := .Get "size" | default "medium" }}
|
||||
{{ $class := "" }}
|
||||
|
||||
{{ if eq $size "small" }}
|
||||
{{ $class = "pt-3" }}
|
||||
{{ else if eq $size "medium" }}
|
||||
{{ $class = "pt-5" }}
|
||||
{{ else if eq $size "large" }}
|
||||
{{ $class = "pt-5 mt-4" }}
|
||||
{{ else if eq $size "xlarge" }}
|
||||
{{ $class = "pt-5 mt-5" }}
|
||||
{{ end }}
|
||||
|
||||
<div class="spacer {{ $class }}"></div>
|
||||
@@ -0,0 +1 @@
|
||||
{{ partial "testimonial.html" . }}
|
||||
@@ -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>
|
||||
@@ -0,0 +1,14 @@
|
||||
{{ $class := .Get "class" | default "table-of-contents" }}
|
||||
{{ $heading := .Get "heading" | default "Table of Contents" }}
|
||||
{{ $showHeading := .Get "showHeading" | default true }}
|
||||
|
||||
{{ if .Page.TableOfContents }}
|
||||
<div class="{{ $class }}">
|
||||
{{ if $showHeading }}
|
||||
<h2 class="toc-heading">{{ $heading }}</h2>
|
||||
{{ end }}
|
||||
<div class="toc-content">
|
||||
{{ .Page.TableOfContents }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user