Skip to content

Instantly share code, notes, and snippets.

@sunprinceS
Created January 17, 2020 14:34
Show Gist options
  • Save sunprinceS/4c7584f7a033843d69824449b998f5a3 to your computer and use it in GitHub Desktop.
Save sunprinceS/4c7584f7a033843d69824449b998f5a3 to your computer and use it in GitHub Desktop.
{{ $ := .root }}
{{ $page := .page }}
<!-- Accomplishments widget -->
<div class="row">
<div class="col-12 col-lg-4 section-heading">
<h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
</div>
<div class="col-12 col-lg-8">
{{ with $page.Content }}{{ . }}{{ end }}
{{ if $page.Params.item }}
{{ range $idx, $key := sort $page.Params.item ".time_start" }}
<div class="card experience course">
<div class="card-body">
{{- with .url -}}<a href="{{.}}" target="_blank" rel="noopener">{{- end -}}
<h4 class="card-title exp-title text-muted my-0">{{.title | markdownify | emojify}}</h4>
{{- with .url -}}</a>{{- end -}}
<div class="card-subtitle my-0 article-metadata">
{{- with .speaker_url}}<a href="{{.}}" target="_blank" rel="noopener">{{end -}}
{{- .speaker | markdownify | emojify -}} &nbsp; [{{- .organization | markdownify | emojify -}}]
{{- with .speaker_url}}</a>{{end -}}
<span class="middot-divider"></span>
{{ $t1 := time .time_start}}
{{ $t2 := time .time_end}}
{{ $str:= slice ((time $t1).Format site.Params.time_format) | append "&mdash;" | append ((time $t2).Format site.Params.time_format)}}
{{ delimit $str " "}}
</div>
{{with .description}}
<div class="card-text">{{. | markdownify | emojify}}</div>
{{end}}
</div>
</div>
{{end}}
{{end}}
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment