add example book in example site

This commit is contained in:
loikein 2023-04-25 15:19:20 +01:00
parent 9ef1d4b721
commit c5e3a781e9
9 changed files with 66 additions and 2 deletions

View file

@ -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

View 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.

View 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.

View file

@ -0,0 +1,3 @@
---
title: Chapter 1. Good Chapter
---

View file

@ -0,0 +1,3 @@
---
title: Chapter 2. Better Chapter
---

View 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.

View file

@ -0,0 +1,3 @@
---
title: Chapter 3. Cool Chapter
---

View file

@ -0,0 +1,3 @@
---
title: Chapter 4. Cooler Chapter
---

View file

@ -0,0 +1,4 @@
---
title: Chapter 5. Coolest Chapter
draft: true
---