initialize hugoplate

This commit is contained in:
somrat sorkar
2023-05-25 16:41:54 +06:00
commit 06cb3ca494
106 changed files with 27286 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<!-- Language List -->
{{ $class := .Class }}
{{ $context := .Context }}
{{ if $context.IsTranslated }}
<select class="{{ $class }}" onchange="location = this.value">
{{ $siteLanguages := site.Home.AllTranslations }}
{{ $pageLang := $context.Lang }}
{{ range $siteLanguages }}
{{ if eq (string $pageLang) (string .Language) }}
<option id="{{ .Language }}" value="{{ .RelPermalink }}" selected>
{{ .Language.LanguageName }}
</option>
{{ else }}
<option id="{{ .Language }}" value="{{ .RelPermalink }}">
{{ .Language.LanguageName }}
</option>
{{ end }}
{{ end }}
</select>
{{ end }}