Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions exampleSite/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,21 @@ copyright = '[© CC BY 4.0](https://creativecommons.org/licenses/by/4.0/legalcod
disablePathToLower = true
enableGitInfo = true

[outputFormats]
[outputFormats.print]
isHTML = true
isPlainText = false
mediaType = 'text/html'
notAlternative = false
noUgly = false
path = 'print'

[outputs]
home = ["html", "print"]
page = ["html", "print"]
section = ["html", "print"]


# Needed for mermaid/katex shortcodes
[markup]
[markup.goldmark.renderer]
Expand Down
139 changes: 0 additions & 139 deletions exampleSite/hugo.yaml

This file was deleted.

3 changes: 2 additions & 1 deletion hugo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[module]
[module.hugoVersion]
extended = true
min = "0.146.0"
min = "0.146.0"

1 change: 1 addition & 0 deletions layouts/_partials/docs/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{{ if hugo.IsMultilingual }}
{{ partial "docs/languages" . }}
{{ end }}
{{ partial "docs/print" . }}

{{ partial "docs/inject/menu-before" . }}
{{ partial "docs/menu-hugo" (dict "Page" .Page "Menu" .Site.Menus.before) }}
Expand Down
3 changes: 3 additions & 0 deletions layouts/_partials/docs/print.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<a href="{{ .RelPermalink }}/print.html" role="button">
{{ partial "docs/text/i18n" "Print this book" }}
</a>
1 change: 1 addition & 0 deletions layouts/baseof.print.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{- block "main" . -}}{{- end -}}
1 change: 1 addition & 0 deletions layouts/list.print.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ define "dummy" }}{{ end }}
4 changes: 4 additions & 0 deletions layouts/single.print.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ end }}
2 changes: 2 additions & 0 deletions theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ min_version = "0.146.0"
[author]
name = "Alex Shpak"
homepage = "https://github.com/alex-shpak/"