Breaking changes, rewrite; add support for plain text output and single page mode
This commit is contained in:
@@ -4,4 +4,13 @@
|
||||
// @import "plugins/scrollbars";
|
||||
// @import "plugins/themes";
|
||||
|
||||
@import "plugins/themes";
|
||||
@import "plugins/themes";
|
||||
|
||||
.book-hero {
|
||||
min-height: $padding-16 * 24;
|
||||
align-content: center;
|
||||
|
||||
h1 {
|
||||
font-size: 3em;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: Single Page
|
||||
layout: book
|
||||
menu:
|
||||
after:
|
||||
weight: 7
|
||||
---
|
||||
@@ -17,7 +17,7 @@ bookHidden: true
|
||||
{{<button href="/">}}A Button{{</button>}}
|
||||
|
||||
- ## Card
|
||||
{{<card href="/docs/shortcodes/cards">}}
|
||||
{{<card href="/docs/shortcodes/experimental/cards">}}
|
||||
**Markdown**
|
||||
Suspendisse sed congue orci, eu congue metus. Nullam feugiat urna massa.
|
||||
{{</card>}}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Blog
|
||||
menu:
|
||||
after:
|
||||
weight: 5
|
||||
title: Blog
|
||||
---
|
||||
|
||||
@@ -14,6 +14,17 @@ copyright = '[© CC BY 4.0](https://creativecommons.org/licenses/by/4.0/legalcod
|
||||
disablePathToLower = true
|
||||
enableGitInfo = true
|
||||
|
||||
[outputFormats]
|
||||
[outputFormats.txt]
|
||||
mediaType = 'text/plain'
|
||||
baseName = 'source'
|
||||
isPlainText = true
|
||||
|
||||
[outputs]
|
||||
home = ['html', 'txt', 'rss']
|
||||
page = ['html', 'txt']
|
||||
section = ['html', 'txt']
|
||||
|
||||
# Needed for mermaid/katex shortcodes
|
||||
[markup]
|
||||
[markup.goldmark.renderer]
|
||||
|
||||
+13
-3
@@ -14,6 +14,16 @@ copyright: "[© CC BY 4.0](https://creativecommons.org/licenses/by/4.0/legalcode
|
||||
disablePathToLower: true
|
||||
enableGitInfo: true
|
||||
|
||||
outputFormats:
|
||||
txt:
|
||||
mediaType: "text/plain"
|
||||
baseName: "source"
|
||||
isPlainText: true
|
||||
outputs:
|
||||
home: ["html", "txt", "rss"]
|
||||
page: ["html", "txt"]
|
||||
section: ["html", "txt"]
|
||||
|
||||
# Needed for mermaid/katex shortcodes
|
||||
markup:
|
||||
goldmark:
|
||||
@@ -97,12 +107,12 @@ params:
|
||||
# (Optional, default none) Set template for commit link for the page. Requires enableGitInfo.
|
||||
# When set enabled 'Last Modified' and a link to the commit in the footer of the page.
|
||||
# Param is executed as template using .Site, .Page and .GitInfo as context.
|
||||
BookLastChangeLink: 'https://github.com/alex-shpak/hugo-book/commit/{{ .GitInfo.Hash }}'
|
||||
BookLastChangeLink: "https://github.com/alex-shpak/hugo-book/commit/{{ .GitInfo.Hash }}"
|
||||
|
||||
# (Optional, default none) Set template for edit page link.
|
||||
# When set enabled 'Edit this page' link in the footer of the page.
|
||||
# Param is executed as template using .Site, .Page and .Path as context.
|
||||
BookEditLink: 'https://github.com/alex-shpak/hugo-book/edit/main/exampleSite/{{ .Path }}'
|
||||
BookEditLink: "https://github.com/alex-shpak/hugo-book/edit/main/exampleSite/{{ .Path }}"
|
||||
|
||||
# (Optional, default 'January 2, 2006') Configure the date format used on the pages
|
||||
# - In git information
|
||||
@@ -126,7 +136,7 @@ params:
|
||||
# Portable links meant to work with text editors and let you write markdown without {{< relref >}} shortcode
|
||||
# Hugo Book will print warning or error if page referenced in markdown does not exists.
|
||||
# Possible values are false | 'warning' | 'error'
|
||||
BookPortableLinks: 'warning'
|
||||
BookPortableLinks: "warning"
|
||||
|
||||
# /!\ This is an experimental feature, might be removed or changed at any time
|
||||
# (Optional, experimental, default false)
|
||||
|
||||
Reference in New Issue
Block a user