theme-blog-ewen/layouts/cv/list.html

100 lines
5.3 KiB
HTML
Raw Normal View History

2022-03-31 04:22:55 +00:00
{{ define "main" }}
<section class="section-sm">
<div class="container">
{{ .Page.Content }}
<div class="row">
2023-08-02 08:48:05 +00:00
<div class="col-lg-8 mb-10 mb-lg-0">
2022-03-31 04:22:55 +00:00
{{ $cv_sections := where .Pages "Params.Widget" "cv"}}
{{ range $ids, $item := sort $cv_sections ".Params.weight" "asc" }}
{{ $items_len := len .Params.items }}
<div class="col-12 mb-5">
<h3 class="section-header">{{ .Title | markdownify }}</h3>
{{ range $idx, $key := .Params.items }}
<div class="card mt-3">
<div class="card-body">
{{- if .logo -}}
<div class="card-logo">
<img src="./{{ .logo | relURL }}" alt="Logo">
</div>
{{- end -}}
<h4 class="card-title">{{ .title | markdownify }}{{- with .details }}<a class="btn btn-outline-primary btn-xsm ms-2 px-1 py-0" href="{{ . }}">{{ i18n "details" | default "Details" }}</a>{{- end -}}</h4>
{{ with .subtitle }}<h6 class="card-subtitle text-muted">{{ . | markdownify }}</h6>{{ end }}
{{ with .description }}<div class="card-text details mt-2">{{ . | markdownify | emojify }}</div>{{ end }}
</div>
{{ if .date_start }}
<div class="card-footer">
{{ (time .date_start) | time.Format ($item.Params.date_format | default "January 2006") }}
{{ if .date_end }}
{{ (time .date_end) | time.Format ($item.Params.date_format | default "January 2006") }}
{{ else }}
{{ i18n "present" | default "Present" }}
{{ end }}
{{ with .location }}
·
<span>{{ . }}</span>
{{ end }}
</div>
{{ end }}
</div>
{{ end }}
</div>
{{ end }}
{{/*
< class="col-12 {{if eq $columns "2"}}col-lg-8{{end}}">
<h4 class="widget-title">{{ .Title | markdownify }}</h4>
{{ range $idx, $key := .Params.experience }}
<div class="row experience">
<!-- Timeline --> */}}
{{/* <div class="col-auto text-center flex-column d-none d-sm-flex">
<div class="row h-50">
<div class="col {{ if gt $idx 0}}border-right{{end}}">&nbsp;</div>
<div class="col">&nbsp;</div>
</div>
<div class="m-2">
<span class="badge badge-pill border {{if not .date_end}}exp-fill{{end}}">&nbsp;</span>
</div>
<div class="row h-50">
<div class="col {{if lt $idx (sub $exp_len 1)}}border-right{{end}}">&nbsp;</div>
<div class="col">&nbsp;</div>
</div>
</div>
<!-- Content -->
<div class="col py-2">
<div class="card">
<div class="card-body">
<div class="section-subheading card-title exp-title text-muted my-0">{{ .title | markdownify }}</div>
<div class="section-subheading card-title exp-company text-muted my-0">
{{- with .company_url}}<a href="{{.}}" target="_target">{{end}}{{ .company | markdownify }}{{ with .company_url}}</a>{{end -}}
</div>
<div class="text-muted exp-meta">
{{ (time .date_start) | time.Format (.Params.date_format | default "January 2006") }}
{{ if .date_end }}
{{ (time .date_end) | time.Format (.Params.date_format | default "January 2006") }}
{{ else }}
{{ i18n "present" | default "Present" }}
{{ end }}
{{ with .location }}
<span class="middot-divider"></span>
<span>{{ . }}</span>
{{ end }}
</div>
</div>
{{ with .description}}
<div class="card-text">{{ . | markdownify | emojify }}</div>
{{ end }}
</div>
</div>
</div>
{{ end }} */}}
</div>
{{ partial "sidebar.html" . }}
</div>
</div>
</section>
2023-08-02 08:48:05 +00:00
{{ end }}