content: Miscellaneous edits

This commit is contained in:
Joe Mooring 2025-04-23 06:25:30 -07:00 committed by GitHub
parent a30e2c1891
commit 7b50139a6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 22 additions and 5 deletions

View File

@ -30,17 +30,33 @@ To install the extended edition of Hugo:
sudo snap install hugo sudo snap install hugo
``` ```
To enable or revoke access to removable media: To control automatic updates:
```sh ```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 sudo snap connect hugo:removable-media
# revoke access
sudo snap disconnect hugo:removable-media sudo snap disconnect hugo:removable-media
``` ```
To enable or revoke access to SSH keys: To control access to SSH keys:
```sh ```sh
# allow access
sudo snap connect hugo:ssh-keys sudo snap connect hugo:ssh-keys
# revoke access
sudo snap disconnect hugo:ssh-keys sudo snap disconnect hugo:ssh-keys
``` ```

View File

@ -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. > To override Hugo's embedded `ref` shortcode, copy the [source code] to a file with the same name in the `layouts/shortcodes` directory.
> [!note] > [!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 ## Usage

View File

@ -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. > To override Hugo's embedded `relref` shortcode, copy the [source code] to a file with the same name in the `layouts/shortcodes` directory.
> [!note] > [!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 ## Usage
@ -56,6 +56,7 @@ Rendered:
{{% include "_common/ref-and-relref-error-handling.md" %}} {{% include "_common/ref-and-relref-error-handling.md" %}}
[content format]: /content-management/formats/ [content format]: /content-management/formats/
[link render hooks]: /render-hooks/links/ [link render hook]: /render-hooks/links/
[Markdown notation]: /content-management/shortcodes/#notation [Markdown notation]: /content-management/shortcodes/#notation
[source code]: {{% eturl relref %}} [source code]: {{% eturl relref %}}
[embedded link render hook]: /render-hooks/links/#default