mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2025-06-10 18:54:08 +00:00
Add about pages and link
This commit is contained in:
parent
28c6a073b8
commit
3c855e6d4d
@ -1,4 +1,7 @@
|
||||
---
|
||||
title: About
|
||||
type: docs
|
||||
---
|
||||
draft: false
|
||||
---
|
||||
|
||||
Welcome to the english about page
|
@ -1,4 +1,7 @@
|
||||
---
|
||||
title: <Hebrew about>
|
||||
type: docs
|
||||
---
|
||||
draft: false
|
||||
---
|
||||
|
||||
Welcome to the hewbrew about page
|
@ -1,4 +1,7 @@
|
||||
---
|
||||
title: 關於
|
||||
type: docs
|
||||
---
|
||||
draft: false
|
||||
---
|
||||
|
||||
Welcome to the chinese about page
|
@ -37,8 +37,17 @@ enableGitInfo = true
|
||||
languageDirection = 'rtl'
|
||||
weight = 3
|
||||
|
||||
[menu]
|
||||
# [[menu.before]]
|
||||
[[menu.main]]
|
||||
name = "Home"
|
||||
url = "/"
|
||||
weight = 4
|
||||
|
||||
[[menu.main]]
|
||||
name = "About"
|
||||
url = "/about/"
|
||||
weight = 5
|
||||
|
||||
[[menu.after]]
|
||||
name = "Github"
|
||||
url = "https://github.com/alex-shpak/hugo-book"
|
||||
|
@ -37,7 +37,11 @@ languages:
|
||||
|
||||
menu:
|
||||
# before: []
|
||||
|
||||
after:
|
||||
- name: "About"
|
||||
url: "/about"
|
||||
weight: 5
|
||||
- name: "Github"
|
||||
url: "https://github.com/alex-shpak/hugo-book"
|
||||
weight: 10
|
||||
|
@ -12,3 +12,9 @@
|
||||
|
||||
- id: bookSearchConfig
|
||||
translation: '{ cache: true }'
|
||||
|
||||
- id: home
|
||||
translation: home
|
||||
|
||||
- id: about
|
||||
translation: About
|
@ -14,6 +14,7 @@
|
||||
{{ partial "docs/inject/menu-after" . }}
|
||||
</nav>
|
||||
|
||||
<a href="{{ "about" | relLangURL }}">About</a>
|
||||
<!-- Restore menu position as soon as possible to avoid flickering -->
|
||||
{{ $script := resources.Get "menu-reset.js" | resources.Minify }}
|
||||
{{ with $script.Content }}
|
||||
|
Loading…
Reference in New Issue
Block a user