mirror of
https://github.com/zopiya/blog.git
synced 2025-11-03 20:16:47 +08:00
Add initial theme assets, layouts, and configuration for Hugo site
This commit is contained in:
32
themes/typo/wiki/features/header.md
Normal file
32
themes/typo/wiki/features/header.md
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
title: "Header"
|
||||
date: "2024-10-13"
|
||||
summary: "Header parameters"
|
||||
description: "Header parameters"
|
||||
toc: false
|
||||
readTime: false
|
||||
autonumber: true
|
||||
math: false
|
||||
showTags: false
|
||||
---
|
||||
|
||||
To pick pages to include in the header you must add the following elements:
|
||||
|
||||
```toml
|
||||
[[params.menu]]
|
||||
name = "home"
|
||||
url = "/"
|
||||
|
||||
[[params.menu]]
|
||||
name = "posts"
|
||||
url = "/posts"
|
||||
```
|
||||
|
||||
There exists an optional new tab parameter, to choose whether menu items are opened in a new tab or not.
|
||||
|
||||
```toml
|
||||
[[params.menu]]
|
||||
name = "posts"
|
||||
url = "/posts"
|
||||
newTab = true
|
||||
```
|
||||
Reference in New Issue
Block a user