Skip to content

Commit

Permalink
Merge branch 'main' into tag-sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
hossainemruz authored Feb 12, 2024
2 parents b82d005 + 96768ad commit ab1ff56
Show file tree
Hide file tree
Showing 10 changed files with 94 additions and 59 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ For more details about the features please visit [here](https://toha-guides.netl
- Português Europeu
- Català
- Português Brasileiro
- Nederlands

To know more about how to translate your site, please visit [here](https://toha-guides.netlify.app/posts/translation/). Follow, the data and post format from this [example site](https://hugo-toha.github.io).

Expand Down
10 changes: 10 additions & 0 deletions assets/styles/components/images.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,13 @@ html[data-theme='dark'] {
.svg-inverted {
filter: invert(1);
}

.logo-holder {
height: 64px;
margin-bottom: 1em;
}

.company-logo {
max-height: 100%;
width: auto;
}
10 changes: 10 additions & 0 deletions assets/styles/sections/experiences.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,16 @@
}
}

.company-heading {
h5 {
display: inline;
margin-right: 0.25em;
}
p {
display: inline;
}
}

@include media('<=medium') {
.container {
max-width: 100%;
Expand Down
12 changes: 12 additions & 0 deletions layouts/partials/sections/education-alt.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ <h1 class="text-center" style="display: none">
</td>
<td class="details">
<div class="degree-info card">

{{ $logoImage:= resources.Get .institution.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 }}

<div class="row">
<div class="col-lg-10 col-md-8">
{{ if .institution.url }}
Expand Down
13 changes: 13 additions & 0 deletions layouts/partials/sections/education.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@ <h1 class="text-center" style="display: none">
</td>
<td class="details">
<div class="degree-info card">

{{ $logoImage:= resources.Get .institution.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 }}

<div class="row">
<div class="col-lg-10 col-md-8">
{{ if .institution.url }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/sections/experiences.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ <h1 class="text-center" style="display: none">
{{ if eq (mod $index 2) 0 }}
<div class="row align-items-center d-flex">
{{ partial "sections/experiences/vertical-line.html" $index }}
{{ partial "sections/experiences/experience-info.html" $experience }}
{{ partial "sections/experiences/positions.html" $experience }}
</div>
{{else}}
<div class="row align-items-center justify-content-end d-flex">
{{ partial "sections/experiences/experience-info.html" $experience }}
{{ partial "sections/experiences/positions.html" $experience }}
{{ partial "sections/experiences/vertical-line.html" $index }}
</div>
{{ end }}
Expand Down
5 changes: 0 additions & 5 deletions layouts/partials/sections/experiences/experience-info.html

This file was deleted.

29 changes: 0 additions & 29 deletions layouts/partials/sections/experiences/multiple-positions.html

This file was deleted.

46 changes: 46 additions & 0 deletions layouts/partials/sections/experiences/positions.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<div class="col-10 col-lg-8">
<div class="experience-entry-heading">
{{ $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 }}
<!-- Total experience duration on a company is time between the starting date of the oldest position and ending date of most recent position -->
{{ $oldestPosition := index (last 1 .positions) 0}}
{{ $mostRecentPosition := index (first 1 .positions) 0}}
<div class="company-heading">
<h5>{{ if .company.url }}<a href={{.company.url}} title="{{ .company.name }}" target="_blank" rel="noopener">{{ .company.name }}</a>{{ else }}{{ .company.name }}{{ end }}</h5>
<p class="text-muted">
{{ $oldestPosition.start }} - {{ if $mostRecentPosition.end }}{{ $mostRecentPosition.end }}{{ else }}{{ i18n "present" }}{{ end }}
</p>
</div>
<p class="text-muted">
<i class="fa-solid fa-location-dot"></i> {{ .company.location }}
</p>
<!-- Add company overview -->
<p>{{ .company.overview | markdownify }}</p>
</div>
<!-- Add the positions information -->
<div class="positions">
{{ range $index,$position:= .positions }}
<div class="company-heading">
<h5 class="designation">{{ $position.designation }}</h5>
<p class="text-muted">{{ $position.start }} - {{if $position.end }} {{ $position.end }} {{else}} {{ i18n "present" }} {{end}}</p>
</div>
<!-- Add the responsibilities handled at this position -->
{{ if $position.responsibilities }}
<h6 class="text-heading">{{ i18n "responsibilities" }}</h6>
<ul class="justify-content-around">
{{ range $position.responsibilities }}
<li>{{ . | markdownify }}</li>
{{ end }}
</ul>
{{ end }}
{{ end }}
</div>
</div>
23 changes: 0 additions & 23 deletions layouts/partials/sections/experiences/single-position.html

This file was deleted.

0 comments on commit ab1ff56

Please sign in to comment.