Add home page placeholder to not display empty page
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
{{- partial "docs/shared" -}}
|
||||
<html>
|
||||
|
||||
<head>
|
||||
{{ partial "docs/html-head" . }}
|
||||
{{ partial "docs/inject/head" . }}
|
||||
</head>
|
||||
{{- $content := `
|
||||
# Hugo Book Theme
|
||||
|
||||
This is a placeholder for home page.
|
||||
You can override this page in:
|
||||
|
||||
- `/content/_index.md`
|
||||
- `/layouts/home.html`
|
||||
` -}}
|
||||
<body>
|
||||
<main class="flex justify-center">
|
||||
<div class="book-page markdown">
|
||||
{{ replace $content "`" "`" | markdownify }}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{{ partial "docs/inject/body" . }}
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -14,7 +14,7 @@
|
||||
{{ partial "docs/menu" . }}
|
||||
</aside>
|
||||
|
||||
<div class="book-posts mr-auto">
|
||||
<div class="book-posts">
|
||||
{{ partial "docs/mobile-header" . }}
|
||||
{{ template "main" . }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user