mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 12:15:59 -04:00
content: Miscellaneous edits
This commit is contained in:
parent
a30e2c1891
commit
7b50139a6c
@ -30,17 +30,33 @@ To install the extended edition of Hugo:
|
||||
sudo snap install hugo
|
||||
```
|
||||
|
||||
To enable or revoke access to removable media:
|
||||
To control automatic updates:
|
||||
|
||||
```sh
|
||||
# disable automatic updates
|
||||
sudo snap refresh --hold hugo
|
||||
|
||||
# enable automatic updates
|
||||
sudo snap refresh --unhold hugo
|
||||
```
|
||||
|
||||
To control access to removable media:
|
||||
|
||||
```sh
|
||||
# allow access
|
||||
sudo snap connect hugo:removable-media
|
||||
|
||||
# revoke access
|
||||
sudo snap disconnect hugo:removable-media
|
||||
```
|
||||
|
||||
To enable or revoke access to SSH keys:
|
||||
To control access to SSH keys:
|
||||
|
||||
```sh
|
||||
# allow access
|
||||
sudo snap connect hugo:ssh-keys
|
||||
|
||||
# revoke access
|
||||
sudo snap disconnect hugo:ssh-keys
|
||||
```
|
||||
|
||||
|
@ -10,7 +10,7 @@ keywords: []
|
||||
> To override Hugo's embedded `ref` shortcode, copy the [source code] to a file with the same name in the `layouts/shortcodes` directory.
|
||||
|
||||
> [!note]
|
||||
> When working with the Markdown [content format], this shortcode has become largely redundant. Its functionality is now primarily handled by [link render hooks], specifically the embedded one provided by Hugo. This hook effectively addresses all the use cases previously covered by this shortcode.
|
||||
> When working with Markdown, this shortcode is obsolete. Instead, use a [link render hook] that resolves the link destination using the `GetPage` method on the `Page` object. You can either create your own, or simply enable the [embedded link render hook]. The embedded link render hook is automatically enabled for multilingual single-host projects.
|
||||
|
||||
## Usage
|
||||
|
||||
|
@ -10,7 +10,7 @@ keywords: []
|
||||
> To override Hugo's embedded `relref` shortcode, copy the [source code] to a file with the same name in the `layouts/shortcodes` directory.
|
||||
|
||||
> [!note]
|
||||
> When working with the Markdown [content format], this shortcode has become largely redundant. Its functionality is now primarily handled by [link render hooks], specifically the embedded one provided by Hugo. This hook effectively addresses all the use cases previously covered by this shortcode.
|
||||
> When working with Markdown, this shortcode is obsolete. Instead, use a [link render hook] that resolves the link destination using the `GetPage` method on the `Page` object. You can either create your own, or simply enable the [embedded link render hook]. The embedded link render hook is automatically enabled for multilingual single-host projects.
|
||||
|
||||
## Usage
|
||||
|
||||
@ -56,6 +56,7 @@ Rendered:
|
||||
{{% include "_common/ref-and-relref-error-handling.md" %}}
|
||||
|
||||
[content format]: /content-management/formats/
|
||||
[link render hooks]: /render-hooks/links/
|
||||
[link render hook]: /render-hooks/links/
|
||||
[Markdown notation]: /content-management/shortcodes/#notation
|
||||
[source code]: {{% eturl relref %}}
|
||||
[embedded link render hook]: /render-hooks/links/#default
|
||||
|
Loading…
x
Reference in New Issue
Block a user