The use of `---` and `...` delimiters in the YAML examples seem to
suggest that those delimiters are necessary in a .yaml/.yml file when in
fact they are optional. Also, it seems to be common practice to *not*
use `---` and `...` in .yaml/.yml files. Similarly, it's less common to
use `+++` in .toml files. The examples on TOML's Github repo don't use
it, and Hugo-generated .toml files don't use it either. This commit
removes the delimiters mentioned above to conform with the more common
styles.
Additionally this modifies the example for shortcut to find
configuration option
- add `cd` to make it clear that user has to change to the hugo site's
directory first
- separate the command and the output of the command
Add template function that will build a string from the given format
string and arguments, then log it to ERROR. This has an intended
side-effect of causing the build to fail, when executed.
Resolves#3817
The documentname parameter to `ref` and `relref` shortcodes must include file extension. Including the file extension in the given usage patterns will make it much easier for users to follow.
* Add a Build Performance page draft
* Update Build Performance page
* Add step analysis to build performance guide
* Remove wip and draft status from front matter
cdaa89c8 Add Pygments style CSS class for Chroma
c735cec1 Add highlight color to Chroma css, take 2
54cf963a Add highlight color to Chroma css
002a7fad Add Chroma css
git-subtree-dir: themes/gohugoioTheme
git-subtree-split: cdaa89c87c927e549fc824867b4e26dcd0d7c282
Move SummaryLength into the ContentSpec struct and refactor the
relevant summary functions to be methods of ContentSpec. The new
summaryLength struct member is configurable by the summaryLength config
value, and the default remains 70. Also updates hugolib/page to use the
refactored methods.
Resolves#3734
Add a template function that allows conversion to float. This is
useful, for example, when passing aspect ratios into templates,
which tend to not be integers.
Fixes#3307