mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-11-16 21:36:56 +01:00
add example book in example site
This commit is contained in:
parent
9ef1d4b721
commit
c5e3a781e9
9 changed files with 66 additions and 2 deletions
|
@ -10,10 +10,10 @@ hasCJKLanguage: true
|
||||||
# The url of your website
|
# The url of your website
|
||||||
baseurl: "https://example.com/"
|
baseurl: "https://example.com/"
|
||||||
# The title of your website (shown on all the pages)
|
# The title of your website (shown on all the pages)
|
||||||
title: "Hugo-tufte Theme Example Site"
|
title: "Hugo-Tufte Theme Example Site"
|
||||||
canonifyurls: true
|
canonifyurls: true
|
||||||
# Number of posts per page on the home page
|
# Number of posts per page on the home page
|
||||||
paginate: 4
|
paginate: 5
|
||||||
|
|
||||||
# Only modify the following if you know what you are doing
|
# Only modify the following if you know what you are doing
|
||||||
markup:
|
markup:
|
||||||
|
@ -79,6 +79,10 @@ menu:
|
||||||
weight: -100
|
weight: -100
|
||||||
identifier: posts
|
identifier: posts
|
||||||
url: /posts/
|
url: /posts/
|
||||||
|
- name: A-Book
|
||||||
|
weight: -95
|
||||||
|
identifier: book
|
||||||
|
url: /exampleBook/
|
||||||
- name: Categories
|
- name: Categories
|
||||||
weight: -90
|
weight: -90
|
||||||
identifier: categories
|
identifier: categories
|
||||||
|
|
17
exampleSite/content/exampleBook/_index.md
Normal file
17
exampleSite/content/exampleBook/_index.md
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
---
|
||||||
|
title: Probably A Book
|
||||||
|
subtitle: Best book ever!
|
||||||
|
type: book
|
||||||
|
layout: all
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
This is a layout showcase for:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
type: book
|
||||||
|
layout: all
|
||||||
|
```
|
||||||
|
|
||||||
|
Change `all` to `volumes` to hide chapters.
|
||||||
|
|
||||||
|
Below lists all volumes and chapters in this book alphabetically. If you see repetitions, just restart the hugo server and it should be fixed.
|
13
exampleSite/content/exampleBook/vol-1/_index.md
Normal file
13
exampleSite/content/exampleBook/vol-1/_index.md
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
title: Volume 1. Good Volume
|
||||||
|
type: book
|
||||||
|
layout: chapters
|
||||||
|
---
|
||||||
|
This is a layout showcase for:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
type: book
|
||||||
|
layout: chapters
|
||||||
|
```
|
||||||
|
|
||||||
|
Below lists all chapters in this volume alphabetically. If you see repetitions, just restart the hugo server and it should be fixed.
|
3
exampleSite/content/exampleBook/vol-1/vol-1-ch-1.md
Normal file
3
exampleSite/content/exampleBook/vol-1/vol-1-ch-1.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
title: Chapter 1. Good Chapter
|
||||||
|
---
|
3
exampleSite/content/exampleBook/vol-1/vol-1-ch-2.md
Normal file
3
exampleSite/content/exampleBook/vol-1/vol-1-ch-2.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
title: Chapter 2. Better Chapter
|
||||||
|
---
|
14
exampleSite/content/exampleBook/vol-2/_index.md
Normal file
14
exampleSite/content/exampleBook/vol-2/_index.md
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
---
|
||||||
|
title: Volume 2. Cool Volume
|
||||||
|
type: book
|
||||||
|
layout: chapters
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
This is a layout showcase for:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
type: book
|
||||||
|
layout: chapters
|
||||||
|
```
|
||||||
|
|
||||||
|
Below lists all chapters in this volume alphabetically. If you see repetitions, just restart the hugo server and it should be fixed.
|
3
exampleSite/content/exampleBook/vol-2/vol-2-ch-1.md
Normal file
3
exampleSite/content/exampleBook/vol-2/vol-2-ch-1.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
title: Chapter 3. Cool Chapter
|
||||||
|
---
|
3
exampleSite/content/exampleBook/vol-2/vol-2-ch-2.md
Normal file
3
exampleSite/content/exampleBook/vol-2/vol-2-ch-2.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
title: Chapter 4. Cooler Chapter
|
||||||
|
---
|
4
exampleSite/content/exampleBook/vol-2/vol-2-ch-3.md
Normal file
4
exampleSite/content/exampleBook/vol-2/vol-2-ch-3.md
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
title: Chapter 5. Coolest Chapter
|
||||||
|
draft: true
|
||||||
|
---
|
Loading…
Reference in a new issue