* Add Blogtrottr as newsletter provider * Fixed absLangURL issue with sections in footer * Add LaTeX support Added katex scripts and css to scripts and header partials, respectively * Replace CDN with local files for LaTex resources + Fix flag error Signed-off-by: hossainemruz <hossainemruz@gmail.com> Co-authored-by: Pablo Marcos <codebergflamingo@staplehorse.anonaddy.com> Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
21 lines
1,001 B
HTML
21 lines
1,001 B
HTML
{{ $pageURL:= .RelPermalink }}
|
|
{{ if site.IsMultiLingual }}
|
|
{{ $pageURL = strings.TrimPrefix (path.Join "/" .Language.Lang) $pageURL }}
|
|
{{ end }}
|
|
|
|
<div class="dropdown languageSelector">
|
|
<a class="btn dropdown-toggle" href="#" id="languageSelector" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
{{ $countryCode := partial "helpers/country-code.html" . }}
|
|
<span class="flag-icon flag-icon-{{$countryCode}}"></span>
|
|
{{ site.Language.LanguageName }}
|
|
</a>
|
|
<div class="dropdown-menu" aria-labelledby="languageSelector">
|
|
{{ range .Translations }}
|
|
<a class="dropdown-item nav-link languages-item" href="{{ path.Join "/" (cond (eq .Language.Lang "en") "" .Language.Lang) $pageURL }}">
|
|
{{ $countryCode := partial "helpers/country-code.html" . }}
|
|
<span class="flag-icon flag-icon-{{$countryCode}}"></span>
|
|
{{ .Language.LanguageName }}
|
|
</a>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|