hugo-theme-relearn/layouts/index.html
hybcloud 25da98447b add i18n support for navigation toggle
Although the toggle only appears when the page is too thin to show both navigation and content, adding i18n support do no harm.
2022-02-08 09:45:21 +08:00

19 lines
No EOL
830 B
HTML

{{- partial "header.html" . }}
<span id="sidebar-toggle-span">
<a href="#" id="sidebar-toggle" data-sidebar-toggle=""><i class="fas fa-bars"></i>{{T "navigation-toggle"}}</a>
</span>
{{if .Site.Home.Content }}
{{.Site.Home.Content}}
{{else}}
<h1>Customize your own home page</h1>
<p>
The site is working. Don't forget to customize this page with your own. You typically have 3 choices :
</p>
<ul>
<li><b>1. </b> Create an _index.md document in <b>content</b> folder and fill it with Markdown content</li>
<li><b>2. </b> Create an <b>index.html</b> file in the <b>static</b> folder and fill the file with HTML content</li>
<li><b>3. </b> Configure your server to automatically redirect home page to one your documentation page</li>
</ul>
{{ end }}
{{- partial "footer.html" . }}