plain site; demo content added; re-terminal theme enabled; some theme customizations
This commit is contained in:
29
themes/re-terminal/layouts/partials/mobile-menu.html
Normal file
29
themes/re-terminal/layouts/partials/mobile-menu.html
Normal file
@@ -0,0 +1,29 @@
|
||||
<ul class="menu menu--mobile">
|
||||
<li class="menu__trigger">Menu ▾</li>
|
||||
<li>
|
||||
<ul class="menu__dropdown">
|
||||
{{ range $.Site.Menus.main }}
|
||||
{{ if not .HasChildren }}
|
||||
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
||||
{{ else }}
|
||||
<li class="menu__subdrop--title">▾ {{ .Name }}</li>
|
||||
<li>
|
||||
<ul class="menu__subdrop--list">
|
||||
{{ range .Children }}
|
||||
<li><a href="{{ .URL }}" {{ if .Params.NewTab -}} target="_blank" {{- end }}>{{ .Name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if and $.Site.Params.showLanguageSelector (len $.Site.Home.AllTranslations) }}
|
||||
<hr />
|
||||
{{ range $.Site.Home.AllTranslations }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
Reference in New Issue
Block a user