mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-03-20 16:15:09 +00:00
task: add performance optimized config
This commit is contained in:
parent
713531ec7d
commit
00881d7646
5 changed files with 51 additions and 1 deletions
|
@ -276,6 +276,8 @@ alwaysopen = ''
|
|||
# Default: false
|
||||
# If set to true, a submenu in the sidebar will be displayed in a collapsible
|
||||
# tree view and a clickable expander is set in front of the entry.
|
||||
# Note that if set to `true` can have a major performance impact on build
|
||||
# for sites with many pages.
|
||||
# This can be overridden in the page's frontmatter.
|
||||
collapsibleMenu = true
|
||||
|
||||
|
|
23
docs/config/performance/hugo.toml
Normal file
23
docs/config/performance/hugo.toml
Normal file
|
@ -0,0 +1,23 @@
|
|||
# This configuration file disables all performance intensive features.
|
||||
|
||||
# The Piratish pages are slow due to the mechanism used to autotranslate
|
||||
# the original english content via the piratify shortcode. This is
|
||||
# only an issue with this showcase as your site should have the piratish
|
||||
# translations.
|
||||
disableLanguages = ['pir']
|
||||
|
||||
# Usually the docs are built with the addition of the Relearn print
|
||||
# format. This can get costly for many pages and/or deeply nested sites.
|
||||
[outputs]
|
||||
home = ['html', 'rss']
|
||||
section = ['html', 'rss']
|
||||
page = ['html', 'rss']
|
||||
|
||||
[params]
|
||||
# Generation of the search index is costly as all pages are indexed
|
||||
# in a single file. Luckily due to caching, this is only done once
|
||||
# per configured language.
|
||||
disableSearch = true
|
||||
|
||||
# This option can have a major impact if you have many pages.
|
||||
collapsibleMenu = false
|
|
@ -157,6 +157,8 @@ alwaysopen = ''
|
|||
# Default: false
|
||||
# If set to true, a submenu in the sidebar will be displayed in a collapsible
|
||||
# tree view and a clickable expander is set in front of the entry.
|
||||
# Note that if set to `true` can have a major performance impact on build
|
||||
# for sites with many pages.
|
||||
# If not set, the set value of your site's hugo.toml is used.
|
||||
collapsibleMenu = true
|
||||
|
||||
|
|
23
exampleSite/config/performance/hugo.toml
Normal file
23
exampleSite/config/performance/hugo.toml
Normal file
|
@ -0,0 +1,23 @@
|
|||
# This configuration file disables all performance intensive features.
|
||||
|
||||
# The Piratish pages are slow due to the mechanism used to autotranslate
|
||||
# the original english content via the piratify shortcode. This is
|
||||
# only an issue with this showcase as your site should have the piratish
|
||||
# translations.
|
||||
disableLanguages = ['pir']
|
||||
|
||||
# Usually the docs are built with the addition of the Relearn print
|
||||
# format. This can get costly for many pages and/or deeply nested sites.
|
||||
[outputs]
|
||||
home = ['html', 'rss']
|
||||
section = ['html', 'rss']
|
||||
page = ['html', 'rss']
|
||||
|
||||
[params]
|
||||
# Generation of the search index is costly as all pages are indexed
|
||||
# in a single file. Luckily due to caching, this is only done once
|
||||
# per configured language.
|
||||
disableSearch = true
|
||||
|
||||
# This option can have a major impact if you have many pages.
|
||||
collapsibleMenu = false
|
|
@ -1 +1 @@
|
|||
7.4.0+a8d787c37e4fd3e417f868b5124b6820a944b170
|
||||
7.4.0+713531ec7d191694a7a939068b47329e204e6e1e
|
Loading…
Add table
Reference in a new issue