Skip to content

Commit

Permalink
Add logos to company
Browse files Browse the repository at this point in the history
  • Loading branch information
BernatBC committed Feb 3, 2024
1 parent d62f374 commit 9c6fd73
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions layouts/partials/sections/experiences/single-position.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
<div class="col-10 col-lg-8">
<div class="experience-entry-heading">
{{ $position:= index .positions 0 }}
{ $logoImage:= resources.Get .company.logo}}
{{ if $logoImage }}
{{/* svg don't support "Fit" operation */}}
{{ if ne $logoImage.MediaType.SubType "svg" }}
{{ $logoImage = $logoImage.Fit "300x300" }}
{{ end }}
<div class="logo-holder">
<img class="company-logo" src="{{ $logoImage.RelPermalink }}" alt="{{ .name }}" />
</div>
{{ end }}
<!-- For single position, give emphasis on the designation-->
<h5>{{ $position.designation }}</h5>
<h6>{{ if .company.url }}<a href={{.company.url}} title="{{ .company.name }}" target="_blank" rel="noopener">{{ .company.name }}</a>{{ else }}{{ .company.name }}{{ end }}</h6>
Expand Down

0 comments on commit 9c6fd73

Please sign in to comment.