-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
corrections and language selector override
- Loading branch information
1 parent
441c8f6
commit d40f2aa
Showing
2 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |