Skip to content

Commit

Permalink
corrections and language selector override
Browse files Browse the repository at this point in the history
  • Loading branch information
nunocoracao committed Mar 11, 2024
1 parent 441c8f6 commit d40f2aa
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
6 changes: 1 addition & 5 deletions content/about/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,4 @@ I’ve worked for several years in big companies and recently decided to trade t

Currently, I am focused on improving the lives of developers worldwide. I’m trying to write more about my previous experiences / random thoughts and would love to gather your feedback on it. I also love to dedicate my time to helping and mentoring other PMs or people that want to get into product.

<a target="_blank" href="https://mentorcruise.com/mentor/nunocorao/"> <img class="nozoom" src="https://cdn.mentorcruise.com/img/banner/sky-sm.svg" width="240" alt="MentorCruise"> </a>

Recently I’ve also joined AWS Loft to help Startups and their founders with their product strategy.

Feel free to reach out.
<a target="_blank" href="https://mentorcruise.com/mentor/nunocorao/"> <img class="nozoom" src="https://cdn.mentorcruise.com/img/banner/sky-sm.svg" width="240" alt="MentorCruise"> </a>
30 changes: 30 additions & 0 deletions layouts/partials/translations.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{{ $isoCode := i18n "global.language" | markdownify | emojify }}
{{ if .IsTranslated }}
<div>
<div class="cursor-pointer flex items-center nested-menu">
<span class="mr-1">
{{ partial "icon.html" "language" }}
</span>
<div class="text-sm font-medium text-gray-500 hover:text-primary-600 dark:hover:text-primary-400" title="{{ .Title }}">
{{ if eq $isoCode "PT-PT" }}
PT
{{ else }}
{{- i18n "global.language" | markdownify | emojify -}}
{{ end }}
</div>
</div>
<div class="absolute menuhide">
<div class="pt-2 p-5 mt-2 rounded-xl shadow-2xl">
<div class="flex flex-col space-y-3">
{{ range .AllTranslations }}
<a href="{{ .RelPermalink }}" class="flex items-center">
<p class="text-sm font-sm text-gray-500 hover:text-primary-600 dark:hover:text-primary-400" title="{{ .Title }}">
{{ .Language.Params.displayName | emojify }}
</p>
</a>
{{ end }}
</div>
</div>
</div>
</div>
{{ end }}

0 comments on commit d40f2aa

Please sign in to comment.