mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-19 22:15:05 +00:00
all: Change shortcode usage and design to prevent invalid HTML
This commit is contained in:
1 parent
c41d766137
commit
0fca8ef251
174 files changed
+671
-633
No files matched your search
@@ -12,14 +12,14 @@ toc: true
|
||||
expiryDate: 2026-02-19 # deprecated 2024-02-19 in v0.123.0
|
||||
---
|
||||
|
||||
{{% deprecated-in 0.123.0 %}}
|
||||
{{< deprecated-in 0.123.0 >}}
|
||||
Instead, use [`transform.Unmarshal`] with a [global resource](g), [page resource](g), or [remote resource](g).
|
||||
|
||||
See the [remote data example].
|
||||
|
||||
[`transform.Unmarshal`]: /functions/transform/unmarshal/
|
||||
[remote data example]: /functions/resources/getremote/#remote-data
|
||||
{{% /deprecated-in %}}
|
||||
{{< /deprecated-in >}}
|
||||
|
||||
Given the following directory structure:
|
||||
|
||||
@@ -36,9 +36,9 @@ Access the data with either of the following:
|
||||
{{ $data := getJSON "other-files/" "books.json" }}
|
||||
```
|
||||
|
||||
{{% note %}}
|
||||
{{< note >}}
|
||||
When working with local data, the file path is relative to the working directory.
|
||||
{{% /note %}}
|
||||
{{< /note >}}
|
||||
|
||||
Access remote data with either of the following:
|
||||
|
||||
|
||||
Reference in new issue
Block a user