Skip to content

Commit 5bf24c0

Browse files
committed
Update from en
1 parent 71d139f commit 5bf24c0

File tree

6 files changed

+11
-21
lines changed

6 files changed

+11
-21
lines changed

commands/hugo_convert.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ Convert your content to different formats
1010

1111
### Synopsis
1212

13-
Convert your content (e.g. front matter) to different formats.
13+
Convert your content files (front matter) to different formats.
1414

1515
See convert's subcommands toJSON, toTOML and toYAML for more information.
1616

17+
**Please Note:** This will convert front matter only. It does not convert theme and configuration files (e.g. config.toml, theme.toml). Those files will need to be manually changed to your preference.
18+
1719
### Options
1820

1921
```

content-management/multilingual.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ linkedin = "https://linkedin.com/fr/whoever"
4949
help = "Aide"
5050
{{< /code-toggle >}}
5151

52-
Anything not defined in a `[languages]` block will fall back to the global value for that key (e.g., `copyright` for the English [`en`] language). This also works for `params`, as demonstrated witgh `help` above: You will get the value `Aide` in French and `Help` in all the languages without this parameter set.
52+
Anything not defined in a `[languages]` block will fall back to the global value for that key (e.g., `copyright` for the English [`en`] language). This also works for `params`, as demonstrated with `help` above: you will get the value `Aide` in French and `Help` in all the languages without this parameter set.
5353

5454
With the configuration above, all content, sitemap, RSS feeds, paginations,
5555
and taxonomy pages will be rendered below `/` in English (your default content language) and then below `/fr` in French.

content-management/shortcodes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ Using the preceding `instagram` with `hidecaption` example above, the following
243243

244244
### `param`
245245

246-
Gets a value from the current `Page's` params set in front matter, with a fall back to the site param value. If will log an `ERROR` if the param with the given key could not be found in either.
246+
Gets a value from the current `Page's` params set in front matter, with a fall back to the site param value. It will log an `ERROR` if the param with the given key could not be found in either.
247247

248248
```bash
249249
{{</* param testparam */>}}

contribute/themes.md

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ A collection of all themes created by the Hugo community, including screenshots
3030
4. Add a descriptive `README.md` to the root of the theme source
3131
5. Add `/images/screenshot.png` and `/images/tn.png`
3232

33-
\* If your theme doesn't fit into the `Hugo Basic Example` site, we encourage theme authors to supply a self-contained Hugo site in `/exampleSite`.
33+
\* If your theme doesn't fit into the `Hugo Basic Example` site, we encourage theme authors to supply a self-contained Hugo site in `/exampleSite/`, but note that for security reasons the content directory on the Hugo showcase will still be published from the [`Hugo Basic Example`](https://github.com/gohugoio/hugoBasicExample/tree/master/content) repository.
3434

3535
{{% note %}}
3636
The folder name here---`exampleSite`---is important, as this folder will be picked up and used by the script that generates the Hugo Theme Site. It mirrors the root directory of a Hugo website and allows you to add custom content, assets, and a `config` file with preset values.
@@ -125,22 +125,7 @@ Additional media may be provided in the same directory.
125125
Your theme's README file should be written in markdown and saved at the root of your theme's directory structure. Your `README.md` serves as
126126

127127
1. Content for your theme's details page at <https://themes.gohugo.io>
128-
2. General information about the theme in your GitHub repository (i.e., it's usual purpose)
129-
130-
#### Example `README.md`
131-
132-
You can download the following `README.md` as an outline:
133-
134-
{{< code file="README.md" download="README.md" >}}
135-
136-
# Theme Title
137-
138-
**Need input from @digitalcraftsman on what could be added to this file.**
139-
140-
141-
142-
143-
{{< /code >}}
128+
2. General information about the theme in your GitHub repository (i.e., it's usual purpose, features and instructions)
144129

145130
{{% note "Screenshots in your `README.md`"%}}
146131
If you add screenshots to the README, please make use of absolute file paths instead of relative ones like `/images/screenshot.png`. Relative paths work great on GitHub but they don't correspond to the directory structure of [themes.gohugo.io](http://themes.gohugo.io/). Therefore, browsers will not be able to display screenshots on the theme site under the given (relative) path.

getting-started/configuration.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ defaultContentLanguage ("en")
114114
defaultContentLanguageInSubdir (false)
115115
: Render the default content language in subdir, e.g. `content/en/`. The site root `/` will then redirect to `/en/`.
116116

117+
disableAliases (false)
118+
: Will disable generation of alias redirects. Note that even if `disableAliases` is set, the aliases themselves are preserved on the page. The motivation with this is to be able to generate 301 redirects in an `.htacess`, a Netlify `_redirects` file or similar using a custom output format.
119+
117120
disableHugoGeneratorInject (false)
118121
: Hugo will, by default, inject a generator meta tag in the HTML head on the _home page only_. You can turn it off, but we would really appreciate if you don't, as this is a good way to watch Hugo's popularity on the rise.
119122

variables/files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ For information on creating shortcodes and templates that tap into Hugo's file-r
2525
The `.File` object contains the following fields:
2626

2727
.File.Path
28-
: the original relative path of the page (e.g., `content/posts/foo.en.md`)
28+
: the original relative path of the page, relative to the content dir (e.g., `posts/foo.en.md`)
2929

3030
.File.LogicalName
3131
: the name of the content file that represents a page (e.g., `foo.en.md`)

0 commit comments

Comments
 (0)