diff options
author | Gareth Watts <gareth@omnipotent.net> | 2020-10-13 22:28:37 +0300 |
---|---|---|
committer | Gareth Watts <gareth@omnipotent.net> | 2020-11-18 06:28:25 +0300 |
commit | ee1fd4ad911443efda83a2f0f10984899bc2b73f (patch) | |
tree | 5d7ba9e4f55002ca9261c629cd8cb4fac33f8d39 /i18n/zh.toml | |
parent | ed842369f86b260882519b69fa896be1baaebe88 (diff) |
Add "print entire section" feature
It's sometimes useful to be able to create a printout of all the pages
within a documentation or blog section, without having to select each
one at a time.
This commit adds a "print this section" button to the right navigation
by creating a new "print" output format and applying it to sections.
Each sub-section starts a new page.
Partials can be created to customize the layout on a per-type basis for:
* print/page-heading-<type>.html
* print/toc-li-<type>.html
* print/content-<type>.html
Pages can be omitted from a printed section entirely by setting
no_print=true in the page front matter.
Types can be excluded from being printable by setting outputs explicitly
in their front matter and listing only HTML, RSS, etc (in conjunction
with cascade)
To enable the feature, add the following to the site's config.toml
[outputs]
section = [ "HTML", "RSS", "print"]
Diffstat (limited to 'i18n/zh.toml')
-rw-r--r-- | i18n/zh.toml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/i18n/zh.toml b/i18n/zh.toml index c124171..3ffaeb7 100644 --- a/i18n/zh.toml +++ b/i18n/zh.toml @@ -43,3 +43,13 @@ other = "提交文档问题" other = "提交项目问题" [post_posts_in] other = "Posts in" + +# Print support +[print_printable_section] +other = "This the multi-page printable view of this section." +[print_click_to_print] +other = "Click here to print" +[print_show_regular] +other = "Return to the regular view of this page" +[print_entire_section] +other = "Print entire section" |