Skip to content

Commit

Permalink
Update cross-references.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring authored Apr 24, 2024
1 parent 27905fe commit b5721df
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions content/en/content-management/cross-references.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,23 +72,23 @@ Hugo emits an error or warning if a document cannot be uniquely resolved. The er

To link to another language version of a document, use this syntax:

```go-html-template
```text
{{</* relref path="document.md" lang="ja" */>}}
```

### Get another output format

To link to another Output Format of a document, use this syntax:

```go-html-template
```text
{{</* relref path="document.md" outputFormat="rss" */>}}
```

### Heading IDs

When using Markdown document types, Hugo generates element IDs for every heading on a page. For example:

```md
```text
## Reference
```

Expand All @@ -100,14 +100,14 @@ produces this HTML:

Get the permalink to a heading by appending the ID to the path when using the `ref` or `relref` shortcodes:

```go-html-template
```text
{{</* ref "document.md#reference" */>}}
{{</* relref "document.md#reference" */>}}
```

Generate a custom heading ID by including an attribute. For example:

```md
```text
## Reference A {#foo}
## Reference B {id="bar"}
```
Expand All @@ -121,7 +121,7 @@ produces this HTML:

Hugo will generate unique element IDs if the same heading appears more than once on a page. For example:

```md
```text
## Reference
## Reference
## Reference
Expand Down

0 comments on commit b5721df

Please sign in to comment.