Repo for my website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
3.6 KiB

{{ define "main" }}
<main class="portfolios">
<h1>Portfolio</h1>
{{- if .Content }}
<div class="content">{{ .Content }}</div>
{{- end }}
<div class="portfolios-list">
{{ range sort .Data.Pages "Params.end_date" "desc" }}
<div class="portfolio">
<div class="portfolio-details">
<h2 class="portfolio-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h2>
<span class="portfolio-company">
<a href="{{ .Params.company_url }}" target="_blank">{{ .Params.company_name | markdownify }}</a>
</span>
<div class="portfolio-meta">
{{- if .Params.start_date }}
<span class="portfolio-start-date">
{{- if eq (printf "%T" .Params.start_date) "time.Time"}}
{{ .Params.start_date.Format ($.Site.Params.DateFormatList | default "2006-01-02") }}
{{- else }}
{{ .Params.start_date }}
{{- end }}
</span>
<span class="portfolio-end-date">
{{- if eq (printf "%T" .Params.end_date) "time.Time"}}
{{- if lt .Params.end_date now }}
{{ .Params.end_date.Format ($.Site.Params.DateFormatList | default "2006-01-02") }}
{{- else }}
Present
{{- end }}
{{- else }}
{{ .Params.end_date }}
{{- end }}
</span>
{{- end }}
{{- if $.Site.Params.ShowReadingTimeInList }}
<span class="portfolio-read-time">— {{ .ReadingTime }}
{{ $.Site.Params.MinuteReadingTime | default "min read" }}</span>
{{- end }}
</div>
{{- if .Params.tags }}
<span class="portfolio-tags">
{{- range .Params.tags }}
#<a href="{{ (urlize (printf "tags/%s" . )) | absURL }}/">{{ . }}</a>&nbsp;
{{- end }}
</span>
{{- end }}
<div class="portfolio-content">
{{- with .Description }}
{{ . | markdownify }}
{{- else }}
{{- if .Truncated }}
{{ .Summary | markdownify }}
{{- end }}
{{- end }}
</div>
{{- with .Params.skills }}
<h3 class="portfolio-skills-title">Skills used:</h3>
<ul class="portfolio-skills">
{{- range . }}
<li class="portfolio-skill">{{ . }}</li>
{{- end }}
</ul>
{{- end}}
{{- if not .Params.hideReadMore }}
<div><a class="read-more button"
href="{{.Permalink}}">{{ $.Site.Params.ReadMore | default "Read more" }}
</a></div>
{{- end }}
</div>
{{- if .Params.Cover }}
<figure class="portfolio-cover">
{{- partial "image.html" (dict "path" .Params.Cover "alt" (.Title | plainify)) }}
{{- if .Params.CoverCaption }}
<figcaption class="center">{{ .Params.CoverCaption | markdownify }}</figcaption>
{{- end }}
</figure>
{{- end }}
</div>
{{- end }}
</div>
</main>
{{ end }}