Initial checkin

This commit is contained in:
Pim van Pelt
2022-09-04 14:08:48 +02:00
commit fc0ea29973
110 changed files with 9548 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{{ with $.Page.Site.Params.social }}
{{ $socialMap := $.Page.Site.Data.notrack.social }}
{{ $width := default "12em" (.Get "width") }}
{{ $height := default "auto" (.Get "height") }}
{{ $float := default "right" (.Get "float") }}
<div class="contactbox {{ $float }}" style="width: {{ $width }}; height: {{ $height }}">
<ul>
{{- $socialArray := slice -}}
{{ range $website, $user := $.Site.Params.social }}
{{- $social := $website | lower | index $socialMap | default dict -}}
{{- $social := dict "user" $user | merge $social -}}
{{- $socialArray = $socialArray | append $social -}}
{{ end }}
{{ range sort $socialArray "weight" -}}
{{- if .prefix -}}
<li><a href="{{- .prefix -}}{{ .user }}"><i class="{{- .icon.class -}}"></i>{{ .title }}</a></li>
{{- else if .template -}}
<li><a href="{{- printf .template .user -}}"><i class="{{- .icon.class -}}"></i>{{ .title }}</a></li>
{{- else if .url -}}
<li><a href="{{- .url -}}"><i class="{{- .icon.class -}}"></i>{{ .title }}</a></li>
{{- end -}}
{{- end -}}
</ul>
{{ printf "<!-- Icons are from Awesome Font, licenced under SIL OFL 1.1 (https://scripts.sil.org/OFL) -->" | safeHTML }}
</div>
{{ end }}

View File

@ -0,0 +1,3 @@
<div class="{{ default "resume-content" (.Get "class") }}">
{{ .Inner }}
</div>

View File

@ -0,0 +1,4 @@
<ul class="gallery-category">
{{ .Inner }}
<li class="gallery-photo"></li>
</ul>

View File

@ -0,0 +1,8 @@
<!-- Modal for gallery images -->
<div id="myModal" class="modal">
<span class="close">&times;</span>
<img class="modal-content" id="modal-img">
<div id="caption"></div>
<div id="loader"></div>
</div>

View File

@ -0,0 +1,4 @@
<li class="gallery-photo">
<img src="{{ ( printf "img/thumbnails/%s" (.Get "fn")) | absURL }}" }}
alt="{{ .Get "caption" }}">
</li>

View File

@ -0,0 +1 @@
<script src="/js/gallery.js"></script>

View File

@ -0,0 +1,32 @@
<figure class="image-shortcode{{ with .Get "class" }} {{ . }}{{ end }}
{{- with .Get "wide" }}{{- if eq . "true" }} wide{{ end -}}{{ end -}}
{{- with .Get "frame" }}{{- if eq . "true" }} frame{{ end -}}{{ end -}}
{{- with .Get "float" }} {{ . }}{{ end -}}"
style="
{{- with .Get "width" }}width: {{ . }};{{ end -}}
{{- with .Get "height" }}height: {{ . }};{{ end -}}">
{{- if .Get "link" -}}
<a href="{{ .Get "link" }}"{{ with .Get "target" }} target="{{ . }}"{{ end }}{{ with .Get "rel" }} rel="{{ . }}"{{ end }}>
{{- end }}
<img src="{{ .Get "src" | absURL }}"
{{- if or (.Get "alt") (.Get "caption") }}
alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" | markdownify| plainify }}{{ end }}"
{{- end -}}
/> <!-- Closing img tag -->
{{- if .Get "link" }}</a>{{ end -}}
{{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}}
<figcaption>
{{ with (.Get "title") -}}
<h4>{{ . }}</h4>
{{- end -}}
{{- if or (.Get "caption") (.Get "attr") -}}<p>
{{- .Get "caption" | markdownify -}}
{{- with .Get "attrlink" }}
<a href="{{ . }}">
{{- end -}}
{{- .Get "attr" | markdownify -}}
{{- if .Get "attrlink" }}</a>{{ end }}</p>
{{- end }}
</figcaption>
{{- end }}
</figure>

View File

@ -0,0 +1 @@
{{ .Inner }}

View File

@ -0,0 +1 @@
<p class="resume-subcategory">{{ .Get "title" }}</p>

View File

@ -0,0 +1,31 @@
<div class="resume-entry">
<!-- What the resume entry is about (degree program, work, etc.) -->
{{ with .Get "what" }}
<p class="what">{{ . }}</p>
{{ end }}
{{ $where := false }}
{{ $when := false }}
{{/* Where was the thing you did? (e.g. Mozilla) */}}
{{ with .Get "where" }}{{ $where = . }}{{ end }}
{{/* When did you do it? (e.g. 2020) */}}
{{- with .Get "when" }}{{ $when = . }}{{ end }}
{{ if and $where $when }}
<p class="resume-entry-data"><span class="where">{{ $where }}</span> |
<span class="when">{{ $when }}</span></p>
{{ else if $where }}
<p class="resume-entry-data"><span class="where">{{ $where }}</span></p>
{{ else if $when }}
<p class="resume-entry-data"><span class="when">{{ $when }}</span></p>
{{ end }}
{{/* additional HTML under or as the entry */}}
{{ if gt (len .Inner) 0 }}
<div class="resume-inner">
{{ .Inner }}
</div>
{{ end }}
</div>

View File

@ -0,0 +1,6 @@
<div class="category-title">
<h4>{{ .Get "title" }}</h4>
</div>
<div class="category-content">
{{ .Inner }}
</div>

View File

@ -0,0 +1,28 @@
{{ $socialMap := .Site.Data.notrack.social }}
{{ with $.Site.Params.social }}
<div class="social">
<ul>
{{- $socialArray := slice -}}
{{ range $website, $user := $.Site.Params.social }}
{{- $social := $website | lower | index $socialMap | default dict -}}
{{- $social := dict "user" $user | merge $social -}}
{{- $data := index $socialMap $website -}}
{{- $socialArray = $socialArray | append $social -}}
{{ end }}
{{ range sort $socialArray "weight" -}}
{{- if .prefix -}}
<li><a href="{{- .prefix -}}{{ .user }}"><i class="{{- .icon.class -}}"></i>{{ .title }}</a></li>
{{- else if .template -}}
<li><a href="{{- printf .template .user -}}"><i class="{{- .icon.class -}}"></i>{{ .title }}</a></li>
{{- else if .url -}}
<li><a href="{{- .url -}}"><i class="{{- .icon.class -}}"></i>{{ .title }}</a></li>
{{- end -}}
{{- end -}}
</ul>
</div>
{{ end }}
{{ printf "<!-- Icons are from Awesome Font, licenced under SIL OFL 1.1 (https://scripts.sil.org/OFL) -->" | safeHTML }}

View File

@ -0,0 +1,5 @@
<video class="video-shortcode" preload="{{ .Get "preload" }}" controls>
<source src="{{ .Get "src" }}" type="{{ .Get "type" }}">
There should have been a video here but your browser does not seem
to support it.
</video>