diff --git a/content/en/content-management/image-processing/index.md b/content/en/content-management/image-processing/index.md index 84e55989b..8fdab2d6e 100644 --- a/content/en/content-management/image-processing/index.md +++ b/content/en/content-management/image-processing/index.md @@ -309,7 +309,7 @@ The default value is 75. You may override the default value in the [site configu -Applicable to WebP images, this option corresponds to a set of pre-defined encoding parameters. +Applicable to WebP images, this option corresponds to a set of predefined encoding parameters. Value|Example :--|:-- @@ -377,10 +377,10 @@ _The photo of the sunset used in the examples below is Copyright [Bjørn Erik Pe This is the shortcode used to generate the examples above: {{< code file="layouts/shortcodes/imgproc.html" >}} -{{< readfile file="layouts/shortcodes/imgproc.html" >}} +{{< readfile file="layouts/shortcodes/imgproc.html" >}} {{< /code >}} -Call the shortcode from your markdown like this: +Call the shortcode from your Markdown like this: ```go-html-template {{}} diff --git a/content/en/hugo-modules/use-modules.md b/content/en/hugo-modules/use-modules.md index c1aad955a..267e7953c 100644 --- a/content/en/hugo-modules/use-modules.md +++ b/content/en/hugo-modules/use-modules.md @@ -97,7 +97,7 @@ Use `hugo mod graph` from the relevant module directory and it will print the de E.g.: -``` +```txt hugo mod graph github.com/bep/my-modular-site github.com/bep/hugotestmods/mymounts@v1.2.0 diff --git a/content/en/hugo-pipes/js.md b/content/en/hugo-pipes/js.md index 705b55996..340e2606e 100644 --- a/content/en/hugo-pipes/js.md +++ b/content/en/hugo-pipes/js.md @@ -44,7 +44,7 @@ inject [slice] {{< new-in "0.81.0" >}} shims {{< new-in "0.81.0" >}} : This option allows swapping out a component with another. A common use case is to load dependencies like React from a CDN (with _shims_) when in production, but running with the full bundled `node_modules` dependency during development: -``` +```go-html-template {{ $shims := dict "react" "js/shims/react.js" "react-dom" "js/shims/react-dom.js" }} {{ $js = $js | js.Build dict "shims" $shims }} ``` diff --git a/content/en/readfiles/dateformatting.md b/content/en/readfiles/dateformatting.md index cd340cf19..2aeb60438 100644 --- a/content/en/readfiles/dateformatting.md +++ b/content/en/readfiles/dateformatting.md @@ -1,12 +1,12 @@ Go templates [format your dates][time] according to a single reference time: -``` +```txt Mon Jan 2 15:04:05 MST 2006 ``` You can think of `MST` as `07`, thus making the reference format string a sequence of numbers. The following is [taken directly from the Go docs][gdex]: -``` +```txt Jan 2 15:04:05 2006 MST 1 2 3 4 5 6 -7 ``` @@ -17,7 +17,7 @@ Each of the following examples show the reference formatting string followed by Note that the examples were rendered and tested in [CST][] and pull from a single example date you might have in your content's front matter: -``` +```yml date: 2017-03-03T14:15:59-06:00 ``` @@ -60,13 +60,13 @@ Spelled-out cardinal numbers (e.g. "one", "two", and "three") and ordinal abbrev To continue with the example above: -``` +```go-html-template {{.Date.Format "Jan 2nd 2006"}} ``` Hugo assumes you want to append `nd` as a string to the day of the month and outputs the following: -``` +```txt Mar 3nd 2017 ``` diff --git a/content/en/templates/base.md b/content/en/templates/base.md index e6d4388e9..cf1f8584d 100644 --- a/content/en/templates/base.md +++ b/content/en/templates/base.md @@ -74,7 +74,7 @@ This replaces the contents of our (basically empty) "main" block with something {{% warning %}} Code that you put outside the block definitions *can* break your layout. This even includes HTML comments. For example: -``` +```go-html-template {{ define "main" }} ...your code here diff --git a/content/en/templates/data-templates.md b/content/en/templates/data-templates.md index 3bfdaa056..dfaeedf3e 100644 --- a/content/en/templates/data-templates.md +++ b/content/en/templates/data-templates.md @@ -75,7 +75,7 @@ The list of bass players can be accessed via `.Site.Data.jazz.bass`, a single ba You can now render the list of recordings for all the bass players in a template: -``` +```go-html-template {{ range $.Site.Data.jazz.bass }} {{ partial "artist.html" . }} {{ end }} @@ -83,7 +83,7 @@ You can now render the list of recordings for all the bass players in a template And then in the `partials/artist.html`: -``` +```go-html-template