Split experiences into single project or multiproject
The idea is try to follow the Linkedin approach for one vs multiple projects visualisation. Also removed the link from company to avoid useless clickout
This commit is contained in:
parent
ef7d0fe108
commit
f065c81cb5
3 changed files with 34 additions and 14 deletions
|
@ -1,14 +1,6 @@
|
|||
<div class="col-10 col-lg-8">
|
||||
<div class="experience-entry-heading">
|
||||
<h5>{{ .designation }}</h5>
|
||||
<h6><a href="{{ .company.url }}">{{ .company.name }}</a></h6>
|
||||
<p class="text-muted">{{ .start }} - {{ if .end }} {{ .end }} {{ else }}Present{{ end }}, {{ .company.location }}</p>
|
||||
</div>
|
||||
<p>{{ .company.overview | markdownify }}</p>
|
||||
<h6 class="text-muted">Responsibilities:</h6>
|
||||
<ul class="justify-content-around">
|
||||
{{ range .responsibilities }}
|
||||
<li>{{ . | markdownify }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ if .projects }}
|
||||
{{ partial "experiences/info/multiple-projects.html" . }}
|
||||
{{ else }}
|
||||
{{ partial "experiences/info/one-project.html" . }}
|
||||
{{ end }}
|
||||
|
||||
|
|
14
layouts/partials/experiences/info/multiple-projects.html
Normal file
14
layouts/partials/experiences/info/multiple-projects.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<div class="col-10 col-lg-8">
|
||||
<div class="experience-entry-heading">
|
||||
<h5>{{ .company.name }}</h5>
|
||||
<h6>{{ .designation }}</h6>
|
||||
<p class="text-muted">{{ .start }} - {{ if .end }} {{ .end }} {{ else }}Present{{ end }}, {{ .company.location }}</p>
|
||||
</div>
|
||||
<p>{{ .company.overview | markdownify }}</p>
|
||||
<h6 class="text-muted">Responsibilities:</h6>
|
||||
<ul class="justify-content-around">
|
||||
{{ range .responsibilities }}
|
||||
<li>{{ . | markdownify }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
14
layouts/partials/experiences/info/one-project.html
Normal file
14
layouts/partials/experiences/info/one-project.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<div class="col-10 col-lg-8">
|
||||
<div class="experience-entry-heading">
|
||||
<h5>{{ .company.name }}</h5>
|
||||
<h6>{{ if .designation }} {{ .designation }} {{end}}</h6>
|
||||
<p class="text-muted">{{ .start }} - {{ .end }} , {{ .company.location }}</p>
|
||||
</div>
|
||||
<p>{{ .company.overview | markdownify }}</p>
|
||||
<h6 class="text-muted">Responsibilities:</h6>
|
||||
<ul class="justify-content-around">
|
||||
{{ range .responsibilities }}
|
||||
<li>{{ . | markdownify }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue